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