++ openstack service list -f csv --quote none ++ grep ',heat,orchestration$' ++ sed -e s/,heat,orchestration//g + OS_SERVICE_ID=35f6052b3def4d859370284acda13a79 ++ openstack endpoint list -f csv --quote none ++ grep '^[a-z0-9]*,RegionOne,heat,orchestration,True,internal,' ++ 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 35f6052b3def4d859370284acda13a79 internal 'http://heat-api.openstack.svc.cluster.local:8004/v1/%(project_id)s' + OS_ENDPOINT_ID=360ac25ad8ba4fe2b350bc05b89de092 + openstack endpoint show 360ac25ad8ba4fe2b350bc05b89de092 +--------------+--------------------------------------------------------------------+ | Field | Value | +--------------+--------------------------------------------------------------------+ | enabled | True | | id | 360ac25ad8ba4fe2b350bc05b89de092 | | interface | internal | | region | RegionOne | | region_id | RegionOne | | service_id | 35f6052b3def4d859370284acda13a79 | | url | http://heat-api.openstack.svc.cluster.local:8004/v1/%(project_id)s | | service_name | heat | | service_type | orchestration | +--------------+--------------------------------------------------------------------+