Don't mount data folder
"data" folder mounted on host sometimes makes ODL believe that it has boot features installed. So ODL doesnot generate required files. So don't mount that folder so that ODL can boot properly on restart. Closes-Bug: #1805859 Change-Id: Icb415f6ac379e757edfe6dd73f80484a6697d152
This commit is contained in:
parent
38f7f7d9a7
commit
e9525d3a7d
@ -140,7 +140,6 @@ outputs:
|
||||
- /var/lib/config-data/puppet-generated/opendaylight/:/var/lib/kolla/config_files/src:ro
|
||||
- /var/lib/opendaylight/journal:/opt/opendaylight/journal
|
||||
- /var/lib/opendaylight/snapshots:/opt/opendaylight/snapshots
|
||||
- /var/lib/opendaylight/data:/opt/opendaylight/data
|
||||
environment:
|
||||
- KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
|
||||
metadata_settings:
|
||||
@ -149,12 +148,12 @@ outputs:
|
||||
list_concat:
|
||||
- {get_attr: [OpenDaylightApiLogging, host_prep_tasks]}
|
||||
-
|
||||
- name: Delete cache and karaf folder
|
||||
- name: Delete data and karaf folder
|
||||
file:
|
||||
path: "{{ item }}"
|
||||
state: absent
|
||||
with_items:
|
||||
- /var/lib/opendaylight/data/cache
|
||||
- /var/lib/opendaylight/data # Delete folder if present from previous deployment
|
||||
- /var/lib/config-data/puppet-generated/opendaylight/opt/opendaylight/etc/opendaylight/karaf
|
||||
- name: create persistent directories
|
||||
file:
|
||||
@ -163,7 +162,6 @@ outputs:
|
||||
with_items:
|
||||
- /var/lib/opendaylight/snapshots
|
||||
- /var/lib/opendaylight/journal
|
||||
- /var/lib/opendaylight/data
|
||||
upgrade_tasks:
|
||||
- when: step|int == 0
|
||||
tags: common
|
||||
@ -201,14 +199,13 @@ outputs:
|
||||
name: opendaylight_api
|
||||
state: stopped
|
||||
when: step|int == 0
|
||||
- name: remove data, journal and snapshots
|
||||
- name: remove journal and snapshots
|
||||
file:
|
||||
path: /var/lib/opendaylight/{{item}}
|
||||
state: absent
|
||||
with_items:
|
||||
- snapshots
|
||||
- journal
|
||||
- data
|
||||
when: step|int == 0
|
||||
- name: Set ODL upgrade flag to True
|
||||
copy:
|
||||
@ -278,9 +275,9 @@ outputs:
|
||||
docker_container:
|
||||
name: opendaylight_api
|
||||
state: stopped
|
||||
- name: Delete cache folder
|
||||
- name: Delete data folder
|
||||
file:
|
||||
path: /var/lib/opendaylight/data/cache
|
||||
path: /var/lib/opendaylight/data
|
||||
state: absent
|
||||
when:
|
||||
- step|int == 0
|
||||
|
@ -0,0 +1,9 @@
|
||||
---
|
||||
fixes:
|
||||
- |
|
||||
/opt/opendaylight/data folder is mounted on host. This folder
|
||||
contains information about installed features in ODL. Mounting
|
||||
this folder on container makes ODL believe that features are
|
||||
installed and it doesnot generate required for proper boot. Thus
|
||||
this folder is no longer mounted to host so that ODL can boot
|
||||
properly on restart.
|
Loading…
Reference in New Issue
Block a user