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