Browse Source

Fix ImportError in Centos CI

This fixes an import error with the newest devstack, which conflicts
with the system FreeIPA installation and results in:
ImportError: cannot import name decorate in dogpile.

Change-Id: I8bade87962f3adacbc26a666ea02fedb74963bfa
Grzegorz Grasza 4 months ago
parent
commit
8aaf9007bb
1 changed files with 13 additions and 0 deletions
  1. 13
    0
      roles/configure-freeipa/tasks/main.yaml

+ 13
- 0
roles/configure-freeipa/tasks/main.yaml View File

@@ -57,3 +57,16 @@
57 57
     --forwarder={{ unbound_primary_nameserver_v4 | default('1.1.1.1') }}
58 58
     --forwarder={{ unbound_secondary_nameserver_v4 | default('8.8.8.8') }}
59 59
   become: true
60
+
61
+- name: Remove system python-decorator package which conflicts with devstack
62
+  command: rpm -e --nodeps python-decorator-3.4.0-3.el7.noarch
63
+  become: true
64
+  ignore_errors: yes
65
+  when: python_version is not defined
66
+
67
+- name: Install the latest decorator module for devstack
68
+  pip:
69
+    name: decorator
70
+    state: forcereinstall
71
+  become: true
72
+  when: python_version is not defined

Loading…
Cancel
Save