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