aboutsummaryrefslogtreecommitdiffstats
path: root/scenarios/os-odl-sfc
diff options
context:
space:
mode:
authorManuel Buil <mbuil@suse.com>2018-10-17 18:27:15 +0200
committerManuel Buil <mbuil@suse.com>2018-10-18 09:35:39 +0200
commit5a47cb1e792b6972330f55c60f96814e9975cf23 (patch)
tree1899bbef11e9a3ab913f32eeb2e27a359ec898bc /scenarios/os-odl-sfc
parentaf1f2079b35947e75221e5abd7e23551e7d925f9 (diff)
Add post-provision playbook to pass ml2_conf.ini
Functest requires ODL variables to run the ODL healthcheck which is mandatory for all ODL scenarios Jenkins CI jobs will fail because it requires this patch to be finished: https://gerrit.opnfv.org/gerrit/#/c/63175/ which requires this one to work (unfortunately, circular dependency) Change-Id: I960e3346d840c5e30a2b56284fe109b8f99046e3 Signed-off-by: Manuel Buil <mbuil@suse.com>
Diffstat (limited to 'scenarios/os-odl-sfc')
-rw-r--r--scenarios/os-odl-sfc/role/os-odl-sfc/tasks/post-deployment.yml17
1 files changed, 17 insertions, 0 deletions
diff --git a/scenarios/os-odl-sfc/role/os-odl-sfc/tasks/post-deployment.yml b/scenarios/os-odl-sfc/role/os-odl-sfc/tasks/post-deployment.yml
new file mode 100644
index 00000000..cc6c47ff
--- /dev/null
+++ b/scenarios/os-odl-sfc/role/os-odl-sfc/tasks/post-deployment.yml
@@ -0,0 +1,17 @@
+# SPDX-license-identifier: Apache-2.0
+##############################################################################
+# Copyright (c) 2018 SUSE Linux GmbH
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+##############################################################################
+
+- name: "Fetch the ip of the neutron server container"
+ shell: 'grep controller00_neutron_server_container -n1 /etc/openstack_deploy/openstack_inventory.json | grep ansible_host | cut -d":" -f2 | cut -d "\"" -f2'
+ register: ip
+ when: "'odl' in deploy_scenario"
+
+- name: Fetch the ml2_conf.ini to process ODL variables
+ command: "scp -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no {{ ip.stdout }}:/etc/neutron/plugins/ml2/ml2_conf.ini /tmp/ml2_conf.ini"
+ when: "'odl' in deploy_scenario"