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