aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzhubingbing <1392607554@qq.com>2016-10-15 17:53:37 +0800
committerzhubingbing <1392607554@qq.com>2016-10-17 09:21:54 +0800
commit032234bad63fa4b9f8c04d31d1be26d97086a0fa (patch)
tree7fdd5083d970bb77576274bf5ddebdc4e6720cb6
parentdbf05f076fb2394439afcee95de3922a83f92219 (diff)
downloadkolla-032234bad63fa4b9f8c04d31d1be26d97086a0fa.tar.gz
kolla-032234bad63fa4b9f8c04d31d1be26d97086a0fa.zip
Fix cinder upgrade permission issue
Change-Id: If778c981cfcf020fcf0be6bf7e38a3243e63b85c Partial-Bug: #1631503
-rw-r--r--ansible/roles/cinder/templates/cinder-api.json.j212
-rw-r--r--ansible/roles/cinder/templates/cinder-backup.json.j212
-rw-r--r--ansible/roles/cinder/templates/cinder-scheduler.json.j212
-rw-r--r--ansible/roles/cinder/templates/cinder-volume.json.j212
4 files changed, 48 insertions, 0 deletions
diff --git a/ansible/roles/cinder/templates/cinder-api.json.j2 b/ansible/roles/cinder/templates/cinder-api.json.j2
index 7ffaf6fca..04b916981 100644
--- a/ansible/roles/cinder/templates/cinder-api.json.j2
+++ b/ansible/roles/cinder/templates/cinder-api.json.j2
@@ -7,5 +7,17 @@
"owner": "cinder",
"perm": "0600"
}
+ ],
+ "permissions": [
+ {
+ "path": "/var/lib/cinder",
+ "owner: "cinder:cinder",
+ "recurse": true
+ },
+ {
+ "path": "/var/log/kolla/cinder",
+ "owner": "cinder:cinder",
+ "recurse": true
+ }
]
}
diff --git a/ansible/roles/cinder/templates/cinder-backup.json.j2 b/ansible/roles/cinder/templates/cinder-backup.json.j2
index fefb9d9c5..d42428ac1 100644
--- a/ansible/roles/cinder/templates/cinder-backup.json.j2
+++ b/ansible/roles/cinder/templates/cinder-backup.json.j2
@@ -14,5 +14,17 @@
"perm": "0700",
"optional": {{ (not cinder_backend_ceph | bool) | string | lower }}
}{% endif %}
+ ],
+ "permissions": [
+ {
+ "path": "/var/lib/cinder",
+ "owner": "cinder:cinder",
+ "recurse": true
+ },
+ {
+ "path": "/var/log/kolla/cinder",
+ "owner": "cinder:cinder",
+ "recurse": true
+ }
]
}
diff --git a/ansible/roles/cinder/templates/cinder-scheduler.json.j2 b/ansible/roles/cinder/templates/cinder-scheduler.json.j2
index 89f521d5a..b5ef7b548 100644
--- a/ansible/roles/cinder/templates/cinder-scheduler.json.j2
+++ b/ansible/roles/cinder/templates/cinder-scheduler.json.j2
@@ -7,5 +7,17 @@
"owner": "cinder",
"perm": "0600"
}
+ ],
+ "permissions": [
+ {
+ "path": "/var/lib/cinder",
+ "owner": "cinder:cinder",
+ "recurse": true
+ },
+ {
+ "path": "/var/log/kolla/cinder",
+ "owner": "cinder:cinder",
+ "recurse": true
+ }
]
}
diff --git a/ansible/roles/cinder/templates/cinder-volume.json.j2 b/ansible/roles/cinder/templates/cinder-volume.json.j2
index e82912ad0..db3891119 100644
--- a/ansible/roles/cinder/templates/cinder-volume.json.j2
+++ b/ansible/roles/cinder/templates/cinder-volume.json.j2
@@ -19,5 +19,17 @@
"owner": "cinder",
"perm": "0600"
}{% endif %}
+ ],
+ "permissions": [
+ {
+ "path": "/var/lib/cinder",
+ "owner": "cinder:cinder",
+ "recurse": true
+ },
+ {
+ "path": "/var/log/kolla/cinder",
+ "owner": "cinder:cinder",
+ "recurse": true
+ }
]
}