kolla_set_configs doesn't handle permissions and ownerships of config_files
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kolla |
Fix Released
|
Undecided
|
Chulmin Kang |
Bug Description
kolla_set_configs script doesn't handle config_files permissions and ownerships defined in config.json file.
For example, in mariadb container's config.json, 'owner' and 'perm' are defined for two config_files (my.cnf, wsrep-notify.sh).
config.json
{
"command": "/usr/bin/
"config_files": [
{
"dest": "/etc/{{ mysql_dir }}/my.cnf",
"perm": "0600"
},
{
"dest": "/usr/local/
"perm": "0700"
}
],
"permissions": [
{
"path": "/var/log/
},
{
"path": "/var/lib/mysql",
}
]
}
But after mariadb container started, the ownerships and permissions of those two files are not changed.
root@devstack:~# docker exec -it mariadb bash
(mariadb)
-rw-r--r-- 1 root root 1406 Jun 30 15:39 /usr/local/
(mariadb)
-rw-r--r-- 1 root root 1058 Jun 30 15:39 /etc/mysql/my.cnf
That's because _set_properties
def _set_properties
should be changed to like this;
def _set_properties
so that hande_permissions can handle permissions and ownerships of config_files.
Changed in kolla: | |
assignee: | nobody → Chulmin Kang (chamankang) |
description: | updated |
Fix proposed to branch: master /review. openstack. org/479592
Review: https:/