1. 09 Aug, 2018 1 commit
  2. 03 Jul, 2018 1 commit
    • Swann Perarnau's avatar
      [refactor] Isolate Popen, no recursive ansible · f8e72e10
      Swann Perarnau authored
      Recursive ansible was causing all kinds of problems, especially with IO.
      Instead, we use ssh to launch a second round of ansible.
      
      Instead of duplicating the popen handling, we then move it to a new
      function.
      f8e72e10
  3. 02 Jul, 2018 1 commit
    • Swann Perarnau's avatar
      [fix] Use metadata to map instances to lease · 4f985d4f
      Swann Perarnau authored
      The lease id recently disappeared from the availability zone info in
      servers. It broke the configure part of an appliance, as we were using
      this info to create an ansible inventory for the stack. Unfortunately,
      after an exchange with Chameleon staff, it became clear that
      this "feature" wasn't intended.
      
      We now add metadata to our appliance template, allowing us to add the
      arbitrary info we need to the server info. This way we can filter as we
      want. This should make the script more future-proof.
      4f985d4f
  4. 26 Jun, 2018 1 commit
  5. 12 Jun, 2018 1 commit
    • Swann Perarnau's avatar
      [fix] enforce region for blazar client · d4d956e0
      Swann Perarnau authored
      Since Chameleon changed to a multi-region setup the blazar client is
      acting up. It looks like the current upstream doesn't support that
      feature by default.
      
      In theory, the session already contains the region info, but since the
      client creation code doesn't use it by default, we force it. This is
      adapted from the Chameleon-recommended client library.
      d4d956e0
  6. 07 Jun, 2018 5 commits
    • Swann Perarnau's avatar
      [fix] remove host key checks for ansible · e866ec78
      Swann Perarnau authored
      Until we figure out a way to add host keys to the config without
      trouble, disable host key checking when calling ansible.
      
      Not doing so could result in blocked calls, as ansible was asking
      questions during the run.
      e866ec78
    • Swann Perarnau's avatar
      [feature] add playbook arg to configure · ac4c713b
      Swann Perarnau authored
      Usefull for users that want to try a different set of roles.
      ac4c713b
    • Swann Perarnau's avatar
      [feature] wait for frontend when configuring · c3308df5
      Swann Perarnau authored
      Ansible allows us to wait for the node to become available, which should
      allow us to launch the `configure` command as soon as `create --wait`
      completes.
      
      Uses default wait_for_connection module, which should poll for 10
      minutes.
      
      Requires that we disable gather_fact, and reactivate it after the
      connection succeeds.
      c3308df5
    • Swann Perarnau's avatar
      [feature] make wait optional on create/delete · 76694f1e
      Swann Perarnau authored
      Stack create and delete take an option to wait for the operation to
      complete. It doesn't actually wait for the operation to complete, just
      for the Openstack side of it to be done. For creation for exemple, the
      nodes might still be booting.
      76694f1e
    • Swann Perarnau's avatar
      [fix] Stop readline on success · b52e2422
      Swann Perarnau authored
      Previous code was blocking on stdout after subprocess completed with
      success, as `poll()` would return 0, and `not 0` is true.
      b52e2422
  7. 23 May, 2018 1 commit
    • Swann Perarnau's avatar
      [feature] add support for the 2 chi regions · 38ebe9ca
      Swann Perarnau authored
      Supporting the two regions of chameleon (TACC & UC) requires changes
      in the clouds.yaml/secure.yaml format, to avoid having a secure file
      with twice the info. We use the region support in os-client-config for
      that.
      
      I had to change the scripts a little bit, as the cloud name is now fixed
      but the region_name has to be specified.
      38ebe9ca
  8. 17 May, 2018 1 commit