From 2c78bf64a8e9f1f51f3b56ab0d73d96e48dce423 Mon Sep 17 00:00:00 2001 From: Sumit Jamgade Date: Fri, 17 May 2019 16:55:15 +0200 Subject: [PATCH] designate: create a test port and nslookup it Added a basic test for designate recordset being created when a floating ip is assigned to a port on a fixed network. ping will not work because the port is still down as it is not assigned to a vm. This helps test designate without nova/glance/cinder/milkyway/... and other astronomical services. Also fixed a type in pools file name. --- scripts/qa_crowbarsetup.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/scripts/qa_crowbarsetup.sh b/scripts/qa_crowbarsetup.sh index a3221bff6d..3b3ed53079 100644 --- a/scripts/qa_crowbarsetup.sh +++ b/scripts/qa_crowbarsetup.sh @@ -4116,8 +4116,16 @@ function oncontroller_testsetup fi # this file is created by the designate barclamp - designate_pools="/etc/desigate/pools.crowbar.yaml" - [[ -e $designate_pools ]] && designate-manage pool update --file $designate_pools + designate_pools="/etc/designate/pools.crowbar.yaml" + if [[ -e $designate_pools ]]; then + designate-manage pool update --file $designate_pools + # default values from the node.neutron.dns_domain + openstack tld create --name local + openstack zone create --email admin@example.org openstack.local. + theport=$(openstack port create --network fixed --dns-name iamgroot thanos -f value -c id) + openstack floating ip create floating --port $theport + wait_for 30 5 "nslookup iamgroot.openstack.local >> /dev/null" "thanos port is nslookup-able" + fi # Run Tempest Smoketests if configured to do so tempestret=0