Add SDN controller's IP in openrc file for functest 35/53735/2
authorYifei Xue <xueyifei@huawei.com>
Wed, 14 Mar 2018 01:16:41 +0000 (09:16 +0800)
committerYifei Xue <xueyifei@huawei.com>
Wed, 14 Mar 2018 10:38:50 +0000 (18:38 +0800)
JIRA: COMPASS-590

From the time being, Functest ODL testcase calculates ODL ip thanks to Neutron IP.
It should be calculated on Installer side (releng jobs) and set via SDN_CONTROLLER_IP in Functest env instead.
https://git.opnfv.org/functest/tree/functest/opnfv_tests/sdn/odl/odl.py#n185
It ensures that Functest can rely on SDN_CONTROLLER_IP in all cases (OpenStack end users included)

Change-Id: I01c0af952dbb21592aa973daaea3845346dc833f
Signed-off-by: Yifei Xue <xueyifei@huawei.com>
deploy/adapters/ansible/roles/process-openrc/tasks/main.yml

index aed68b8..d8de1b2 100644 (file)
@@ -24,3 +24,9 @@
     dest: /opt/openrc
     regexp: "internalURL"
     replace: "publicURL"
+
+- name: add the IP of SDN controller
+  lineinfile:
+    dest: /opt/openrc
+    state: present
+    line: "export SDN_CONTROLLER_IP={{ public_vip['ip'] }}"