Comment 0 for bug 1654040

Revision history for this message
wenqing liang (wliang) wrote :

On a fab node different from cfgm, fab detach_vrouter fails with connection error to the control_data IPs of the cluster nodes. Management IPs should have been used.

2016-12-30 09:03:31:485950: [root@172.16.80.1] sudo: python /opt/contrail/utils/provision_vrouter.py --host_name b7s35 --host_ip 10.84.29.35 --api_server_ip 172.16.80.1 --oper del --admin_user admin --admin_password c0ntrail123 --admin_tenant_name admin
2016-12-30 09:03:31:486246: Disconnecting from 10.84.29.35... done.
2016-12-30 09:03:41:613465: Traceback (most recent call last):
2016-12-30 09:03:41:496815: File "/usr/local/lib/python2.7/dist-packages/fabric/main.py", line 743, in main
2016-12-30 09:03:41:496867: *args, **kwargs
2016-12-30 09:03:41:497085: File "/usr/local/lib/python2.7/dist-packages/fabric/tasks.py", line 415, in execute
2016-12-30 09:03:41:497122: results['<local-only>'] = task.run(*args, **new_kwargs)
2016-12-30 09:03:41:497274: File "/usr/local/lib/python2.7/dist-packages/fabric/tasks.py", line 171, in run
2016-12-30 09:03:41:497309: return self.wrapped(*args, **kwargs)
2016-12-30 09:03:41:497406: File "/root/store/fabric-utils/fabfile/tasks/misc.py", line 67, in detach_vrouter_node
2016-12-30 09:03:41:497439: (compute_hostname, host_string.split('@')[1], cfgm_ip, get_mt_opts()))
2016-12-30 09:03:41:497533: File "/usr/local/lib/python2.7/dist-packages/fabric/network.py", line 633, in host_prompting_wrapper
2016-12-30 09:03:41:497569: return func(*args, **kwargs)
2016-12-30 09:03:41:497770: File "/usr/local/lib/python2.7/dist-packages/fabric/operations.py", line 1095, in sudo
2016-12-30 09:03:41:497805: stderr=stderr, timeout=timeout, shell_escape=shell_escape,
2016-12-30 09:03:41:498107: File "/usr/local/lib/python2.7/dist-packages/fabric/operations.py", line 909, in _run_command
2016-12-30 09:03:41:498142: channel=default_channel(), command=wrapped_command, pty=pty,
2016-12-30 09:03:41:498398: File "/usr/local/lib/python2.7/dist-packages/fabric/state.py", line 387, in default_channel
2016-12-30 09:03:41:498431: chan = _open_session()
2016-12-30 09:03:41:498563: File "/usr/local/lib/python2.7/dist-packages/fabric/state.py", line 379, in _open_session
2016-12-30 09:03:41:498597: return connections[env.host_string].get_transport().open_session()
2016-12-30 09:03:41:498723: File "/usr/local/lib/python2.7/dist-packages/fabric/network.py", line 154, in __getitem__
2016-12-30 09:03:41:498756: self.connect(key)
2016-12-30 09:03:41:498849: File "/usr/local/lib/python2.7/dist-packages/fabric/network.py", line 146, in connect
2016-12-30 09:03:41:498882: user, host, port, cache=self, seek_gateway=seek_gateway)
2016-12-30 09:03:41:498973: File "/usr/local/lib/python2.7/dist-packages/fabric/network.py", line 559, in connect
2016-12-30 09:03:41:499006: raise NetworkError(msg, e)
2016-12-30 09:03:41:499181: fabric.exceptions.NetworkError: Timed out trying to connect to 172.16.80.1 (tried 1 time)
2016-12-30 09:03:41:499313: