diff options
| author | Jeffrey Zhang <zhang.lei.fly@gmail.com> | 2016-10-10 22:37:05 +0800 |
|---|---|---|
| committer | Jeffrey Zhang <zhang.lei.fly@gmail.com> | 2016-10-13 01:19:05 +0800 |
| commit | 4c207bc0399f024f24c05446a6924875c0f7aaef (patch) | |
| tree | 03a133a2db8711c7740538ed35da10bb989b6013 /ansible | |
| parent | 5a427a941f1101d24b537c1b5e71ec82a3087a97 (diff) | |
| download | kolla-4c207bc0399f024f24c05446a6924875c0f7aaef.tar.gz kolla-4c207bc0399f024f24c05446a6924875c0f7aaef.zip | |
Fix rabbitmq upgrade permission issue
During the upgrade from Mitaka to Newton, the uid/gid may change for the
same image. Especially on Ubuntu, we moved to Ubuntu Xenial in Newton
and it added systemd related user which break all the uid/gid during an
upgrade. It will the permissions in all docker named volumes.
This fix extends set_config.py to set the proper permission during
container start. This is super light then add commands in
extend_start.sh file or add ansible tasks.
This patch just fixes rabbitmq case. Other services will be fixed in
following patches.
Partial-Bug: #1631503
Change-Id: Ib17027b97abbc9bf4e3cd503601b8010325b5c5b
Diffstat (limited to 'ansible')
| -rw-r--r-- | ansible/roles/rabbitmq/templates/rabbitmq.json.j2 | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ansible/roles/rabbitmq/templates/rabbitmq.json.j2 b/ansible/roles/rabbitmq/templates/rabbitmq.json.j2 index 4e99cc218..07987def3 100644 --- a/ansible/roles/rabbitmq/templates/rabbitmq.json.j2 +++ b/ansible/roles/rabbitmq/templates/rabbitmq.json.j2 @@ -25,5 +25,17 @@ "owner": "rabbitmq", "perm": "0600" } + ], + "permissions": [ + { + "path": "/var/lib/rabbitmq", + "owner": "rabbitmq:rabbitmq", + "recurse": true + }, + { + "path": "/var/log/kolla/rabbitmq", + "owner": "rabbitmq:rabbitmq", + "recurse": true + } ] } |
