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