Run gnocchi upgrade with sacks in docker template
Without this gnocchi is not initializing the sacks like puppet does and gnocchi containers dont respond properly. Change-Id: I2c53b00793f99420fd12ccc0b5646cf21d528e46
This commit is contained in:
parent
24349715ca
commit
87b0244499
|
@ -39,6 +39,10 @@ parameters:
|
||||||
EnableInternalTLS:
|
EnableInternalTLS:
|
||||||
type: boolean
|
type: boolean
|
||||||
default: false
|
default: false
|
||||||
|
NumberOfStorageSacks:
|
||||||
|
default: 128
|
||||||
|
description: Number of storage sacks to create.
|
||||||
|
type: number
|
||||||
|
|
||||||
conditions:
|
conditions:
|
||||||
|
|
||||||
|
@ -110,7 +114,11 @@ outputs:
|
||||||
-
|
-
|
||||||
- /var/lib/config-data/gnocchi/etc/gnocchi/:/etc/gnocchi/:ro
|
- /var/lib/config-data/gnocchi/etc/gnocchi/:/etc/gnocchi/:ro
|
||||||
- /var/log/containers/gnocchi:/var/log/gnocchi
|
- /var/log/containers/gnocchi:/var/log/gnocchi
|
||||||
command: "/usr/bin/bootstrap_host_exec gnocchi_api su gnocchi -s /bin/bash -c '/usr/bin/gnocchi-upgrade --skip-storage'"
|
command:
|
||||||
|
str_replace:
|
||||||
|
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_4:
|
step_4:
|
||||||
gnocchi_api:
|
gnocchi_api:
|
||||||
image: *gnocchi_api_image
|
image: *gnocchi_api_image
|
||||||
|
|
Loading…
Reference in New Issue