diff options
author | Jenkins <jenkins@review.openstack.org> | 2017-08-04 20:47:07 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2017-08-04 20:47:07 +0000 |
commit | efad331d0ddae9355c1e129db1d371c86bc85626 (patch) | |
tree | 74700e7a1f7af03368d3c417e935367b721f096b /docker/services | |
parent | 3899491b1cb9fd39f4c2df00c8b955bd6040dc04 (diff) | |
parent | 87b024449908f25090a671e941b177f1ff29675c (diff) |
Merge "Run gnocchi upgrade with sacks in docker template"
Diffstat (limited to 'docker/services')
-rw-r--r-- | docker/services/gnocchi-api.yaml | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/docker/services/gnocchi-api.yaml b/docker/services/gnocchi-api.yaml index 5129b89f..41fe197b 100644 --- a/docker/services/gnocchi-api.yaml +++ b/docker/services/gnocchi-api.yaml @@ -39,6 +39,10 @@ parameters: EnableInternalTLS: type: boolean default: false + NumberOfStorageSacks: + default: 128 + description: Number of storage sacks to create. + type: number conditions: @@ -110,7 +114,11 @@ outputs: - - /var/lib/config-data/gnocchi/etc/gnocchi/:/etc/gnocchi/:ro - /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: gnocchi_api: image: *gnocchi_api_image |