Browse Source

Fix etcd backup bug with not-yet-created /var/lib/origin symlink

Devan Goodwin 9 years ago
parent
commit
866dcbe962
1 changed files with 5 additions and 0 deletions
  1. 5 0
      playbooks/adhoc/upgrades/upgrade.yml

+ 5 - 0
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: >