Skip to content
Snippets Groups Projects
  1. Mar 27, 2024
    • Jakub Darmach's avatar
      Use new collections in Kayobe · dbcc3f4a
      Jakub Darmach authored
      Refactored the code to switch the distribution source of the roles
      to new collections for the roles that have already been migrated into
      collections.
      
      Updated:
      
       - requirements
       - role invocations
       - documentation
       - release notes
       - minor whitespace fixes
      
      Change-Id: I8dbb88aa2061b3afcab07caeb30f45b3a5c939af
      dbcc3f4a
  2. Nov 24, 2023
    • Pierre Riteau's avatar
      Remove libgcrypt package update · ad2057e2
      Pierre Riteau authored
      This fix was added when upgrading from CentOS Linux 8.2 to 8.3. This is
      likely not required on currently supported operating systems.
      
      Change-Id: Ic2c47ae4514d98ff18c5d17ba62b50c47f3929c1
      ad2057e2
  3. Sep 13, 2022
    • Rafal Lewandowski's avatar
      Add new DIB upper constraints variables · e10f176c
      Rafal Lewandowski authored
      overcloud-dib: added overcloud_dib_dib_upper_constraints_file
      ipa: added ipa_build_dib_upper_constraints_file
      added os_images_dib_upper_constraints_file to image build
      playbooks
      
      New variables were added to facilitate control over the DIB
      upper constraints without changing them for other components.
      They are empty by default in order to facilitate Rocky9
      image builds.
      
      Change-Id: Ib50dd61685f13c60ace67213ddd1e714a80dece3
      e10f176c
  4. Aug 22, 2022
  5. Aug 21, 2021
    • Mark Goddard's avatar
      Use ansible_facts to reference facts · f639ad0b
      Mark Goddard authored
      By default, Ansible injects a variable for every fact, prefixed with
      ansible_. This can result in a large number of variables for each host,
      which at scale can incur a performance penalty. Ansible provides a
      configuration option [0] that can be set to False to prevent this
      injection of facts. In this case, facts should be referenced via
      ansible_facts.<fact>.
      
      This change updates all references to Ansible facts within Kayobe
      from using individual fact variables to using the items in the
      ansible_facts dictionary. This allows users to disable fact variable
      injection in their Ansible configuration, which may provide some
      performance improvement.
      
      This change disables fact variable injection in the ansible
      configuration used in CI, to catch any attempts to use the injected
      variables.
      
      [0] https://docs.ansible.com/ansible/latest/reference_appendices/config.html#inject-facts-as-vars
      
      Story: 2007993
      Task: 42464
      Depends-On: https://review.opendev.org/c/openstack/kolla-ansible/+/791276
      
      Change-Id: I14db53ed6e57d37bbd28dd5819e432e3fe6628b2
      f639ad0b
  6. Mar 23, 2021
  7. Mar 04, 2021
    • Mark Goddard's avatar
      Avoid fact gathering for group_by · 388dfa36
      Mark Goddard authored
      There are a few places where we have a play with one task that uses the
      group_by module to generate groups that are used in a subsequent play.
      These plays do not need to gather facts for their target hosts.
      
      In particular, the kolla-openstack.yml playbook should really be able to
      operate without access to remote hosts.
      
      This change also adds changed_when: false to all group_by tasks, since
      they show as changed but haven't really made any changes outside of
      Ansible.
      
      TrivialFix
      
      Change-Id: I18f67eda4e48058f3f402b9d0e692d6eeb02855f
      388dfa36
  8. Feb 19, 2021
    • Pierre Riteau's avatar
      Add ipa_build_upper_constraints_file variable · 56c1a886
      Pierre Riteau authored
      This variable allows to customise the upper constraints file used to
      install packages inside the ipa-build-dib virtual environment. This can
      be used when we need a newer version of diskimage-builder than the one
      available in upper constraints for the current release.
      
      Change-Id: Idbe57e7edc3fae25153f5e24ad6b7847b1c4660c
      56c1a886
  9. Nov 28, 2019
    • Mark Goddard's avatar
      Support installing packages in IPA images · 6b4f180a
      Mark Goddard authored
      Diskimage builder supports specifying a list of packages to install via
      -p. We currently support this for the root image, but not IPA images.
      
      This change adds a new configuration option, 'ipa_build_dib_packages',
      that should be a list of additional packages to install in locally built
      IPA images. This affects the following commands:
      
      kayobe seed deployment image build
      kayobe overcloud deployment image build
      
      This depends on
      https://github.com/stackhpc/ansible-role-os-images/pull/25.
      
      Also adds an example to the documentation for the equivalent option for
      root image.
      
      Change-Id: I04191d9541894b6a264e966c9ecb1056e0edade4
      Story: 2006855
      Task: 37446
      6b4f180a
  10. Aug 15, 2019
    • Mark Goddard's avatar
      Update packages in virtualenvs · ddfd6b62
      Mark Goddard authored
      Kayobe uses a number of virtual environments on the remote hosts for
      python dependencies such as shade, python-openstackclient, docker, etc.
      By default these are stored in /opt/kayobe/venvs/. Typically we do not
      provide version restrictions when installing these packages, so over the
      course of time they may become stale and incompatible.
      
      This change installs the latest version of packages allowed by OpenStack
      upper constraints.
      
      It also adds a new variable, 'pip_upper_constraints_file', to set the
      upper constraints file. The existing variable
      'kolla_upper_constraints_file' now defaults to the value of
      'pip_upper_constraints_file'.
      
      Change-Id: I8d2956f95bbc44b5a9e88e7569372048a62f12f5
      Story: 2005923
      Task: 34193
      ddfd6b62
  11. Sep 05, 2018
  12. Jun 22, 2018
    • Mark Goddard's avatar
      Support forcing rebuild of deployment images · 22cf08e8
      Mark Goddard authored
      It is hard to know when disk images need to be rebuilt, and the
      stackhpc.os-images role simply checks for the presence of the DIB output
      directory to indicate that an image exists. In some cases, we may wish to force
      the rebuilding of a deployment (IPA) image, when we know there are changes to
      apply. This change adds a --force-rebuild argument to the following commands:
      
      kayobe seed deployment image build
      kayobe overcloud deployment image build
      
      Change-Id: I580811a4f621df9445ef32773ca66bcf303dad9b
      22cf08e8
  13. Mar 13, 2018
    • Mark Goddard's avatar
      Fix use of tags with overcloud post configure · bc5f3aba
      Mark Goddard authored
      When specifying tags with 'kayobe overcloud post configure --tags <tags>', the
      expected plays typically do not run. This seems to be due to an ansible bug,
      where if a dynamically created group is referenced before creation, it will
      remain empty. See https://github.com/ansible/ansible/issues/20360.
      
      This change works around this issue by modifying the name of the dynamic groups
      used in the post configure playbooks to be unique to each playbook.
      
      Fixes: #138
      (cherry picked from commit 77a41a9d0a37acd2d4c25bd7d969d965a9552428)
      
      Change-Id: I7a884f538cfeba9d6b4b990ec445b5ad6f914193
      bc5f3aba
  14. Dec 19, 2017
    • Mark Goddard's avatar
      Tag all (well, some of) the things (plays) · d8fe45b3
      Mark Goddard authored
      Having tagged plays allows us to easily run a subset of the plays for a
      command, and perform targeted operations with less risk of unintended
      consequences.
      
      The tags are typically named after the playbook, although some of the
      overcloud playbooks have been tagged without an overcloud- prefix.
      d8fe45b3
  15. Nov 24, 2017
    • Mark Goddard's avatar
      Convert variable to bool in group_by · 7f767b1b
      Mark Goddard authored
      We use the group_by module to create groups based on host variables.
      When the variable is a boolean, we should convert it to a bool using the
      bool filter, to ensure that the group name has a consistent format.
      7f767b1b
  16. Nov 13, 2017
  17. Oct 20, 2017
  18. Sep 14, 2017
  19. Aug 22, 2017
    • Mark Goddard's avatar
      Improve ironic deployment image build for overcloud · 5d6658b3
      Mark Goddard authored
      Overcloud deployment images can now be built via:
      
      kayobe overcloud deployment image build
      
      This should be done prior to running kayobe overcloud service deploy.
      In order to build IPA images, the ipa_build_images variable should be
      set to True. In this case, these images will be used by the overcloud's
      ironic inspector service during hardware inspection, and by ironic
      during provisioning.
      5d6658b3
Loading