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