xci: OSA: Ensure proper constrains are applied to pip installations 05/53305/15
authorMarkos Chandras <mchandras@suse.de>
Thu, 8 Mar 2018 12:37:07 +0000 (12:37 +0000)
committerMarkos Chandras <mchandras@suse.de>
Sat, 10 Mar 2018 09:51:01 +0000 (09:51 +0000)
We need to make sure that the pip packages that we install are
compatible with the OSA components.

Change-Id: I87e80dc9b8fb862d9f9039d835b0908f752de3ca
Signed-off-by: Markos Chandras <mchandras@suse.de>
xci/installer/osa/playbooks/configure-opnfvhost.yml
xci/playbooks/prepare-functest.yml
xci/playbooks/roles/prepare-functest/tasks/main.yml

index 202cf36..2996236 100644 (file)
@@ -11,6 +11,7 @@
   remote_user: root
   vars_files:
     - "{{ XCI_PATH }}/xci/var/opnfv.yml"
+    - "{{ XCI_PATH }}/xci/installer/osa/files/openstack_services.yml"
 
   pre_tasks:
     - name: Load distribution variables
       pip:
         name: "{{ item }}"
         state: present
+        extra_args: '-c https://raw.githubusercontent.com/openstack/requirements/{{ requirements_git_install_branch }}/upper-constraints.txt'
       with_items:
         - pyyaml
         - python-neutronclient
index 6d5b01c..a4cb664 100644 (file)
@@ -16,5 +16,8 @@
 - name: Prepare the environment for functest
   hosts: opnfv
   user: root
+  vars_files:
+    - ../var/opnfv.yml
+    - ../installer/osa/files/openstack_services.yml
   roles:
     - role: "prepare-functest"
index e781c4d..2797ce4 100644 (file)
@@ -24,6 +24,7 @@
   pip:
    name: "{{ functest_required_pip }}"
    state: present
+   extra_args: '-c https://raw.githubusercontent.com/openstack/requirements/{{ requirements_git_install_branch }}/upper-constraints.txt'
 
 - name: check if the gateway was already set
   shell: "ip a | grep {{ gateway_ip }}"