From e1fd2e40e12168dca24e8b11bf8773a6593349ea Mon Sep 17 00:00:00 2001 From: Markos Chandras Date: Mon, 14 Aug 2017 15:53:49 +0100 Subject: [PATCH] tasks: cinder_install: Fix virtualenv-tools issue on openSUSE This is similar to Ic6c005bc55018898830bfc937829c6fade72e670 openSUSE is also suffering from the same virtualenv-tools issue so we need to remove the existing python-2.7 symlink. Link: https://github.com/fireteam/virtualenv-tools/issues/5 Related-Bug: #1637509 Partial-Bug: #1644629 Change-Id: Ib1b4313071c2442d1c320fb2eab5f4b072078960 --- tasks/cinder_install.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/cinder_install.yml b/tasks/cinder_install.yml index 0be11b54..71855dd2 100644 --- a/tasks/cinder_install.yml +++ b/tasks/cinder_install.yml @@ -99,12 +99,12 @@ when: cinder_get_venv | failed or cinder_get_venv | skipped notify: Restart cinder services -- name: CentOS remove python from path first +- name: Remove python from path first (CentOS, openSUSE) file: path: "{{ cinder_bin | dirname }}/bin/python2.7" state: "absent" when: - - ansible_pkg_mgr in ['yum', 'dnf'] + - ansible_pkg_mgr in ['yum', 'dnf', 'zypper'] - cinder_get_venv | changed - name: Update virtualenv path