gnocchi: mount the correct volume for /etc/ceph
During step4, /etc/ceph is the one of the host server instead of the one generated by kolla. This change uses the one generated by kolla and expose it to the container. Closes-bug: #1734134 Change-Id: Ia1cca1c5d228ce0a3ef23a7c92f96a20ab958437
This commit is contained in:
parent
cafaeefd1e
commit
6c1244d7a4
@ -87,7 +87,7 @@ outputs:
|
|||||||
kolla_config:
|
kolla_config:
|
||||||
/var/lib/kolla/config_files/gnocchi_api.json:
|
/var/lib/kolla/config_files/gnocchi_api.json:
|
||||||
command: /usr/sbin/httpd -DFOREGROUND
|
command: /usr/sbin/httpd -DFOREGROUND
|
||||||
config_files:
|
config_files: &gnocchi_api_kolla_config_files
|
||||||
- source: "/var/lib/kolla/config_files/src/*"
|
- source: "/var/lib/kolla/config_files/src/*"
|
||||||
dest: "/"
|
dest: "/"
|
||||||
merge: true
|
merge: true
|
||||||
@ -96,7 +96,7 @@ outputs:
|
|||||||
dest: "/etc/ceph/"
|
dest: "/etc/ceph/"
|
||||||
merge: true
|
merge: true
|
||||||
preserve_properties: true
|
preserve_properties: true
|
||||||
permissions:
|
permissions: &gnocchi_api_kolla_permissions
|
||||||
- path: /var/log/gnocchi
|
- path: /var/log/gnocchi
|
||||||
owner: gnocchi:gnocchi
|
owner: gnocchi:gnocchi
|
||||||
recurse: true
|
recurse: true
|
||||||
@ -107,6 +107,14 @@ outputs:
|
|||||||
USER: {get_param: CephClientUserName}
|
USER: {get_param: CephClientUserName}
|
||||||
owner: gnocchi:gnocchi
|
owner: gnocchi:gnocchi
|
||||||
perm: '0600'
|
perm: '0600'
|
||||||
|
/var/lib/kolla/config_files/gnocchi_db_sync.json:
|
||||||
|
command:
|
||||||
|
str_replace:
|
||||||
|
template: /usr/bin/gnocchi-upgrade --sacks-number=SACK_NUM
|
||||||
|
params:
|
||||||
|
SACK_NUM: {get_param: NumberOfStorageSacks}
|
||||||
|
config_files: *gnocchi_api_kolla_config_files
|
||||||
|
permissions: *gnocchi_api_kolla_permissions
|
||||||
docker_config:
|
docker_config:
|
||||||
# db sync runs before permissions set by kolla_config
|
# db sync runs before permissions set by kolla_config
|
||||||
step_2:
|
step_2:
|
||||||
@ -128,16 +136,13 @@ outputs:
|
|||||||
list_concat:
|
list_concat:
|
||||||
- {get_attr: [ContainersCommon, volumes]}
|
- {get_attr: [ContainersCommon, volumes]}
|
||||||
-
|
-
|
||||||
- /var/lib/config-data/gnocchi/etc/my.cnf.d/tripleo.cnf:/etc/my.cnf.d/tripleo.cnf:ro
|
- /var/lib/kolla/config_files/gnocchi_db_sync.json:/var/lib/kolla/config_files/config.json:ro
|
||||||
- /var/lib/config-data/gnocchi/etc/gnocchi/:/etc/gnocchi/:ro
|
- /var/lib/config-data/puppet-generated/gnocchi/:/var/lib/kolla/config_files/src:ro
|
||||||
- /var/log/containers/gnocchi:/var/log/gnocchi
|
- /var/log/containers/gnocchi:/var/log/gnocchi
|
||||||
- /var/log/containers/httpd/gnocchi-api:/var/log/httpd
|
- /var/log/containers/httpd/gnocchi-api:/var/log/httpd
|
||||||
- /etc/ceph:/etc/ceph:ro
|
- /etc/ceph:/var/lib/kolla/config_files/src-ceph:ro
|
||||||
command:
|
environment:
|
||||||
str_replace:
|
- KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
|
||||||
template: /usr/bin/bootstrap_host_exec gnocchi_api su gnocchi -s /bin/bash -c '/usr/bin/gnocchi-upgrade --sacks-number=SACK_NUM'
|
|
||||||
params:
|
|
||||||
SACK_NUM: {get_param: NumberOfStorageSacks}
|
|
||||||
step_5:
|
step_5:
|
||||||
gnocchi_api:
|
gnocchi_api:
|
||||||
image: *gnocchi_api_image
|
image: *gnocchi_api_image
|
||||||
|
Loading…
Reference in New Issue
Block a user