<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openstack/kolla.git/tests/test_set_config.py, branch stable/2026.2</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<id>https://git.platform-os.org/openstack/kolla.git/atom?h=stable%2F2026.2</id>
<link rel='self' href='https://git.platform-os.org/openstack/kolla.git/atom?h=stable%2F2026.2'/>
<link rel='alternate' type='text/html' href='https://git.platform-os.org/openstack/kolla.git/'/>
<updated>2026-07-06T19:59:40+00:00</updated>
<entry>
<title>Migrate to pyproject.toml</title>
<updated>2026-07-06T19:59:40+00:00</updated>
<author>
<name>Michal Nasiadka</name>
<email>mnasiadka@gmail.com</email>
</author>
<published>2026-07-06T13:26:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.platform-os.org/openstack/kolla.git/commit/?id=db35ac8d793506bc43b62e7e39d27a75de1043ed'/>
<id>urn:sha1:db35ac8d793506bc43b62e7e39d27a75de1043ed</id>
<content type='text'>
[tool.setuptools.data-files] does not support recursive directory
installation. The old setup.cfg [files] worked because PBR's
FilesConfig.expand_globs() used os.walk() to expand docker/*, but
this hook is not triggered by the pbr.build PEP-517 backend.

Move docker/ into kolla/ and use [tool.setuptools.package-data]
instead. Update kolla_worker._get_images_dir() to check the kolla
package directory first so both editable and regular installs work.

Change-Id: I4fc452c03740ef22ebbb4e8d0d86c4f4783e2d09
Signed-off-by: Michal Nasiadka &lt;mnasiadka@gmail.com&gt;
</content>
</entry>
<entry>
<title>Merge "Remove redundant permission parsing tests"</title>
<updated>2026-07-04T08:11:01+00:00</updated>
<author>
<name>Zuul</name>
<email>zuul@review.opendev.org</email>
</author>
<published>2026-07-04T08:11:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.platform-os.org/openstack/kolla.git/commit/?id=5d2e09e6535aef10620af1c549998892d8b9218b'/>
<id>urn:sha1:5d2e09e6535aef10620af1c549998892d8b9218b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>set_configs: Add support for creating files and setting perms</title>
<updated>2026-07-02T15:28:39+00:00</updated>
<author>
<name>Michal Arbet</name>
<email>michal.arbet@ultimum.io</email>
</author>
<published>2026-05-25T07:56:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.platform-os.org/openstack/kolla.git/commit/?id=ebc7eb82969af107f5a54b29b8ef898cd759a997'/>
<id>urn:sha1:ebc7eb82969af107f5a54b29b8ef898cd759a997</id>
<content type='text'>
Change-Id: I74a6d05007488b69fa040c40d01a07afae369794
Needed-By: https://review.opendev.org/c/openstack/kolla-ansible/+/989850
Signed-off-by: Michal Arbet &lt;michal.arbet@ultimum.io&gt;
</content>
</entry>
<entry>
<title>Remove redundant permission parsing tests</title>
<updated>2026-07-02T14:25:33+00:00</updated>
<author>
<name>Michal Arbet</name>
<email>michal.arbet@ultimum.io</email>
</author>
<published>2026-07-02T14:24:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.platform-os.org/openstack/kolla.git/commit/?id=8c0fe8de026016dd26bd6c23d8079f3e597b81a7'/>
<id>urn:sha1:8c0fe8de026016dd26bd6c23d8079f3e597b81a7</id>
<content type='text'>
The removed Python octal notation test is already covered by
test_handle_permissions_accepts_valid_permission_notations, which
includes 0o2775.

Change-Id: Ia25d10a6ff3608e2a38d1a88bf229fe3f96d19ee
Signed-off-by: Michal Arbet &lt;michal.arbet@ultimum.io&gt;
</content>
</entry>
<entry>
<title>Fix parsing of permissions with special bits</title>
<updated>2026-07-01T16:11:49+00:00</updated>
<author>
<name>Michal Arbet</name>
<email>michal.arbet@ultimum.io</email>
</author>
<published>2026-05-16T13:05:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.platform-os.org/openstack/kolla.git/commit/?id=505428fd51f3801c39850437f908fcf106a8fc94'/>
<id>urn:sha1:505428fd51f3801c39850437f908fcf106a8fc94</id>
<content type='text'>
kolla_set_configs currently fails to parse permissions
such as 2775 because only legacy values like 0755 are
converted to Python octal notation.

Accept standard UNIX permission notation for
permissions with special mode bits such as SGID, SUID,
and sticky bit.

Change-Id: I5937a17b0d70f9c1db4b2617854d0180c37fe2c0
Closes-Bug: #2154269
Needed-By: https://review.opendev.org/c/openstack/kolla-ansible/+/989850
Signed-off-by: Michal Arbet &lt;michal.arbet@ultimum.io&gt;
</content>
</entry>
<entry>
<title>Add YAML support to kolla_set_configs engine</title>
<updated>2026-06-17T16:32:01+00:00</updated>
<author>
<name>Piotr Milewski</name>
<email>vurmil@gmail.com</email>
</author>
<published>2026-03-26T17:05:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.platform-os.org/openstack/kolla.git/commit/?id=d6910f01deb3fa41b2a7662d1d5eb4a7d1b5c50f'/>
<id>urn:sha1:d6910f01deb3fa41b2a7662d1d5eb4a7d1b5c50f</id>
<content type='text'>
Following the PTG agreement, this commit extends the container
configuration engine (set_configs.py) to support YAML format while
maintaining backward compatibility with JSON.

- Integrated 'yaml' library as a universal parser for both JSON
  and YAML formats (YAML is a superset of JSON)
- Updated 'load_config' to search for 'config.json', 'config.yaml'
- Added 'python3-yaml' (Debian) and 'python3-pyyaml' (RHEL) as
  required base packages in Dockerfile.j2

This change improves configuration readability and allows for
easier maintenance while ensuring no breakage for existing
JSON-based deployments.

Change-Id: Icfb52b8f94e1036d5952b160c5921348d1427fda
Signed-off-by: Piotr Milewski &lt;vurmil@gmail.com&gt;
</content>
</entry>
<entry>
<title>set_configs: Add support for creating directories and setting perms</title>
<updated>2026-05-05T10:34:26+00:00</updated>
<author>
<name>Michal Nasiadka</name>
<email>mnasiadka@gmail.com</email>
</author>
<published>2026-04-27T13:28:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.platform-os.org/openstack/kolla.git/commit/?id=33c0e26e8a0290f0b6d647bb67e18a4f500907fc'/>
<id>urn:sha1:33c0e26e8a0290f0b6d647bb67e18a4f500907fc</id>
<content type='text'>
Change-Id: Id63c035fafaa68a9004c65161c5a3a3ad5544f02
Signed-off-by: Michal Nasiadka &lt;mnasiadka@gmail.com&gt;
</content>
</entry>
<entry>
<title>Fix kolla-set-configs --check to detect state mismatch</title>
<updated>2025-06-19T12:23:35+00:00</updated>
<author>
<name>Michal Arbet</name>
<email>michal.arbet@ultimum.io</email>
</author>
<published>2025-06-12T11:29:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.platform-os.org/openstack/kolla.git/commit/?id=cf3c65fef7c51b8f54c32bfa58574f58ad4071c8'/>
<id>urn:sha1:cf3c65fef7c51b8f54c32bfa58574f58ad4071c8</id>
<content type='text'>
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 &lt;michal.arbet@ultimum.io&gt;
Change-Id: I6e0b4aaa5722990e3ac647578023f474db3d4381
</content>
</entry>
<entry>
<title>Fix mock_open() expectations for Python 3.13+</title>
<updated>2025-05-21T12:58:57+00:00</updated>
<author>
<name>Michal Nasiadka</name>
<email>mnasiadka@gmail.com</email>
</author>
<published>2025-05-20T10:17:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.platform-os.org/openstack/kolla.git/commit/?id=e13801b4a1e5f587ee0581168eea0d42fea6cb66'/>
<id>urn:sha1:e13801b4a1e5f587ee0581168eea0d42fea6cb66</id>
<content type='text'>
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
</content>
</entry>
<entry>
<title>Fix handling configs in base image</title>
<updated>2024-11-06T16:37:31+00:00</updated>
<author>
<name>Michal Arbet</name>
<email>michal.arbet@ultimum.io</email>
</author>
<published>2024-04-10T18:11:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.platform-os.org/openstack/kolla.git/commit/?id=36c12676ff185f524a7f4d2f2f4c70b5d60462b4'/>
<id>urn:sha1:36c12676ff185f524a7f4d2f2f4c70b5d60462b4</id>
<content type='text'>
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
</content>
</entry>
</feed>
