++ grep ',manila,share$' ++ sed -e s/,manila,share//g ++ openstack service list -f csv --quote none + OS_SERVICE_ID=c168d3fb977f4bccaf49bc54e2bdef35 ++ openstack endpoint list -f csv --quote none ++ grep '^[a-z0-9]*,RegionOne,manila,share,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 c168d3fb977f4bccaf49bc54e2bdef35 public http://manila.openstack.svc.cluster.local/v1 + OS_ENDPOINT_ID=e77765125ec14f8dad4490b345f0414b + openstack endpoint show e77765125ec14f8dad4490b345f0414b +--------------+----------------------------------------------+ | Field | Value | +--------------+----------------------------------------------+ | enabled | True | | id | e77765125ec14f8dad4490b345f0414b | | interface | public | | region | RegionOne | | region_id | RegionOne | | service_id | c168d3fb977f4bccaf49bc54e2bdef35 | | url | http://manila.openstack.svc.cluster.local/v1 | | service_name | manila | | service_type | share | +--------------+----------------------------------------------+