++ openstack service list -f csv --quote none ++ grep ',placement,placement$' ++ sed -e s/,placement,placement//g + OS_SERVICE_ID=382e05d0f1c5416daa86d03141dae480 ++ 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 382e05d0f1c5416daa86d03141dae480 internal http://placement-api.openstack.svc.cluster.local:8778/ + OS_ENDPOINT_ID=2fe43b07f19f4228827c231202500e92 + openstack endpoint show 2fe43b07f19f4228827c231202500e92 +--------------+--------------------------------------------------------+ | Field | Value | +--------------+--------------------------------------------------------+ | enabled | True | | id | 2fe43b07f19f4228827c231202500e92 | | interface | internal | | region | RegionOne | | region_id | RegionOne | | service_id | 382e05d0f1c5416daa86d03141dae480 | | url | http://placement-api.openstack.svc.cluster.local:8778/ | | service_name | placement | | service_type | placement | +--------------+--------------------------------------------------------+