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