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