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