aboutsummaryrefslogtreecommitdiff
path: root/tests/test_kolla_container_facts.py
AgeCommit message (Collapse)AuthorFilesLines
2026-01-08Replace assertEqualsTakashi Kajinami1-1/+1
It was removed in Python 3.12[1]. [1] https://docs.python.org/ja/3.13/whatsnew/3.12.html#id3 Change-Id: I51c3c7b37f426e1471395b43b812e009bb6fe83b Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
2025-10-01Add ability to get stopped container's factsRoman Krček1-6/+25
kolla_container_facts could only get running containers, this patch adds the ability to specify, that user wants even stopped containers. Also updates module's docs and corrects few typos. Change-Id: I9ace3c1d802bc00ce692b3ca755384c6b62bd72d Signed-off-by: Roman Krček <roman.krcek@tietoevry.com>
2025-07-30Fix RabbitMQ version check always getting skippedSeunghun Lee1-0/+10
Refactoring kolla_container_facts.py [1] caused breaking change because of result output structure was changed. Therefore the condition for the version check block always become false (``container_facts[service.container_name]`` is always undefined). Fixing this issue by matching the new kolla_container_facts result structure. Additionally, added assertions in tests for ``kolla_container_facts`` to ensure the container fact result is not in old structure. [1] https://review.opendev.org/c/openstack/kolla-ansible/+/911505 Closes-Bug: #2102662 Change-Id: I91a5f9c4b0e3c40ef21c25fb4866b07e25fbc017 Signed-off-by: Seunghun Lee <seunghun@stackhpc.com>
2025-03-19Add action for getting container names listIvan Halomi1-0/+24
This patch adds a new action to kolla_container_facts module, which retrieves list of names of all containers. It is intended to be an alternative to using "docker ps -a" type of commands in the Ansible code. Change-Id: I9c04d6fe77f20e5aa832684bd65de95d161cd8ea Signed-off-by: Ivan Halomi <ivan.halomi@tietoevry.com>
2025-03-19Merge of container_facts modulesIvan Halomi1-2/+110
Merge container_facts and container_volume_facts into a single module for retrieving all information about containers and volumes. Change-Id: I5d321b8326edd7f3b7a11dbdc821e534f457f9d7 Signed-off-by: Ivan Halomi <ivan.halomi@tietoevry.com> Signed-off-by: Roman Krček <roman.krcek@tietoevry.com>
2025-02-07Move actions to kolla_container_factsIvan Halomi1-0/+204
Move actions responsible for info about containers from kolla_container module to kolla_container_facts. Also fixes a bug with inconsistencies between docker and podman in kolla_container_facts. Closes-bug: #2084878 Change-Id: I1db88e28a828ebf073f018b2bae1d9556ec22807 Signed-off-by: Ivan Halomi <ivan.halomi@tietoevry.com> Signed-off-by: Martin Hiner <martin.hiner@tietoevry.com> Signed-off-by: Roman Krček <roman.krcek@tietoevry.com>