summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDevan Goodwin <dgoodwin@redhat.com>2015-11-02 13:14:26 -0400
committerDevan Goodwin <dgoodwin@redhat.com>2015-11-02 13:14:26 -0400
commit866dcbe962464a571f24e1e4ae5a9e928f7bbc47 (patch)
treedb9436875b7b96b02266ee8274a9898a1cba2e57
parent1ddfdd136f4b22368c87ad7656faa0cccdfa4a25 (diff)
downloadopenshift-866dcbe962464a571f24e1e4ae5a9e928f7bbc47.tar.gz
openshift-866dcbe962464a571f24e1e4ae5a9e928f7bbc47.tar.bz2
openshift-866dcbe962464a571f24e1e4ae5a9e928f7bbc47.tar.xz
openshift-866dcbe962464a571f24e1e4ae5a9e928f7bbc47.zip
Fix etcd backup bug with not-yet-created /var/lib/origin symlink
-rw-r--r--playbooks/adhoc/upgrades/upgrade.yml5
1 files changed, 5 insertions, 0 deletions
diff --git a/playbooks/adhoc/upgrades/upgrade.yml b/playbooks/adhoc/upgrades/upgrade.yml
index 30896dc8e..c543a4416 100644
--- a/playbooks/adhoc/upgrades/upgrade.yml
+++ b/playbooks/adhoc/upgrades/upgrade.yml
@@ -15,6 +15,11 @@
roles:
- openshift_facts
tasks:
+ - stat: path=/var/lib/openshift
+ register: var_lib_openshift
+ - name: Create origin symlink if necessary
+ file: src=/var/lib/openshift/ dest=/var/lib/origin state=link
+ when: var_lib_openshift.stat.exists == True
- name: Check available disk space for etcd backup
# We assume to be using the data dir for all backups.
shell: >