++ openstack service list -f csv --quote none ++ grep ',nova,compute$' ++ sed -e s/,nova,compute//g + OS_SERVICE_ID=9bbfd8d98bd04e23a28e63a0f3a6b43b ++ openstack endpoint list -f csv --quote none ++ grep '^[a-z0-9]*,RegionOne,nova,compute,True,admin,' ++ 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 9bbfd8d98bd04e23a28e63a0f3a6b43b admin http://nova-api.openstack.svc.cluster.local:8774/v2.1 + OS_ENDPOINT_ID=5f680ba845b647cba38ab7d3bbf20a01 + openstack endpoint show 5f680ba845b647cba38ab7d3bbf20a01 +--------------+-------------------------------------------------------+ | Field | Value | +--------------+-------------------------------------------------------+ | enabled | True | | id | 5f680ba845b647cba38ab7d3bbf20a01 | | interface | admin | | region | RegionOne | | region_id | RegionOne | | service_id | 9bbfd8d98bd04e23a28e63a0f3a6b43b | | url | http://nova-api.openstack.svc.cluster.local:8774/v2.1 | | service_name | nova | | service_type | compute | +--------------+-------------------------------------------------------+