Skip to content
Snippets Groups Projects
  1. Feb 27, 2020
  2. Feb 25, 2020
    • Mark Goddard's avatar
      CentOS 8: Use ansible_playbook_python for localhost dependencies · a9113517
      Mark Goddard authored
      Currently we install python dependencies on the Ansible control host
      each time the ip-allocation and console-allocation roles are executed.
      This is inefficient, particularly in the case of the ip-allocation role
      which is run serially for all hosts. It is also unnecessary since we
      have these packages available in the Python environment used to execute
      kayobe.
      
      The kolla-ansible role also has an implicit dependency on PyYAML for
      managing kolla passwords.
      
      This change uses ansible_playbook_python as the Python interpreter for
      the necessary tasks in these roles to avoid installing dependencies on
      the system on CentOS 8 and Ubuntu. For CentOS 7 we still need to use the
      platform Python, due to needing SELinux bindings.
      
      Change-Id: Ic6a1c69a34241f4fbe617a0b12aec9b1528ba352
      Story: 2006574
      Task: 38825
      a9113517
  3. Feb 21, 2020
  4. Feb 20, 2020
    • Mark Goddard's avatar
      Remove activate-virtualenv and deactivate-virtualenv roles · 2e842ab3
      Mark Goddard authored
      These roles are no longer necessary now that Ansible supports setting
      ansible_python_interpreter via a task- or role-scoped variable.
      
      Change-Id: I4121d01dc83ac028350d4d98d3e1158e15fdfd63
      Story: 2006574
      Task: 38824
      2e842ab3
    • Mark Goddard's avatar
      Switch from shade to openstacksdk · 2de3a2c5
      Mark Goddard authored
      Upstream Ansible OpenStack modules now use openstacksdk rather than shade.
      Switch local Ansible modules to follow suit. Also switch to use the
      stackhpc.os_openstacksdk role from stackhpc.os-shade.
      
      The stackhpc.os-shade role is removed during 'kayobe control host upgrade'.
      
      Change-Id: Id3894c3c36ef99f00ed463de6a3457e11733d6b7
      Story: 2007294
      Task: 38759
      2de3a2c5
  5. Feb 19, 2020
  6. Feb 18, 2020
  7. Feb 14, 2020
    • Pierre Riteau's avatar
      Revert "Use OpenStack Train release" · c9474bf9
      Pierre Riteau authored
      This reverts commit a93b85ba.
      
      The local Python executable for Kolla Ansible is changed to Python 3
      because Kolla Ansible master no longer supports Python 2.
      
      Change-Id: I768ce8db9cec1c70d94f271997bbcc64d370403e
      c9474bf9
    • Mark Goddard's avatar
      Make local kolla-ansible Python executable configurable · 6b47717c
      Mark Goddard authored
      The default is still Python 2. This is a necessary prerequisite for using
      the master branch of kolla-ansible, which requires Python 3.
      
      Change-Id: Ida5b60b723c8208bb7305c3d669eafdab6dbbe01
      Story: 2004959
      Task: 38767
      6b47717c
  8. Feb 13, 2020
    • Andreas Jaeger's avatar
      Fix error logging of dev/functions · 030ede06
      Andreas Jaeger authored
      In case of failures in kayobe-overcloud-centos, the error message fails
      with:
      kayobe/dev/functions: line 569: LOGDIR: unbound variable
      
      Example:
      https://zuul.opendev.org/t/openstack/build/ce1fadc3ee6d4842a599da57a670cc18
      
      This can be reproduced with:
      set -eu
      
      if [[ -n ${LOGDIR} ]]; then
          echo "LOGDIR set"
      else
          echo "else"
      fi
      
      Fix the error reporting with assigning an empty string to LOGDIR by
      default.
      
      Change-Id: Ieef73950f89e4dfb727ddc59ef2750d9b81f3c58
      030ede06
    • Mark Goddard's avatar
      Fix sphinx8 script used by pep8 · 2fcdff10
      Mark Goddard authored
      We wrap doc8 to register the directives we use in our documentation.
      Previously the 'app' argument was passed as None, however sphinx has
      started to use the argument.
      
      This change uses a mock object since we don't need to use the
      application object.
      
      Change-Id: Id9e8d5f6d09f14d294cd493538780456f98c7dbe
      2fcdff10
  9. Feb 11, 2020
  10. Jan 30, 2020
    • Andreas Jaeger's avatar
      Update docs building · d5a3c74b
      Andreas Jaeger authored
      * Use storyboard instead of launchpad since this project uses
        storyboard. This fixes the "Report a bug" link.
      * Remove unneeded configuration bits for doc building, the
        defaults of openstackdocstheme are fine.
      
      Change-Id: Id7513b245d1b4eac09f717a7f47469fd7bb4d3b5
      d5a3c74b
  11. Jan 06, 2020
  12. Jan 03, 2020
    • Mark Goddard's avatar
      Fix IPA builds without packages specified · beba4d29
      Mark Goddard authored
      Since story 2006855, it is possible to specify a list of packages when
      building IPA images. However, this introduced an issue in the case where
      no packages are specified. See
      https://github.com/stackhpc/ansible-role-os-images/issues/26.
      
      This change fixes the issue by updating stackhpc.os-images role to
      v1.7.0, which has a fix for this issue.
      
      Change-Id: I70d20381bec3f5b92bb467e6c506e32bb13548c2
      Story: 2007069
      Task: 37952
      beba4d29
    • Mark Goddard's avatar
      Fix overcloud provisioning due to Bifrost IPA rename · fa7d29b4
      Mark Goddard authored
      Kolla recently upgraded bifrost from 7.0.0 to 7.1.0 on the stable/train
      branch. This switched to IPA builder to build the IPA image, and
      introduced a rename of the IPA kernel file from ipa.vmlinuz to
      ipa.kernel, which breaks overcloud provisioning. The iPXE kernel
      download fails with a 404, since Kayobe introspection rules use
      ipa.vmlinuz for the driver_info.deploy_kernel URL.
      
      This change works around the issue by setting two Bifrost variables,
      ipa_kernel and ipa_kernel_url, to reference the old kernel filename of
      ipa.vmlinuz. This works both in the case where the image is downloaded
      from a URL (ipa_kernel sets the destination file name), and where it is
      built via 'kayobe seed deployment image build' (kayobe uses the legacy
      ironic-agent DIB element rather than IPA builder, which creates a
      hardlink to ipa.vmlinuz).
      
      We chose the above approach rather than switching to IPA builder due to
      it being a less risky change at a time close to release. A future
      release of Kayobe should switch to IPA builder, but this will be a
      larger effort.
      
      [1] https://review.opendev.org/#/c/692200/1/playbooks/roles/bifrost-ironic-install/defaults/main.yml
      
      Change-Id: I7f75c25602fd7ae4bfeb6abbdd3b42d8ee465abf
      Story: 2007068
      Task: 37951
      fa7d29b4
  13. Dec 20, 2019
  14. Dec 19, 2019
  15. Dec 18, 2019
    • Doug Szumski's avatar
      Add Nova Cells documentation · aee2af7a
      Doug Szumski authored
      Clearly not very user friendly at the moment. We probably want to
      include these files as part of test.
      
      Change-Id: Ib6ed0e68b55a98920cbaf3e8ec828901b4b9ed9f
      Story: 2004291
      Task: 37810
      aee2af7a
    • Doug Szumski's avatar
      Support customising nova-conductor and proxy groups for cells · 05ae35bf
      Doug Szumski authored
      Change-Id: Ife90d839a5184a3b692c49e0411cd1ac6467f25a
      Story: 2004291
      Task: 37804
      05ae35bf
    • Doug Szumski's avatar
      Support custom Kolla group_vars · 72d4d646
      Doug Szumski authored
      In Kayobe hosts which are part of a Nova cell can be managed via the
      existing controller and compute groups. However, since Nova Cells are
      configured via group vars in Kolla Ansible we need some way of setting
      these. We could pass vars through to Kolla Ansible host vars using
      `kolla_overcloud_inventory_pass_through_host_vars` but the list of
      variables which may be set on a per cell basis is large and undefined.
      
      This change allows the user to directly specify Kolla Ansible group vars
      as part of Kayobe config, allowing the deployment of Nova Cells by
      Kayobe to be largely unchanged from the procedure documented in Kolla
      Ansible.
      
      Change-Id: I2695034d36936fcc77a4828c67f9552155781dd6
      Story: 2004291
      Task: 37804
      72d4d646
  16. Dec 17, 2019
Loading