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