aboutsummaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)AuthorFilesLines
2025-08-07CI: use opendevmirror for debian/ubuntu buildsBartosz Bezak1-1/+1
Depends-On: https://review.opendev.org/c/opendev/system-config/+/956760 Change-Id: I136bb702b20e941611dd90830e81c9d358a2e355 Signed-off-by: Bartosz Bezak <bartosz@stackhpc.com>
2025-07-17Merge "Move to CentOS Stream 10"Zuul1-16/+1
2025-07-16Move to CentOS Stream 10Michal Nasiadka1-16/+1
Known missing packages: - mod_auth_mellon - missing SAML support in Keystone/Horizon - built in Kolla COPR - glusterfs-fuse in manila-share - built in Kolla COPR - collectd/telegraf - no opstools repository - redis - needs a switch to valkey - python3-ethtool - not required for neutron-mlnx-agent since 6 years [1] Building packages in Kolla COPR is a temporary solution until these show up in EPEL10. [1]: Id2cae3ac9ff049e9fc8225551f99e1e99a87fc65 Depends-On: https://review.opendev.org/c/openstack/kolla-ansible/+/951751 Change-Id: I7074fabcf95184fcfd2561648ae1e05acfb0bc11 Signed-off-by: Michal Nasiadka <mnasiadka@gmail.com>
2025-07-11CI: Drop publishing to DockerHubMichal Nasiadka1-18/+0
Change-Id: I9d1f24b98f1d7c8f29b0dba45105b0263f961ca5 Signed-off-by: Michal Nasiadka <mnasiadka@gmail.com>
2025-06-19Fix kolla-set-configs --check to detect state mismatchMichal Arbet1-0/+44
If a configuration file is tracked in the state file but no longer appears in config.json, it should either be restored or removed. This patch introduces a new exception StateMismatch and updates execute_config_check() to detect such cases. If any destination path is present in the defaults state but missing from config.json, we now raise StateMismatch. A dedicated unit test has been added to verify this behavior. Closes-Bug: #2114173 Signed-off-by: Michal Arbet <michal.arbet@ultimum.io> Change-Id: I6e0b4aaa5722990e3ac647578023f474db3d4381
2025-05-21Fix mock_open() expectations for Python 3.13+Michal Nasiadka1-9/+26
Python 3.13 introduces a behavior change in unittest.mock.mock_open(), which now calls close() when exiting the context manager as described in bpo-44185 [1]. This causes additional mock calls to appear, breaking strict mock_calls assertions. This patch fix tests and add compatibility for Python 3.13. From mock documentation [2]: "bpo-44185: unittest.mock.mock_open() will call the close() method of the file handle mock when it is exiting from the context manager. Patch by Samet Yaslan." [1] https://bugs.python.org/issue44185 [2] https://mock.readthedocs.io/en/latest/changelog.html Change-Id: Ib8e2a8a20a828c4c69deedd307c9b726f51489f8
2025-05-06CI: Fix pip mirror multilineMichal Nasiadka1-5/+5
Change-Id: Ic75fdaedfa62816fae0cc0b7924425b574feb1ee
2025-02-21Merge "CI: Use ansible-lint for CI roles and playbooks"Zuul5-29/+46
2025-02-21CI: Add rocky support to process_build_logs.pyMichal Nasiadka1-1/+1
Change-Id: I57e05a235359547a4477dc869e92047818dc5c15
2025-02-20CI: Use ansible-lint for CI roles and playbooksMichal Nasiadka5-29/+46
Removing dbus-python deps because now a-c-k handles that. Depends-On: https://review.opendev.org/c/openstack/ansible-collection-kolla/+/942179 Change-Id: I97a97da73a7ccb27789e979656867e4adfe8a633
2025-02-18Merge "CI: Move pre tasks into roles"Zuul1-195/+1
2025-02-18Allow to use configure_user macro for external templatesAndriy Kurilin3-0/+53
Commit 79a234239516b94b1b79c7ddafcc4fbe4e3ba155 introduced an ability to build 'in-house'/'not-built-in' projects with Kolla. This commits extends this feature with an ability to use configure_user macro for 'not-built-in' users. The implementation is done the same way as for 'sources', i.e. engine after registers new section structure as soon as it finds unknown '<project>-user' section. In addition, the documentation and CI are extended to cover ``--docker-dir`` option. Change-Id: I690d9f3829083f2493bf286a1c45764b9699219b
2025-02-17CI: Move pre tasks into rolesMichal Nasiadka1-195/+1
Change-Id: If5aa7371d14041d6e0efca866341be2894fd6f87
2024-12-12Merge "Revert "CI: Pin requests to <2.32 for publish jobs""Zuul1-9/+0
2024-12-11Merge "Revert "CentOS/Rocky: use CentOS Cloud SIG repo instead of Delorean ↵Zuul1-1/+13
(Dalmatian)""
2024-12-11Revert "CI: Pin requests to <2.32 for publish jobs"Michal Nasiadka1-9/+0
This reverts commit 428f37124986019bedc897469f9b1f3470b62082. Reason for revert: Should be fixed now Change-Id: Ife393e7f1b00fa37921e7822668d6a40dd467d5b
2024-11-29Revert "CentOS/Rocky: use CentOS Cloud SIG repo instead of Delorean (Dalmatian)"Michal Nasiadka1-1/+13
This reverts commit db0f87d3c8e1e7eccdeb1ea46216d530711680d3. Reason for revert: Epoxy cycle is on Change-Id: Ie2a747223b33039684650bede8863af0c8906d2f
2024-11-28CI: Use debian/ubuntu images from quay mirrorMichal Nasiadka1-0/+9
Change-Id: I3fab494e939478458c2c299303f5c2c91943e0ec
2024-11-06Fix handling configs in base imageMichal Arbet1-0/+460
This commit restructures the handling of configuration files in set_configs.py, introducing functions for managing default configuration files first. Closes-Bug: #2060855 Change-Id: If91e0330dc149143c82d2183b8ddf6fa9f68d80e
2024-10-24CentOS/Rocky: use CentOS Cloud SIG repo instead of Delorean (Dalmatian)Michal Nasiadka1-13/+1
Depends-On: https://review.opendev.org/c/openstack/kolla-ansible/+/933312 Change-Id: I0ce9e907594fd160a08ad7929d5bc4bca9abf536
2024-10-02CI: Move image building to a roleMichal Nasiadka1-10/+2
This role can be then used in kolla-ansible instead of setup_gate.sh Change-Id: Ibf04bd90a15e7d3949214d15a8b8e25f2050bb65
2024-10-01CI: Fix aarch64 publish jobs on x86Michal Nasiadka1-2/+2
Change-Id: I5c69d288a427d708b42deadac872a3a7368181e3
2024-09-30Switch to Ubuntu 24.04 LTSMichal Nasiadka1-8/+0
Add setuptools because Python3.12 dropped distutils Needed-By: https://review.opendev.org/c/openstack/kolla-ansible/+/925581 Change-Id: Ie12c43dc1de122c203edc28181366457ccd67834
2024-09-27CI: Build aarch64 images on x86Michal Nasiadka2-0/+7
Since aarch64 OpenDev nodes currently have issues that cause builds to time out (and we can't extend over 3 hours since that's OpenDev maximum). Change-Id: I20d8b7b6de007866f73c41272682f4532987c9e7
2024-06-11CI: Pin requests to <2.32 for publish jobsBartosz Bezak1-0/+9
Periodic jobs are failing because Zuul Ansible executor runs with Ansible 8 which uses community.docker collection that needs requests<2.32. Revert this patch when Zuul supports Ansible 10, and/or Ansible 9 gets fixed community.docker collection. [1] [1] https://github.com/ansible-collections/community.docker/issues/868 Related-Bug: #2066364 Change-Id: I1dda73b0bc9a9f57ec8fda3f2234449b04906410
2024-05-28Drop packaging requirement and unpin docker-pyMichal Nasiadka1-1/+1
Change-Id: I11d306be5e5bb3d5b05b50dd8ee64ac9424854a1
2024-01-03Merge "Revert "CentOS/Rocky: use CentOS Cloud SIG repo instead of Delorean ↵Zuul1-1/+13
(Bobcat)""
2023-12-20Revert "CentOS/Rocky: use CentOS Cloud SIG repo instead of Delorean (Bobcat)"Michal Nasiadka1-1/+13
This reverts commit 2ed66effa6e4a102919cb53a4b0737f852eb8674. Reason for revert: Let's use RDO trunk Change-Id: I3945fe5fd0aef2e12a7f6c60d714e69ea496083b
2023-12-14CI: Use newer podman/buildah on Ubuntu JammyMichal Nasiadka1-0/+8
Change-Id: Ifce506b49571950ee16e26aae06f20aa94567722
2023-12-12CI: Pin docker installation to <7Michal Nasiadka1-1/+1
Docker 7.0.0 introduced a pre build check for tag regex, that is most probably the culprit - see [1] and [2]. Depends-On: https://review.opendev.org/c/openstack/kolla-ansible/+/903364 [1]: https://github.com/docker/docker-py/commit/a9b5494fd0574e520c735e1d0c4a303528d48063 [2]: https://github.com/docker/docker-py/issues/3195 Change-Id: I147c9715eb922abb6675a2786beaec85971718a8
2023-11-29podman: install "rich" dependencyMichal Nasiadka1-1/+1
This dependency was added to podman-py in version 4.8.0, but not added properly to their requirements. Install it explicitly for our tox and integration testing as a workaround. [0] https://github.com/containers/podman-py/issues/350 Change-Id: Ic0d9b2c26fe5474f579b72d6779243b7ad39b420
2023-11-28Drop docker-py from requirements.txtMichal Nasiadka1-0/+4
Since addition of podman - users need to install only one from docker|podman Change-Id: I622eefad3b2e93f334028d9c0775a2cca558a39c
2023-11-18Merge "CentOS/Rocky: use CentOS Cloud SIG repo instead of Delorean (Bobcat)"Zuul1-13/+1
2023-11-09CentOS/Rocky: use CentOS Cloud SIG repo instead of Delorean (Bobcat)Michal Nasiadka1-13/+1
Depends-On: https://review.opendev.org/c/openstack/kolla-ansible/+/900536 Change-Id: I1bc19f8198da3f9ab2ae2a8864c3349b21b0249e
2023-11-08CI: Move ephemeral disk config to a roleMichal Nasiadka1-70/+2
Change-Id: Ieee71aa22f4ec45fe03f50fd697c85dda952b4d0
2023-10-25Merge "CI: speed up podman on el9"Zuul1-0/+17
2023-10-24Merge "Revert "CentOS/Rocky: use CentOS Cloud SIG repo instead of Delorean""Zuul1-1/+13
2023-10-24CI: speed up podman on el9Jan Gutter1-0/+17
Before this commit the following warning message appeared in the podman log: Not using native diff for overlay, this may cause degraded performance for building images: kernel has CONFIG_OVERLAY_FS_REDIRECT_DIR enabled It appears that the default mount options for the overlay graph driver is badly optimised for Kolla builds on el9: * Enable native overlay diff https://mikeshade.com/posts/docker-native-overlay-diff/ https://github.com/containers/storage/commit/09480532cf49617d7c745fe1ee92487c60c49e1d https://github.com/containers/podman/blob/main/docs/tutorials/performance.md Things that did not appear to make a difference: * volume mounting /var/lib/container https://github.com/containers/buildah/issues/3666#issuecomment-1351992335 * enable transientStore https://www.redhat.com/sysadmin/speed-containers-podman-raspberry-pi note: currently incompatible with debian Change-Id: I002e88b4b6162f6732e622fd97639d543c66784c
2023-10-24CI: fix podman info log collectionJan Gutter1-1/+4
* capture podman config * podman info needs sudo permissions * before this fix, the podman info command failed with: Error: cannot set up namespace using "/usr/bin/newuidmap": should have setuid or have filecaps setuid: exit status 1 Change-Id: Ib3fe039a8c35421b56eedbd2d5197217b4a15a9a
2023-10-05Revert "CentOS/Rocky: use CentOS Cloud SIG repo instead of Delorean"Michal Nasiadka1-1/+13
This reverts commit 881e3925c7aa8c3bbe6897ea8790f109dc0a7fb8. Reason for revert: switch back to master, to be followed by switch to bobcat when available Change-Id: Ib8fdad41a669fc8404b8de2de5361db9547c4ea2
2023-09-21[CI] Add podman buildMichal Arbet3-40/+104
Change-Id: I41b89ec87a4849668102ca9c9cc79f0ef9944b85
2023-08-29Merge "Add comprehensive checks for container restarts"Zuul1-0/+71
2023-05-18Merge "ubuntu: use Antelope UCA"16.0.0.0rc1Zuul1-1/+0
2023-05-18ubuntu: use Antelope UCAMichal Nasiadka1-1/+0
Skip using the mirror for now, given the OpenDev AFS space issues. Change-Id: I8e55c699e493494b3e5c908c7e8c370ce992fdf5
2023-05-17CentOS/Rocky: use CentOS Cloud SIG repo instead of DeloreanMichal Nasiadka1-13/+1
Antelope was released, landed in CentOS repo, time to use it. Change-Id: I9fa8fd5dd9b75251363f1957d1e249e7cb4beb84
2023-05-08CI: Fix visibility publish taskMichal Nasiadka1-0/+1
Change-Id: I41bab698e17254d8c92e621ba9b88b6fe20c2300
2023-03-27CI: Ensure quay repo is public on publishMichal Nasiadka1-0/+9
Change-Id: Ib49e7c51be552a9aad0526841e7cffe588189371
2023-03-09Add comprehensive checks for container restartsDawud M1-0/+71
When adding a dashboard to grafana the containers aren't restarted when they should be. This is due to a bug in Kolla where the logic to determine whether or the container needs to be restarted fails in the case where the file does not exist in the container. This patch adds more comprehensive checks for container restarts in the set_configs.py file. This patch also adds a test to ensure that the functions work as expected. Closes-Bug: #1997984 Co-Authored-By: Will Szumski <will@stackhpc.com> Change-Id: I67f5f12700d7b55f26bff81e9b54559303da6d83
2023-02-21Merge "CI: Additional disk followup"Zuul2-80/+71
2023-02-21Merge "CI: update docker hub publish creds"Zuul1-2/+2