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