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