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