diff options
author | Jenkins <jenkins@review.openstack.org> | 2017-07-26 08:55:52 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2017-07-26 08:55:52 +0000 |
commit | 36e6a0c693ce80b424adc3ebfc1b94f7f8a8a446 (patch) | |
tree | 19073240e076b2aaacaa7e8be71560e7058e4f74 /docker/services | |
parent | 963d1b3db6c76434f8ca4079a31336afb64b11d2 (diff) | |
parent | ee34cd6778646eb5930490ed1e0cf5a1aff56882 (diff) |
Merge "nova_api_cron docker fix: add /var/spool/cron/nova"
Diffstat (limited to 'docker/services')
-rw-r--r-- | docker/services/nova-api.yaml | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/docker/services/nova-api.yaml b/docker/services/nova-api.yaml index 1d73a538..4bec8035 100644 --- a/docker/services/nova-api.yaml +++ b/docker/services/nova-api.yaml @@ -88,6 +88,17 @@ outputs: - path: /var/log/nova owner: nova:nova recurse: true + /var/lib/kolla/config_files/nova_api_cron.json: + command: /usr/sbin/crond -n + config_files: + - source: "/var/lib/kolla/config_files/src/*" + dest: "/" + merge: true + preserve_properties: true + permissions: + - path: /var/log/nova + owner: nova:nova + recurse: true docker_config: # db sync runs before permissions set by kolla_config step_2: @@ -151,7 +162,7 @@ outputs: user: nova privileged: true restart: always - volumes: &nova_api_volumes + volumes: list_concat: - {get_attr: [ContainersCommon, volumes]} - @@ -164,12 +175,17 @@ outputs: image: *nova_api_image net: host user: root - privileged: true + privileged: false restart: always - volumes: *nova_api_volumes + volumes: + list_concat: + - {get_attr: [ContainersCommon, volumes]} + - + - /var/lib/kolla/config_files/nova_api_cron.json:/var/lib/kolla/config_files/config.json:ro + - /var/lib/config-data/puppet-generated/nova/:/var/lib/kolla/config_files/src:ro + - /var/log/containers/nova:/var/log/nova environment: - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS - command: "/usr/sbin/crond -n" step_5: nova_api_discover_hosts: start_order: 1 |