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