++ openstack service list -f csv --quote none ++ grep ',magnum,container-infra$' ++ sed -e s/,magnum,container-infra//g + OS_SERVICE_ID=3a39afcd70c8458383bb0934557856fd ++ openstack endpoint list -f csv --quote none ++ grep '^[a-z0-9]*,RegionOne,magnum,container-infra,True,admin,' ++ awk -F , '{ print $1 }' + OS_ENDPOINT_ID= ++ wc -w ++ echo + '[' 0 -gt 1 ']' + [[ -n '' ]] + OS_ENDPOINT_UPDATE=True + [[ True == \T\r\u\e ]] ++ openstack endpoint create -f value -c id --region=RegionOne 3a39afcd70c8458383bb0934557856fd admin http://magnum-api.openstack.svc.cluster.local:9511/v1 + OS_ENDPOINT_ID=1c598f9e0cf44ab79b338b944f789eea + openstack endpoint show 1c598f9e0cf44ab79b338b944f789eea +--------------+-------------------------------------------------------+ | Field | Value | +--------------+-------------------------------------------------------+ | enabled | True | | id | 1c598f9e0cf44ab79b338b944f789eea | | interface | admin | | region | RegionOne | | region_id | RegionOne | | service_id | 3a39afcd70c8458383bb0934557856fd | | service_name | magnum | | service_type | container-infra | | url | http://magnum-api.openstack.svc.cluster.local:9511/v1 | +--------------+-------------------------------------------------------+