++ openstack service list -f csv --quote none ++ grep ',nova,compute$' ++ sed -e s/,nova,compute//g + OS_SERVICE_ID=626fbd4559c24e20ab6746c47796eba3 ++ openstack endpoint list -f csv --quote none ++ grep '^[a-z0-9]*,RegionOne,nova,compute,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 626fbd4559c24e20ab6746c47796eba3 public https://compute.199-204-45-140.nip.io/v2.1 + OS_ENDPOINT_ID=2597fd2787ae44a78b857ac1f4ebfb61 + openstack endpoint show 2597fd2787ae44a78b857ac1f4ebfb61 +--------------+--------------------------------------------+ | Field | Value | +--------------+--------------------------------------------+ | enabled | True | | id | 2597fd2787ae44a78b857ac1f4ebfb61 | | interface | public | | region | RegionOne | | region_id | RegionOne | | service_id | 626fbd4559c24e20ab6746c47796eba3 | | url | https://compute.199-204-45-140.nip.io/v2.1 | | service_name | nova | | service_type | compute | +--------------+--------------------------------------------+