Minimize CSIT dependencis in mininet-ovs-2.8 image 54/90454/2
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 15 Jun 2020 15:25:57 +0000 (17:25 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Mon, 13 Jul 2020 08:33:08 +0000 (10:33 +0200)
We are using mininet-ovs-2.8 as our tools image, which means we
are running CSIT test scripts on it. Those scripts require
the Python-2 requests library.

We used to install it before the Shell->Ansible transition via
git-review, which was part of baseline.sh. As we no longer install
it in Ansible world, neither do we install python-requests, which
is what CSIT needs.

This patch minimizes the install footprint introduced in
89cfbecea7439fae66fa10146879a9b58e71046e.

JIRA: INTTEST-100
Change-Id: I816840f83fa39592dc3361bced835e183688231e
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
packer/provision/mininet-ovs-2.8.yaml

index 06dc8c011a323c4a7babdbfd809357dfc45962b2..07557adafffa807ba5a37bfd6f7583518c3bac5b 100644 (file)
       apt: name=vlan state=present
       become: true
 
+    # This image is being used as a CSIT tools image and some of our
+    # CSIT test scripts are relying on python-2 and its request library.
+    # This makes sure we install them onto the image even though they
+    # are not required for the OVS rule of it.
     - name: Install CSIT dependencies
       apt:
         name:
-          - git-review
-          - python-chardet
-          - python-ndg-httpsclient
           - python-requests
-          - python-urllib3
         state: present
       become: true