++ openstack service list -f csv --quote none ++ grep ',nova,compute$' ++ sed -e s/,nova,compute//g + OS_SERVICE_ID=6904ab6c744b40978e821fae8e1a7c49 ++ openstack endpoint list -f csv --quote none ++ grep '^[a-z0-9]*,RegionOne,nova,compute,True,admin,' ++ awk -F , '{ print $1 }' + OS_ENDPOINT_ID= ++ wc -w ++ echo + '[' 0 -gt 1 ']' + [[ -n '' ]] + OS_ENDPOINT_UPDATE=True + [[ True == \T\r\u\e ]] ++ openstack endpoint create -f value -c id --region=RegionOne 6904ab6c744b40978e821fae8e1a7c49 admin http://nova-api.openstack.svc.cluster.local:8774/v2.1 + OS_ENDPOINT_ID=28a8e0806dab4f5396fc67076d04c882 + openstack endpoint show 28a8e0806dab4f5396fc67076d04c882 +--------------+-------------------------------------------------------+ | Field | Value | +--------------+-------------------------------------------------------+ | enabled | True | | id | 28a8e0806dab4f5396fc67076d04c882 | | interface | admin | | region | RegionOne | | region_id | RegionOne | | service_id | 6904ab6c744b40978e821fae8e1a7c49 | | service_name | nova | | service_type | compute | | url | http://nova-api.openstack.svc.cluster.local:8774/v2.1 | +--------------+-------------------------------------------------------+