++ grep ',magnum,container-infra$' ++ openstack service list -f csv --quote none ++ sed -e s/,magnum,container-infra//g + OS_SERVICE_ID=e9fd7f89df8d4b7aa0bd36d8490ec55f ++ grep '^[a-z0-9]*,RegionOne,magnum,container-infra,True,admin,' ++ openstack endpoint list -f csv --quote none ++ 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 e9fd7f89df8d4b7aa0bd36d8490ec55f admin http://magnum-api.openstack.svc.cluster.local:9511/v1 + OS_ENDPOINT_ID=fb3fb5e61a524f8e80882dca42924a60 + openstack endpoint show fb3fb5e61a524f8e80882dca42924a60 +--------------+-------------------------------------------------------+ | Field | Value | +--------------+-------------------------------------------------------+ | enabled | True | | id | fb3fb5e61a524f8e80882dca42924a60 | | interface | admin | | region | RegionOne | | region_id | RegionOne | | service_id | e9fd7f89df8d4b7aa0bd36d8490ec55f | | url | http://magnum-api.openstack.svc.cluster.local:9511/v1 | | service_name | magnum | | service_type | container-infra | +--------------+-------------------------------------------------------+