diff options
author | David Blaisonneau <david.blaisonneau@orange.com> | 2016-07-01 15:53:28 +0200 |
---|---|---|
committer | David Blaisonneau <david.blaisonneau@orange.com> | 2016-07-01 16:00:20 +0200 |
commit | 737cb665e95ec8ddd927cab528bd1acd83674e38 (patch) | |
tree | fc1a9a4282067b9f4256b81106705d2eabbcc63b | |
parent | 331fa0a67b27023c6c00358a418a7f7b43cc6da3 (diff) |
[JOID] workaround for congress client with publicapi enabled
Signed-off-by: David Blaisonneau <david.blaisonneau@orange.com>
-rwxr-xr-x | ci/openstack.sh | 10 |
1 files changed, 10 insertions, 0 deletions
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 \ |