++ grep ',manila,share$' ++ sed -e s/,manila,share//g ++ openstack service list -f csv --quote none + OS_SERVICE_ID=f3da7d48f1504804af0ba1984fe8e0cc ++ openstack endpoint list -f csv --quote none ++ grep '^[a-z0-9]*,RegionOne,manila,share,True,admin,' ++ awk -F , '{ print $1 }' + OS_ENDPOINT_ID= ++ wc -w ++ echo + '[' 0 -gt 1 ']' + [[ -n '' ]] + OS_ENDPOINT_UPDATE=True + [[ True == \T\r\u\e ]] ++ openstack endpoint create -f value -c id --region=RegionOne f3da7d48f1504804af0ba1984fe8e0cc admin http://manila-api.openstack.svc.cluster.local:8786/v1 + OS_ENDPOINT_ID=c3506acfeb304fd498c41353903f8740 + openstack endpoint show c3506acfeb304fd498c41353903f8740 +--------------+-------------------------------------------------------+ | Field | Value | +--------------+-------------------------------------------------------+ | enabled | True | | id | c3506acfeb304fd498c41353903f8740 | | interface | admin | | region | RegionOne | | region_id | RegionOne | | service_id | f3da7d48f1504804af0ba1984fe8e0cc | | service_name | manila | | service_type | share | | url | http://manila-api.openstack.svc.cluster.local:8786/v1 | +--------------+-------------------------------------------------------+