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