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