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