Skip to content

Commit

Permalink
Merge "Enhanced the test code to pick the correct k8s_master IP out o…
Browse files Browse the repository at this point in the history
…f the list of k8s_master role mentioned in contrail_test_inputs.yaml" into R5.0
  • Loading branch information
Zuul v3 CI authored and opencontrail-ci-admin committed May 4, 2018
2 parents 43bef9c + 971bf4a commit 0a66736
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
7 changes: 6 additions & 1 deletion common/contrail_test_init.py
Expand Up @@ -710,7 +710,12 @@ def parse_topo(self):
self.kube_manager_ips.append(host_data['host_ip'])
self.kube_manager_control_ips.append(service_ip)
if 'k8s_master' in roles:
self.k8s_master_ip = host_data['host_ip'] #K8s Currently only supports 1 master
with hide('everything'):
with settings(
host_string='%s@%s' % (username, host_data['host_ip']),
password=password, warn_only=True, abort_on_prompts=False):
if exists('/etc/kubernetes/admin.conf'):
self.k8s_master_ip = host_data['host_ip'] #K8s Currently only supports 1 master
if 'k8s_node' in roles:
self.k8s_slave_ips.append(host_data['host_ip'])
host_data['data-ip'] = host_data['host_data_ip'] = host_data_ip
Expand Down
3 changes: 2 additions & 1 deletion serial_scripts/k8s_scripts/test_ingress.py
Expand Up @@ -256,7 +256,8 @@ def test_ingress_fanout_with_vrouter_agent_restart(self):
for compute_ip in self.inputs.compute_ips:
self.inputs.restart_service('contrail-vrouter-agent',[compute_ip],
container='agent')
cluster_status, error_nodes = ContrailStatusChecker(self.inputs).wait_till_contrail_cluster_stable()
cluster_status, error_nodes = ContrailStatusChecker(self.inputs).wait_till_contrail_cluster_stable(
nodes=self.inputs.compute_ips, roles="vrouter")
assert cluster_status, 'Cluster is not stable after restart'
assert self.validate_nginx_lb([pod1, pod2], ingress.cluster_ip,
test_pod=pod5, path=path1, host=host1)
Expand Down

0 comments on commit 0a66736

Please sign in to comment.