Chandan Purushothama created CLOUDSTACK-7535: ------------------------------------------------
Summary: [Automation][HyperV] SSH Client tries to connect to the private Guest IP Address instead of Public IP Address Key: CLOUDSTACK-7535 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-7535 Project: CloudStack Issue Type: Test Security Level: Public (Anyone can view this level - this is the default.) Components: Automation, Test Affects Versions: 4.5.0 Reporter: Chandan Purushothama Assignee: Sanjeev N Priority: Critical Fix For: 4.5.0 Following two BVT Testcases in two different test suites fail with the same root cause: 1. test_04_change_offering_small in test_service_offerings.py 2. test_10_attachAndDetach_iso {noformat} 2014-09-09 05:33:30,778 - DEBUG - ========Sending GET Cmd : listVirtualMachines======= 2014-09-09 05:33:30,807 - DEBUG - Response : [{domain : u'ROOT', domainid : u'9df0ddd4-37d3-11e4-a979-ba3c937e668f', haenable : False, templatename : u'CentOS 6.4(64-bit) GUI (Hyperv)', securitygroup : [], zoneid : u'd41a93cd-7b6c-432b-9ad4-eb89d8b6e95c', cpunumber : 1, ostypeid : 182, passwordenabled : False, instancename : u'i-23-43-VM', id : u'21ca01e4-e737-4a06-a560-5c558387acb0', networkkbswrite : 1, hostname : u'10.220.163.50', displayvm : True, state : u'Running', guestosid : u'9e0ec9f2-37d3-11e4-a979-ba3c937e668f', cpuused : u'9%', memory : 256, serviceofferingid : u'a178853a-56fb-484a-992c-30af0d3ef72b', zonename : u'XenRT-Zone-0', isdynamicallyscalable : False, displayname : u'testserver', tags : [], nic : [{networkid : u'e46b21a7-e4a3-4a10-ae1b-bce7a9d1d90e', macaddress : u'02:00:34:f7:00:01', isolationuri : u'vlan://3027', type : u'Isolated', broadcasturi : u'vlan://3027', traffictype : u'Guest', netmask : u'255.255.255.0', ipaddress : u'192.168.200.120', id : u'970f3e6a-c36c-485d-a891-c89cc743f969', networkname : u'test-a-TestServiceOfferings-test_01_create_service_offering-MSR9BE-network', gateway : u'192.168.200.1', isdefault : True}], cpuspeed : 100, templateid : u'9df665f6-37d3-11e4-a979-ba3c937e668f', affinitygroup : [], account : u'test-a-TestServiceOfferings-test_01_create_service_offering-MSR9BE', hostid : u'e0e128e6-3efc-4080-8d50-c710d33854b8', name : u'VM-21ca01e4-e737-4a06-a560-5c558387acb0', networkkbsread : 1, created : u'2014-09-09T05:27:17+0000', hypervisor : u'Hyperv', rootdevicetype : u'ROOT', rootdeviceid : 0, serviceofferingname : u'Small Instance', templatedisplaytext : u'CentOS 6.4 (64-bit) GUI (Hyperv)'}] 2014-09-09 05:33:30,807 - DEBUG - VM state: Running 2014-09-09 05:44:34,402 - CRITICAL - FAILED: test_04_change_offering_small: ['Traceback (most recent call last):\n', ' File "/usr/lib/python2.7/unittest/case.py", line 332, in run\n testMethod()\n', ' File "/root/cloudstack/test/integration/smoke/test_service_offerings.py", line 326, in test_04_change_offering_small\n (self.medium_virtual_machine.ipaddress, e)\n', ' File "/usr/lib/python2.7/unittest/case.py", line 413, in fail\n raise self.failureException(msg)\n', 'AssertionError: SSH Access failed for *192.168.200.120: SSH connection has Failed.* Waited 600s. Error is SSH Connection Failed\n'] 2014-09-09 05:44:34,412 - DEBUG - TestCaseName: test_04_change_offering_small; Time Taken: 678 Seconds; StartTime: Tue Sep 9 05:33:15 2014; EndTime: Tue Sep 9 05:44:34 2014; Result: FAILED {noformat} {noformat} 014-09-09 05:37:23,158 - CRITICAL - FAILED: test_10_attachAndDetach_iso: ['Traceback (most recent call last):\n', ' File "/usr/lib/python2.7/unittest/case.py", line 332, in run\n testMethod()\n', ' File "/root/cloudstack/test/integration/smoke/test_vm_life_cycle.py", line 692, in test_10_attachAndDetach_iso\n (self.virtual_machine.ipaddress, e))\n', ' File "/usr/lib/python2.7/unittest/case.py", line 413, in fail\n raise self.failureException(msg)\n', 'AssertionError: SSH failed for virtual machine: 192.168.200.149 - SSH connection has Failed. Waited 600s. Error is SSH Connection Failed\n'] 2014-09-09 05:37:23,166 - DEBUG - TestCaseName: test_10_attachAndDetach_iso; Time Taken: 728 Seconds; StartTime: Tue Sep 9 05:25:14 2014; EndTime: Tue Sep 9 05:37:23 2014; Result: FAILED {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)