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