weizhouapache commented on pull request #4503: URL: https://github.com/apache/cloudstack/pull/4503#issuecomment-781914536
@rhtyd @Pearl1594 @DaanHoogland it looks recent travis test failed due to this pr. see https://travis-ci.com/github/apache/cloudstack/jobs/484387022 https://travis-ci.com/github/apache/cloudstack/jobs/484391002 error logs below ``` Currently running test: smoke/test_network /home/travis/.local/lib/python2.7/site-packages/paramiko/transport.py:33: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in the next release. from cryptography.hazmat.backends import default_backend Port Forwarding Rule is deleted NATRule is deleted Router is deleted Deleting Public IP : c582d08b-5207-4e9f-8281-8edce8c76d71 Port Forwarding Rule is deleted Port Forwarding Rule is deleted ====Trying SSH Connection: Host:192.168.2.6 User:root Port:22 RetryCnt:2=== SshClient: Exception under createConnection: ['Traceback (most recent call last):\n', ' File "/home/travis/.local/lib/python2.7/site-packages/marvin/sshClient.py", line 122, in createConnection\n allow_agent=False)\n', ' File "/home/travis/.local/lib/python2.7/site-packages/paramiko/client.py", line 349, in connect\n retry_on_signal(lambda: sock.connect(addr))\n', ' File "/home/travis/.local/lib/python2.7/site-packages/paramiko/util.py", line 283, in retry_on_signal\n return function()\n', ' File "/home/travis/.local/lib/python2.7/site-packages/paramiko/client.py", line 349, in <lambda>\n retry_on_signal(lambda: sock.connect(addr))\n', ' File "/usr/lib/python2.7/socket.py", line 228, in meth\n return getattr(self._sock,name)(*args)\n', 'timeout: timed out\n'] Traceback (most recent call last): File "/home/travis/.local/lib/python2.7/site-packages/marvin/sshClient.py", line 122, in createConnection allow_agent=False) File "/home/travis/.local/lib/python2.7/site-packages/paramiko/client.py", line 349, in connect retry_on_signal(lambda: sock.connect(addr)) File "/home/travis/.local/lib/python2.7/site-packages/paramiko/util.py", line 283, in retry_on_signal return function() File "/home/travis/.local/lib/python2.7/site-packages/paramiko/client.py", line 349, in <lambda> retry_on_signal(lambda: sock.connect(addr)) File "/usr/lib/python2.7/socket.py", line 228, in meth return getattr(self._sock,name)(*args) timeout: timed out ====Trying SSH Connection: Host:192.168.2.6 User:root Port:22 RetryCnt:1=== SshClient: Exception under createConnection: ['Traceback (most recent call last):\n', ' File "/home/travis/.local/lib/python2.7/site-packages/marvin/sshClient.py", line 122, in createConnection\n allow_agent=False)\n', ' File "/home/travis/.local/lib/python2.7/site-packages/paramiko/client.py", line 349, in connect\n retry_on_signal(lambda: sock.connect(addr))\n', ' File "/home/travis/.local/lib/python2.7/site-packages/paramiko/util.py", line 283, in retry_on_signal\n return function()\n', ' File "/home/travis/.local/lib/python2.7/site-packages/paramiko/client.py", line 349, in <lambda>\n retry_on_signal(lambda: sock.connect(addr))\n', ' File "/usr/lib/python2.7/socket.py", line 228, in meth\n return getattr(self._sock,name)(*args)\n', 'timeout: timed out\n'] Traceback (most recent call last): File "/home/travis/.local/lib/python2.7/site-packages/marvin/sshClient.py", line 122, in createConnection allow_agent=False) File "/home/travis/.local/lib/python2.7/site-packages/paramiko/client.py", line 349, in connect retry_on_signal(lambda: sock.connect(addr)) File "/home/travis/.local/lib/python2.7/site-packages/paramiko/util.py", line 283, in retry_on_signal return function() File "/home/travis/.local/lib/python2.7/site-packages/paramiko/client.py", line 349, in <lambda> retry_on_signal(lambda: sock.connect(addr)) File "/usr/lib/python2.7/socket.py", line 228, in meth return getattr(self._sock,name)(*args) timeout: timed out ====Trying SSH Connection: Host:192.168.2.6 User:root Port:22 RetryCnt:0=== Executing command '{'endip': '172.16.179.21', 'acltype': 'domain', 'routerip': '172.16.179.15', 'name': 'MySharedNetwork - Test', 'networkofferingid': u'f160b481-ef28-4afd-8999-a94b180a74b3', 'physicalnetworkid': u'3a52e342-1cd1-4d5e-b2f4-d9a2efa253a6', 'startip': '172.16.179.2', 'vlan': 212, 'netmask': '255.255.255.0', 'displaytext': 'MySharedNetwork', 'scope': 'all', 'gateway': '172.16.179.1'}' ``` and ``` Printing marvin logs /tmp//MarvinLogs/test_network_AUK59S/failed_plus_exceptions.txt : 2021-02-18 23:08:13,330 - CRITICAL - EXCEPTION: test_01_deployVMInSharedNetwork: ['Traceback (most recent call last):\n', ' File "/usr/lib/python2.7/unittest/case.py", line 329, in run\n testMethod()\n', ' File "/home/travis/build/apache/cloudstack/test/integration/smoke/test_network.py", line 1988, in test_01_deployVMInSharedNetwork\n host = self.get_router_host(router)\n', ' File "/home/travis/build/apache/cloudstack/test/integration/smoke/test_network.py", line 1944, in get_router_host\n host.user, host.password = get_host_credentials(self.config, host.ipaddress)\n', ' File "/home/travis/.local/lib/python2.7/site-packages/marvin/lib/utils.py", line 231, in get_host_credentials\n raise KeyError("Please provide the marvin configuration file with credentials to your hosts")\n', "KeyError: 'Please provide the marvin configuration file with credentials to your hosts'\n"] 2021-02-18 23:08:18,539 - CRITICAL - EXCEPTION: test_02_verifyRouterIpAfterNetworkRestart: ['Traceback (most recent call last):\n', ' File "/usr/lib/python2.7/unittest/case.py", line 329, in run\n testMethod()\n', ' File "/home/travis/build/apache/cloudstack/test/integration/smoke/test_network.py", line 2016, in test_02_verifyRouterIpAfterNetworkRestart\n host = self.get_router_host(router)\n', ' File "/home/travis/build/apache/cloudstack/test/integration/smoke/test_network.py", line 1944, in get_router_host\n host.user, host.password = get_host_credentials(self.config, host.ipaddress)\n', ' File "/home/travis/.local/lib/python2.7/site-packages/marvin/lib/utils.py", line 231, in get_host_credentials\n raise KeyError("Please provide the marvin configuration file with credentials to your hosts")\n', "KeyError: 'Please provide the marvin configuration file with credentials to your hosts'\n"] 2021-02-18 23:08:19,602 - CRITICAL - FAILED: test_03_destroySharedNetwork: ['Traceback (most recent call last):\n', ' File "/usr/lib/python2.7/unittest/case.py", line 329, in run\n testMethod()\n', ' File "/home/travis/build/apache/cloudstack/test/integration/smoke/test_network.py", line 2025, in test_03_destroySharedNetwork\n self.fail("Failed to destroy the shared network")\n', ' File "/usr/lib/python2.7/unittest/case.py", line 410, in fail\n raise self.failureException(msg)\n', 'AssertionError: Failed to destroy the shared network\n'] 2021-02-18 23:08:19,638 - CRITICAL - EXCEPTION: test_03_destroySharedNetwork: ['Traceback (most recent call last):\n', ' File "/home/travis/.local/lib/python2.7/site-packages/nose/suite.py", line 228, in run\n self.tearDown()\n', ' File "/home/travis/.local/lib/python2.7/site-packages/nose/suite.py", line 351, in tearDown\n self.teardownContext(ancestor)\n', ' File "/home/travis/.local/lib/python2.7/site-packages/nose/suite.py", line 367, in teardownContext\n try_run(context, names)\n', ' File "/home/travis/.local/lib/python2.7/site-packages/nose/util.py", line 471, in try_run\n return func()\n', ' File "/home/travis/build/apache/cloudstack/test/integration/smoke/test_network.py", line 1902, in tearDownClass\n raise Exception("Warning: Exception during cleanup : %s" % e)\n', "Exception: Warning: Exception during cleanup : Execute cmd: deletenetworkoffering failed, due to: errorCode: 431, errorText:Can't delete network offering 22 as its used by 1 networks. To m ake the network offering unavaiable, disable it\n"] ``` ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
