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