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