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