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