++ grep ',cinderv3,volumev3$' ++ openstack service list -f csv --quote none ++ sed -e s/,cinderv3,volumev3//g + OS_SERVICE_ID=28c0a766233c495784f442308aa165a0 ++ openstack endpoint list -f csv --quote none ++ grep '^[a-z0-9]*,RegionOne,cinderv3,volumev3,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 28c0a766233c495784f442308aa165a0 public 'https://volume.162-253-55-165.nip.io/v3/%(tenant_id)s' + OS_ENDPOINT_ID=5f6af758d49f43e9b61fc4c07432165d + openstack endpoint show 5f6af758d49f43e9b61fc4c07432165d +--------------+-------------------------------------------------------+ | Field | Value | +--------------+-------------------------------------------------------+ | enabled | True | | id | 5f6af758d49f43e9b61fc4c07432165d | | interface | public | | region | RegionOne | | region_id | RegionOne | | service_id | 28c0a766233c495784f442308aa165a0 | | service_name | cinderv3 | | service_type | volumev3 | | url | https://volume.162-253-55-165.nip.io/v3/%(tenant_id)s | +--------------+-------------------------------------------------------+