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