<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openstack/kolla.git/docker/base/set_configs.py, branch stein-eol</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<id>https://git.platform-os.org/openstack/kolla.git/atom?h=stein-eol</id>
<link rel='self' href='https://git.platform-os.org/openstack/kolla.git/atom?h=stein-eol'/>
<link rel='alternate' type='text/html' href='https://git.platform-os.org/openstack/kolla.git/'/>
<updated>2020-09-14T10:09:05+00:00</updated>
<entry>
<title>Fix kolla_set_configs --check with a directory</title>
<updated>2020-09-14T10:09:05+00:00</updated>
<author>
<name>Mark Goddard</name>
<email>mark@stackhpc.com</email>
</author>
<published>2020-08-06T09:50:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.platform-os.org/openstack/kolla.git/commit/?id=c6835b12a6f1e8f715aa5c69383a8d1836551496'/>
<id>urn:sha1:c6835b12a6f1e8f715aa5c69383a8d1836551496</id>
<content type='text'>
There are several issues with kolla_set_configs --check:

1. We calculate the destination path incorrectly when comparing a file
   in a directory, due to passing arguments to os.path.relpath in the
   wrong order
2. For directories that have not changed, we also attempt to compare
   them as files, which fails when they are open()ed.
3. If the config JSON does not have a config_files key, it fails with a
   KeyError.

The first two issues affect the fluentd container, which specifies
directories as the source, without using a glob. The third affects OVN
containers.

This patch fixes these issues.

Closes-Bug: #1890567

Change-Id: I8921befe51da4282121443849177a7ca5ebe8822
(cherry picked from commit c5320eb22386c34d83435fa0b9aa03b178996b52)
</content>
</entry>
<entry>
<title>Make set_config.py compatible with both Py2 and Py3</title>
<updated>2019-01-18T09:37:44+00:00</updated>
<author>
<name>Damien Ciabrini</name>
<email>dciabrin@redhat.com</email>
</author>
<published>2019-01-17T18:06:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.platform-os.org/openstack/kolla.git/commit/?id=8344c8ea21428c5978d3c5e7ae74d6e43dd8ba95'/>
<id>urn:sha1:8344c8ea21428c5978d3c5e7ae74d6e43dd8ba95</id>
<content type='text'>
When asserting the validity of config files, we currently
use viewkeys(), which has been removed in Python3, so a kolla
container cannot set the config with Python3 only.

  "Traceback (most recent call last):",
  "  File \"/usr/local/bin/kolla_set_configs\", line 406, in main",
  "    config = load_config()",
  "  File \"/usr/local/bin/kolla_set_configs\", line 297, in load_config",
  "    validate_config(config)",
  "  File \"/usr/local/bin/kolla_set_configs\", line 238, in validate_config",
  "    if not data.viewkeys() &gt;= required_keys:",
  "AttributeError: 'dict' object has no attribute 'viewkeys'"

Use keys() instead, which is compatible with both Python2 and
Python3, and has no visible performance disadvantage and wrap it in a
set() call so that we are guranteed to compare sets.

Change-Id: I5f53c8f5a390a9df3ebb60659ebdcef41e3a9cad
Co-Authored-By: Michele Baldessari &lt;michele@acksyn.org&gt;
</content>
</entry>
<entry>
<title>Ensure /run_command is readable by all users</title>
<updated>2019-01-15T14:43:38+00:00</updated>
<author>
<name>Damien Ciabrini</name>
<email>dciabrin@redhat.com</email>
</author>
<published>2019-01-15T14:37:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.platform-os.org/openstack/kolla.git/commit/?id=ba2a69644f79ec54da8c2356f591f2c3f403bd6b'/>
<id>urn:sha1:ba2a69644f79ec54da8c2356f591f2c3f403bd6b</id>
<content type='text'>
On some distro, running kolla_start via su changes
the default UMASK, and consequently set_configs.py
generates a /run_command that is not world-readable,
and kolla cannot start the configured service.

Make sure /run_command always has 'go+r' permissions.

Change-Id: I6304f5937c512068ee1fb8aac5c88a2bd086e387
</content>
</entry>
<entry>
<title>Only copy symlinks when merge and preserve_properties are set</title>
<updated>2017-07-17T08:01:38+00:00</updated>
<author>
<name>Martin André</name>
<email>m.andre@redhat.com</email>
</author>
<published>2017-07-17T07:46:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.platform-os.org/openstack/kolla.git/commit/?id=fc1caced86b80bb171f495a0f09aed3ef867ab01'/>
<id>urn:sha1:fc1caced86b80bb171f495a0f09aed3ef867ab01</id>
<content type='text'>
The kolla-kubernetes config files live in a ..data directory in the
config volume and are symlinked with relative path at the root of the
config volume. This naturally breaks with the link copy feature
introduce in I92a404b8d301937dc1847d42576e30db43951990.

This commit restores the original behavior to copy the target of the
link unless both 'merge' and 'preserve_properties' options are set, in
which case the link itself is copied.

Change-Id: I5d768687208205fb50ef5ab93675f47e98ea6351
</content>
</entry>
<entry>
<title>Make set_configs.py work with symlinks</title>
<updated>2017-07-06T09:18:53+00:00</updated>
<author>
<name>Martin André</name>
<email>m.andre@redhat.com</email>
</author>
<published>2017-07-04T13:31:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.platform-os.org/openstack/kolla.git/commit/?id=f54f3406308406a158737c468c5e61ddb1eb61a2'/>
<id>urn:sha1:f54f3406308406a158737c468c5e61ddb1eb61a2</id>
<content type='text'>
Closes-Bug: #1702305

Change-Id: I92a404b8d301937dc1847d42576e30db43951990
</content>
</entry>
<entry>
<title>Merge "Improve logging of set_configs.py"</title>
<updated>2017-07-04T14:13:38+00:00</updated>
<author>
<name>Jenkins</name>
<email>jenkins@review.openstack.org</email>
</author>
<published>2017-07-04T14:13:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.platform-os.org/openstack/kolla.git/commit/?id=e677a46a84c8dbde40e6aa1c03fe6acf36783601'/>
<id>urn:sha1:e677a46a84c8dbde40e6aa1c03fe6acf36783601</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Improve logging of set_configs.py</title>
<updated>2017-07-03T15:22:35+00:00</updated>
<author>
<name>Martin André</name>
<email>m.andre@redhat.com</email>
</author>
<published>2017-07-03T12:48:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.platform-os.org/openstack/kolla.git/commit/?id=39daa5a45290398e5d49b052a44fc5eb8f06935f'/>
<id>urn:sha1:39daa5a45290398e5d49b052a44fc5eb8f06935f</id>
<content type='text'>
Remove duplicate logging for file copying, and clarify some log
messages.

Change-Id: I4dfaffa62f79a32a7fd6060b92ccb119f657f854
</content>
</entry>
<entry>
<title>Fix argument to handle_permissions</title>
<updated>2017-07-02T10:05:36+00:00</updated>
<author>
<name>Chulmin Kang</name>
<email>chaman.kang@gmail.com</email>
</author>
<published>2017-07-02T07:09:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.platform-os.org/openstack/kolla.git/commit/?id=ea3d140cab23ce3016e3bea7d35e4f5fbb8611f6'/>
<id>urn:sha1:ea3d140cab23ce3016e3bea7d35e4f5fbb8611f6</id>
<content type='text'>
Fix the format of argument passed to handle_permissions function, so
that handle_permissions can handle permissions and ownerships of
config_files.

Change-Id: Ic07975a16973df22cdaa6685fc326620812f8f65
Closes-Bug: #1701876
</content>
</entry>
<entry>
<title>Introduce merge and preserve_properties for config_files</title>
<updated>2017-06-27T06:44:41+00:00</updated>
<author>
<name>Martin André</name>
<email>m.andre@redhat.com</email>
</author>
<published>2017-06-21T13:52:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.platform-os.org/openstack/kolla.git/commit/?id=e313c896219b3942d66a00d5388ba2cda6bcce87'/>
<id>urn:sha1:e313c896219b3942d66a00d5388ba2cda6bcce87</id>
<content type='text'>
The `merge` option will basically copy all the files recursively inside
the container without removing the existing files or directory, while
the `preserve_properties` option keeps the file attributes
(permissions, ownership, timestamps) in the container.

This is useful if you have extracted some config files from a container
and want to use them in another container based on the same image.

This makes TripleO usage of Kolla much more robust.

Change-Id: I78dcec741a941dc21adba33ba33a6dc6ff1d217c
</content>
</entry>
<entry>
<title>Allow setting copied files group more precisely</title>
<updated>2017-06-21T16:17:44+00:00</updated>
<author>
<name>Martin André</name>
<email>m.andre@redhat.com</email>
</author>
<published>2017-06-06T08:58:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.platform-os.org/openstack/kolla.git/commit/?id=748a056b0964e2abf93ad66951957c834a32b81b'/>
<id>urn:sha1:748a056b0964e2abf93ad66951957c834a32b81b</id>
<content type='text'>
Previously with the config_files structure of config.json, the group
name was automatically set to the one of the user name. It is now
possible to set the group name in the same fashion than the
'permissions' structure with:

  owner: 'desired_owner:desired_group'

Closes-Bug: #1696095
Change-Id: Ibae9f74e2351c81a717294467aedc51ea773c41e
</content>
</entry>
</feed>
