From: David Blaisonneau Date: Fri, 1 Jul 2016 13:53:28 +0000 (+0200) Subject: [JOID] workaround for congress client with publicapi enabled X-Git-Tag: colorado.1.0~102 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F65%2F16265%2F1;p=joid.git [JOID] workaround for congress client with publicapi enabled Signed-off-by: David Blaisonneau --- diff --git a/ci/openstack.sh b/ci/openstack.sh index f518ee55..00b647e8 100755 --- a/ci/openstack.sh +++ b/ci/openstack.sh @@ -232,6 +232,16 @@ done # Create Congress datasources sudo apt-get install -y python-congressclient + +# Remove public endpoint and recreate it from internal +# Waiting congress client can be use with internal endpoints +if [ "$API_FQDN" != "''" ]; then + CONGRESS_PUB_ENDPOINT=$(openstack endpoint list --service policy --interface public -c ID -f value) + openstack endpoint delete $CONGRESS_PUB_ENDPOINT + CONGRESS_NEW_PUB_ENDPOINT=$(openstack endpoint list --service policy --interface internal -c URL -f value) + openstack endpoint create --region Canonical policy public $CONGRESS_NEW_PUB_ENDPOINT +fi + openstack congress datasource create nova "nova" \ --config username=$OS_USERNAME \ --config tenant_name=$OS_TENANT_NAME \