]> xenbits.xensource.com Git - people/aperard/osstest.git/commitdiff
ts-openstack-deploy: Ignore libvirt-python version and use latest
authorAnthony PERARD <anthony.perard@citrix.com>
Fri, 9 Jun 2017 15:03:24 +0000 (16:03 +0100)
committerAnthony PERARD <anthony.perard@citrix.com>
Mon, 23 Oct 2017 15:50:35 +0000 (16:50 +0100)
Devstack is going to try to install a specific version of libvirt-python
(currently 2.5.0) but this fail with libvirt installed by osstest.
Remove the requirement and use the latest available instead.

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
ts-openstack-deploy

index befe3d3dfa2361517ce81ebfd35e24a3bc1fb6c0..00f262fc08cc0f61087ef2a0caf0f0fe23bcf2ce 100755 (executable)
@@ -93,6 +93,21 @@ END
         }
     );
 
+    target_editfile($ho,
+        "$builddir/requirements/upper-constraints.txt",
+        sub {
+            while (<EI>) {
+                # Ignore libvirt-python requirement and install latest,
+                # otherwise it's not going to work with latest libvirt
+                # installed by osstest.
+                if (m/^libvirt-python===.*$/) {
+                    next;
+                }
+                print EO or die $!;
+            }
+        }
+    );
+
     # Package python-systemd does not exist in Debian installed by osstest
     target_editfile($ho, "$builddir/devstack/files/debs/general", sub {
         while (<EI>) {