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