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