diff options
author | Janki Chhatbar <jchhatba@redhat.com> | 2017-09-01 20:32:42 +0530 |
---|---|---|
committer | Janki Chhatbar <jchhatba@redhat.com> | 2017-09-06 15:30:19 +0530 |
commit | f9df42b4cfdc13aa96b3061d58c8612ef4539f44 (patch) | |
tree | c19c9894c707a961b4eea93e5fd7cc155b72b38d /docker | |
parent | 0fd2fdaa9035d2af09b3eddd88b60c8f1a0e54f6 (diff) |
Mount folders and log file
journal and snapshots folders hold data needed for update. This
patch mounts these folders and adds ODL log file in
/var/log/containers/opendaylight
Change-Id: I65c6183c2867b2ced6e6ef25896d80154857b7dc
Closes:Bug: #1714231
(cherry picked from commit 81dd0808d2a180d108f1159bc67f345fe6bf27d4)
Diffstat (limited to 'docker')
-rw-r--r-- | docker/services/opendaylight-api.yaml | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/docker/services/opendaylight-api.yaml b/docker/services/opendaylight-api.yaml index 6a62f65e..2a6fcfe8 100644 --- a/docker/services/opendaylight-api.yaml +++ b/docker/services/opendaylight-api.yaml @@ -97,10 +97,21 @@ outputs: - - /var/lib/kolla/config_files/opendaylight_api.json:/var/lib/kolla/config_files/config.json:ro - /var/lib/config-data/puppet-generated/opendaylight/:/var/lib/kolla/config_files/src:ro + - /var/log/containers/opendaylight:/opt/opendaylight/data/log + - /var/lib/opendaylight/journal:/opt/opendaylight/journal + - /var/lib/opendaylight/snapshots:/opt/opendaylight/snapshots environment: - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS - + host_prep_tasks: + - name: create persistent directories + file: + path: "{{ item }}" + state: directory + with_items: + - /var/log/containers/opendaylight + - /var/lib/opendaylight/snapshots + - /var/lib/opendaylight/journal upgrade_tasks: - name: Stop and disable opendaylight_api service tags: step2 - service: name=opendaylight state=stopped enabled=no + service: name=opendaylight state=stopped enabled=no
\ No newline at end of file |