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