Skip to content
Snippets Groups Projects
  1. Nov 26, 2024
  2. Sep 03, 2024
    • Roman Krček's avatar
      Refactor dev mode · b3275272
      Roman Krček authored
      Build upon changes in kolla which change strategy of installing projects
      in containers when in dev mode. This fixes problems where when package
      file manifest changes, the changes were not reflected in to
      devmode-enabled container.
      
      It changes the strategy of installing projects in dev mode in containers.
      Instead of bind mounting the project's git repository to the venv
      of the container, the repository is bind mounted to
      /dev-mode/<project_name> from which the it is installed using pip
      on every startup of the container using kolla_install_projects script.
      
      Also updates docs to reflect the changes.
      
      Depends-On: https://review.opendev.org/c/openstack/kolla/+/925712
      
      
      Closes-Bug: #1814515
      Singed-off-by: default avatarRoman Krček <roman.krcek@tietoevry.com>
      Change-Id: If191cd0e3fcf362ee058549a1b6c244d109b6d9a
      b3275272
  3. Aug 16, 2024
    • Michal Arbet's avatar
      Fix nova-libvirt's secrets - device or resource is busy · 82a642ed
      Michal Arbet authored
      This patch removes the nova_libvirt_secret container volume because
      it is a complete antipattern, and during testing, I found that
      it causes problems. When it was necessary to copy libvirt secrets
      from /etc/kolla/nova-libvirt/secrets, the container logs reported that
      the resource is busy - precisely because it was a mounted container
      volume. This, of course, is unnecessary because the secrets are copied
      to the kolla host in /etc/kolla/nova-libvirt/secrets.
      
      Closes-Bug: #2073678
      Change-Id: I715a6a95f9d32d62a8199727ddbaddd0dd7baa2d
      82a642ed
  4. Aug 12, 2024
    • Ivan Halomi's avatar
      Refactor of kolla_container_facts · 4ce47e22
      Ivan Halomi authored
      
      Refactor that prepares kolla_container_facts
      module for introducing more actions that will be moved
      from kolla_container module and kolla_container_volume_facts.
      
      This change is based on a discussion about adding a new action
      to kolla_container module that retrieves all names of the running
      containers. It was agreed that kolla-ansible should follow Ansible's
      direction of splitting modules between action modules and facts
      modules. Because of this, kolla_container_facts needs to be able
      to handle different requests for data about containers or volumes.
      
      Change-Id: Ieaec8f64922e4e5a2199db2d6983518b124cb4aa
      Signed-off-by: default avatarIvan Halomi <ivan.halomi@tietoevry.com>
      4ce47e22
  5. Jul 22, 2024
  6. Jul 19, 2024
    • Michal Arbet's avatar
      Add support for docker_image_name_prefix · ae86e3a0
      Michal Arbet authored
      The Kolla project supports building images with
      user-defined prefixes. However, Kolla-ansible is unable
      to use those images for installation.
      
      This patch fixes that issue.
      
      Closes-Bug: #2073541
      Change-Id: Ia8140b289aa76fcd584e0e72686e3786215c5a99
      ae86e3a0
  7. Jun 28, 2024
    • Roman Krček's avatar
      Performance: use filters for service dicts · fb3a8f5f
      Roman Krček authored
      Most roles are not leveraging the jinja filters available.
      According to [1] filtering the list of services makes the execution
      faster than skipping the tasks.
      
      This patchset also includes some cosmetic changes to genconfig.
      Individual services are now also using a jinja filter. This has
      no impact on performance, just makes the tasks look cleaner.
      
      Naming of some vars in genconfig was changed to "service" to make
      the tasks more uniform as some were previously using
      the service name and some were using "service".
      
      Three metrics from the deployment were taken and those were
      - overall deployment time [s]
      - time spent on the specific role [s]
      - CPU usage (measured with perf) [-]
      Overall genconfig time went down on avg. from 209s to 195s
      Time spent on the loadbalancer role went down on avg. from 27s to 23s
      Time spent on the neutron role went down on avg from 102s to 95s
      Time spent on the nova-cell role went down on avg. from 54s to 52s
      Also the average CPUs utilized reported by perf went down
      from 3.31 to 3.15.
      For details of how this was measured see the comments in gerrit.
      
      [1] - https://github.com/stackhpc/ansible-scaling/blob/master/doc/skip.md
      
      
      
      Change-Id: Ib0f00aadb6c7022de6e8b455ac4b9b8cd6be5b1b
      Signed-off-by: default avatarRoman Krček <roman.krcek@tietoevry.com>
      fb3a8f5f
  8. Apr 25, 2024
    • Michal Nasiadka's avatar
      Drop Vitrage · ca1fe60f
      Michal Nasiadka authored
      It was deprecated in Antelope cycle.
      
      Change-Id: I499e69ec6db63e4067e49376e2a1f3e01e48fe62
      ca1fe60f
  9. Apr 22, 2024
  10. Apr 08, 2024
  11. Jan 30, 2024
  12. Jan 08, 2024
    • Pierre Riteau's avatar
      Fix Nova scp failures on Debian Bookworm · bfa9dd97
      Pierre Riteau authored
      The addition of an instance resize operation [1] to CI testing is
      triggering a failure in kolla-ansible-debian-ovn jobs, which are using a
      nodeset with multiple nodes:
      
          oslo_concurrency.processutils.ProcessExecutionError: Unexpected error while running command.
          Command: scp -r /var/lib/nova/instances/8ca2c7e8-acae-404c-af7d-6cac38e354b8_resize/disk 192.0.2.2:/var/lib/nova/instances/8ca2c7e8-acae-404c-af7d-6cac38e354b8/disk
          Exit code: 255
          Stdout: ''
          Stderr: "Warning: Permanently added '[192.0.2.2]:8022' (ED25519) to the list of known hosts.\r\nsubsystem request failed on channel 0\r\nscp: Connection closed\r\n"
      
      This is not seen on Ubuntu Jammy, which uses OpenSSH 8.9, while Debian
      Bookworm uses OpenSSH 9.2. This is likely related to this change in
      OpenSSH 9.0 [2]:
      
          This release switches scp(1) from using the legacy scp/rcp protocol
          to using the SFTP protocol by default.
      
      Configure sftp subsystem like on RHEL9 derivatives. Even though it is
      not yet required for Ubuntu, we also configure it so we are ready for
      the Noble release.
      
      [1] https://review.opendev.org/c/openstack/kolla-ansible/+/904249
      [2] https://www.openssh.com/txt/release-9.0
      
      Closes-Bug: #2048700
      Change-Id: I9f1129136d7664d5cc3b57ae5f7e8d05c499a2a5
      bfa9dd97
  13. Nov 30, 2023
  14. Nov 15, 2023
  15. Nov 14, 2023
    • Michal Nasiadka's avatar
      Introduce oneshot docker_restart_policy · cea076f3
      Michal Nasiadka authored
      docker_restart_policy: no causes systemd units to not get created
      and we use it in CI to disable restarts on services.
      
      Introducing oneshot policy to not create systemd unit for oneshot
      containers (those that are running bootstrap tasks, like db
      bootstrap and don't need a systemd unit), but still create systemd
      units for long lived containers but with Restart=No.
      
      Change-Id: I9e0d656f19143ec2fcad7d6d345b2c9387551604
      cea076f3
  16. Nov 09, 2023
  17. Oct 20, 2023
  18. Oct 19, 2023
  19. Oct 04, 2023
    • Michal Nasiadka's avatar
      Generate hostnqn · 8b3e755b
      Michal Nasiadka authored
      hostnqn is generated using to_uuid filter
      
      Usually "nvme gen-hostnqn" command is used to generate
      hostnqn, and it has the format of:
      nqn.2014-08.org.nvmexpress:uuid:67dc8c8e-0262-4d81-ac51-ace7c25e4daa
      
      "nqn.2014-08.org.nvmexpress:uuid:" is always static
      
      Closes-Bug: #2035975
      
      Change-Id: I6ece4fe8c18c0167a2707c24693fbe39ed15cdba
      8b3e755b
  20. Sep 11, 2023
  21. Sep 08, 2023
  22. Aug 01, 2023
  23. Jun 28, 2023
  24. Jun 14, 2023
    • Michal Arbet's avatar
      Add support for multiple ceph files · fdf2385f
      Michal Arbet authored
      This patch is adding a feature for an option to copy different
      ceph configuration files and corresponding keyrings for cinder,
      glance, manila, gnocchi and nova services.
      
      This is especially useful when the deployment uses availability
      zones as below example.
      
        - Individual compute can read/write to individual ceph
          cluster in same AZ.
        - Cinder can write to several ceph clusters in several AZs.
        - Glance can use multistore and upload images to
          several ceph clusters in several AZs at once.
      
      Change-Id: Ie4d8ab5a3df748137835cae1c943b9180cd10eb1
      fdf2385f
  25. May 16, 2023
    • Sean Mooney's avatar
      always add service_user section to nova.conf · ddadaa28
      Sean Mooney authored
      
      As of I3629b84d3255a8fe9d8a7cea8c6131d7c40899e8 nova
      now requires the service_user section to be configured
      to address CVE-2023-2088. This change adds
      the service user section to the nova.conf template in
      the nova and nova-cell roles.
      
      Related-Bug: #2004555
      Signed-off-by: default avatarSven Kieske <kieske@osism.tech>
      Change-Id: I2189dafca070accfd8efcd4b8cc4221c6decdc9f
      (cherry picked from commit a77ea13ef1991543df29b7eea14b1f91ef26f858)
      (cherry picked from commit 03c12abbcc107bfec451f4558bc97d14facae01c)
      (cherry picked from commit cb105dc293ff1cdb11ab63fa3e3bf39fd17e0ee0)
      (cherry picked from commit efe6650d09441b02cf93738a94a59723d84c5b19)
      ddadaa28
  26. Apr 08, 2023
  27. Apr 03, 2023
  28. Mar 09, 2023
  29. Feb 14, 2023
    • Mark Goddard's avatar
      Fix deploy/genconfig in check mode · 572ff2f8
      Mark Goddard authored
      Previously, when running one of the following commands:
      
        kolla-ansible deploy --check
        kolla-ansible genconfig --check
      
      deployment or configuration generation fails for various reasons.
      
      MariaDB fails to lookup the existing cluster.
      
      Keystone fails to generate cron config.
      
      Nova-cell fails to get the cell settings.
      
      Closes-Bug: #2002661
      Change-Id: I5e765f498ae86d213d0a4379ca5d473db1499962
      572ff2f8
  30. Jan 26, 2023
  31. Jan 20, 2023
    • Stanislav Dmitriev's avatar
      Set scheduler.max_attempts for nova conductor · 0b62db7c
      Stanislav Dmitriev authored
      In order to honour configured max number of attempts
      it has to be presented in nova.conf inside of
      nova_conductor container, otherwise the default value
      of 3 will be used
      
      Closes-Bug: #2003587
      Change-Id: I928af332b8658223444594f96417830233057284
      0b62db7c
  32. Jan 13, 2023
    • Matt Crees's avatar
      Add a flag to handle RabbitMQ high availability · 09df6fc1
      Matt Crees authored
      A combination of durable queues and classic queue mirroring can be used
      to provide high availability of RabbitMQ. However, these options should
      only be used together, otherwise the system will become unstable. Using
      the flag ``om_enable_rabbitmq_high_availability`` will either enable
      both options at once, or neither of them.
      
      There are some queues that should not be mirrored:
      * ``reply`` queues (these have a single consumer and TTL policy)
      * ``fanout`` queues (these have a TTL policy)
      * ``amq`` queues (these are auto-delete queues, with a single consumer)
      An exclusionary pattern is used in the classic mirroring policy. This
      pattern is ``^(?!(amq\\.)|(.*_fanout_)|(reply_)).*``
      
      Change-Id: I51c8023b260eb40b2eaa91bd276b46890c215c25
      09df6fc1
  33. Jan 12, 2023
    • Mark Goddard's avatar
      Fix prechecks in check mode · 46aeb984
      Mark Goddard authored
      When running in check mode, some prechecks previously failed because
      they use the command module which is silently not run in check mode.
      Other prechecks were not running correctly in check mode due to e.g.
      looking for a string in empty command output or not querying which
      containers are running.
      
      This change fixes these issues.
      
      Closes-Bug: #2002657
      Change-Id: I5219cb42c48d5444943a2d48106dc338aa08fa7c
      46aeb984
  34. Jan 05, 2023
  35. Dec 21, 2022
    • Matt Crees's avatar
      Integrate oslo-config-validator · 6c2aace8
      Matt Crees authored
      Regularly, we experience issues in Kolla Ansible deployments because we
      use wrong options in OpenStack configuration files. This is because
      OpenStack services ignore unknown options. We also need to keep on top
      of deprecated options that may be removed in the future. Integrating
      oslo-config-validator into Kolla Ansible will greatly help.
      
      Adds a shared role to run oslo-config-validator on each service. Takes
      into account that services have multiple containers, and these may also
      use multiple config files. Service roles are extended to use this shared
      role. Executed with the new command ``kolla-ansible validate-config``.
      
      Change-Id: Ic10b410fc115646d96d2ce39d9618e7c46cb3fbc
      6c2aace8
  36. Dec 13, 2022
  37. Nov 04, 2022
  38. Nov 02, 2022
  39. Oct 28, 2022
Loading