++ openstack service list -f csv --quote none ++ grep ',nova,compute$' ++ sed -e s/,nova,compute//g + OS_SERVICE_ID=b31452242c144116917e13df7595d8ac ++ openstack endpoint list -f csv --quote none ++ grep '^[a-z0-9]*,RegionOne,nova,compute,True,public,' ++ awk -F , '{ print $1 }' + OS_ENDPOINT_ID= ++ echo ++ wc -w + '[' 0 -gt 1 ']' + [[ -n '' ]] + OS_ENDPOINT_UPDATE=True + [[ True == \T\r\u\e ]] ++ openstack endpoint create -f value -c id --region=RegionOne b31452242c144116917e13df7595d8ac public https://compute.162-253-55-175.nip.io/v2.1 + OS_ENDPOINT_ID=62b58de5a4d248beb890ad5497cb0296 + openstack endpoint show 62b58de5a4d248beb890ad5497cb0296 +--------------+--------------------------------------------+ | Field | Value | +--------------+--------------------------------------------+ | enabled | True | | id | 62b58de5a4d248beb890ad5497cb0296 | | interface | public | | region | RegionOne | | region_id | RegionOne | | service_id | b31452242c144116917e13df7595d8ac | | url | https://compute.162-253-55-175.nip.io/v2.1 | | service_name | nova | | service_type | compute | +--------------+--------------------------------------------+