++ openstack service list -f csv --quote none ++ sed -e s/,placement,placement//g ++ grep ',placement,placement$' + OS_SERVICE_ID=957f4c42b341484db87d660b93fac32c ++ openstack endpoint list -f csv --quote none ++ grep '^[a-z0-9]*,RegionOne,placement,placement,True,internal,' ++ 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 957f4c42b341484db87d660b93fac32c internal http://placement-api.openstack.svc.cluster.local:8778/ + OS_ENDPOINT_ID=8a87e6f99fd140d69a20046411e9c2eb + openstack endpoint show 8a87e6f99fd140d69a20046411e9c2eb +--------------+--------------------------------------------------------+ | Field | Value | +--------------+--------------------------------------------------------+ | enabled | True | | id | 8a87e6f99fd140d69a20046411e9c2eb | | interface | internal | | region | RegionOne | | region_id | RegionOne | | service_id | 957f4c42b341484db87d660b93fac32c | | url | http://placement-api.openstack.svc.cluster.local:8778/ | | service_name | placement | | service_type | placement | +--------------+--------------------------------------------------------+