++ openstack service list -f csv --quote none ++ grep ',nova,compute$' ++ sed -e s/,nova,compute//g + OS_SERVICE_ID=bb8bc3e6533f401a8fccd1db82632fb7 ++ 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 bb8bc3e6533f401a8fccd1db82632fb7 public https://compute.199-204-45-169.nip.io/v2.1 + OS_ENDPOINT_ID=bbdb9824d8ec4c8f84b9a2a9112b1fd1 + openstack endpoint show bbdb9824d8ec4c8f84b9a2a9112b1fd1 +--------------+--------------------------------------------+ | Field | Value | +--------------+--------------------------------------------+ | enabled | True | | id | bbdb9824d8ec4c8f84b9a2a9112b1fd1 | | interface | public | | region | RegionOne | | region_id | RegionOne | | service_id | bb8bc3e6533f401a8fccd1db82632fb7 | | url | https://compute.199-204-45-169.nip.io/v2.1 | | service_name | nova | | service_type | compute | +--------------+--------------------------------------------+