Skip to content

Commit

Permalink
Merge "getting nova container list of containers in report_gen , In h…
Browse files Browse the repository at this point in the history
…elm provisiong , replica set for nova is configured to 2 so one of the openstack node is not having nova container . Closes-Bug: 1767211" into R5.0
  • Loading branch information
Zuul v3 CI authored and opencontrail-ci-admin committed May 2, 2018
2 parents 38d46e0 + 9e160ec commit 2228831
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tools/report_gen.py
Expand Up @@ -176,10 +176,14 @@ def get_build_id(self):
if not build_id:
build_id = local(cmd, capture=True)
build_sku = self.get_os_env("SKU")
container = None
if not build_sku and self.orchestrator == 'openstack':
container = self.host_data[self.openstack_ips[0]].get(
for openstack_ip in self.openstack_ips:
container = self.host_data[openstack_ip].get(
'containers', {}).get('nova')
build_sku=get_build_sku(self.openstack_ips[0],self.host_data[self.openstack_ip]['password'],
if container:
break
build_sku=get_build_sku(openstack_ip,self.host_data[openstack_ip]['password'],
container=container)
if (build_id.count('.') > 3):
build_id=re.match(r'([0-9\.-]*)\.',build_id).group(1)
Expand Down

0 comments on commit 2228831

Please sign in to comment.