++ grep ',placement,placement$' ++ sed -e s/,placement,placement//g ++ openstack service list -f csv --quote none + OS_SERVICE_ID=d494ce50a99548d3b263f3c068271b3d ++ openstack endpoint list -f csv --quote none ++ awk -F , '{ print $1 }' ++ grep '^[a-z0-9]*,RegionOne,placement,placement,True,admin,' + 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 d494ce50a99548d3b263f3c068271b3d admin http://placement-api.openstack.svc.cluster.local:8778/ + OS_ENDPOINT_ID=88da5c2523aa48d2a1429bf2859d1161 + openstack endpoint show 88da5c2523aa48d2a1429bf2859d1161 +--------------+--------------------------------------------------------+ | Field | Value | +--------------+--------------------------------------------------------+ | enabled | True | | id | 88da5c2523aa48d2a1429bf2859d1161 | | interface | admin | | region | RegionOne | | region_id | RegionOne | | service_id | d494ce50a99548d3b263f3c068271b3d | | url | http://placement-api.openstack.svc.cluster.local:8778/ | | service_name | placement | | service_type | placement | +--------------+--------------------------------------------------------+