++ openstack service list -f csv --quote none ++ sed -e s/,magnum,container-infra//g ++ grep ',magnum,container-infra$' + OS_SERVICE_ID=3940f682ae5942d3a72a5fa3f45145fb ++ openstack endpoint list -f csv --quote none ++ grep '^[a-z0-9]*,RegionOne,magnum,container-infra,True,public,' ++ 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 3940f682ae5942d3a72a5fa3f45145fb public https://container-infra.199-19-213-78.nip.io/v1 + OS_ENDPOINT_ID=7f17bd20ed6548009ece0a15a02c97a8 + openstack endpoint show 7f17bd20ed6548009ece0a15a02c97a8 +--------------+-------------------------------------------------+ | Field | Value | +--------------+-------------------------------------------------+ | enabled | True | | id | 7f17bd20ed6548009ece0a15a02c97a8 | | interface | public | | region | RegionOne | | region_id | RegionOne | | service_id | 3940f682ae5942d3a72a5fa3f45145fb | | url | https://container-infra.199-19-213-78.nip.io/v1 | | service_name | magnum | | service_type | container-infra | +--------------+-------------------------------------------------+