[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-3939?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13725003#comment-13725003
 ] 

Girish Shilamkar commented on CLOUDSTACK-3939:
----------------------------------------------

Yes, Sheng the router is in running state. This is test_reboot_router in 
smoke/test_network.py

[root@autoclient1 girish]# cat client.log
2013-07-30 21:11:09,885 - DEBUG - test_reboot_router 
(test_net.TestRebootRouter) - Public IP: 10.1.1.186
2013-07-30 21:11:09,885 - DEBUG - test_reboot_router 
(test_net.TestRebootRouter) - Public IP: 10.223.243.45
2013-07-30 21:11:10,085 - DEBUG - test_reboot_router 
(test_net.TestRebootRouter) - Rebooting the router (ID: 
983638e5-6063-453b-b9df-cdeb86493347)
2013-07-30 21:13:55,774 - DEBUG - test_reboot_router 
(test_net.TestRebootRouter) - Routers [{domain : u'ROOT', domainid : 
u'e4cb2e16-f969-11e2-9e6f-52b2d980df8a', guestmacaddress : 
u'02:00:29:d8:00:02', linklocalip : u'10.223.250.174', zoneid : 
u'1b36f575-13e5-4003-a224-f463370f5577', linklocalmacaddress : 
u'02:00:37:5f:00:be', linklocalnetworkid : 
u'adf63a75-e20c-4287-a4ee-0e5fe63b55bf', linklocalnetmask : u'255.255.255.192', 
publicmacaddress : u'06:72:56:00:00:5c', gateway : u'10.223.243.1', 
networkdomain : u'ROOT', guestnetworkid : 
u'e3e61e28-ed9e-4824-abca-437f2e7d020b', hostname : u'10.223.250.131', id : 
u'983638e5-6063-453b-b9df-cdeb86493347', publicip : u'10.223.243.35', state : 
u'Running', role : u'VIRTUAL_ROUTER', serviceofferingid : 
u'674566f1-a146-462a-aa3a-f01c4cd81752', zonename : u'Adv-VMware-Zone1', podid 
: u'a807a402-146e-4fd4-bc34-198ce5b37e44', nic : [{networkid : 
u'e3e61e28-ed9e-4824-abca-437f2e7d020b', macaddress : u'02:00:29:d8:00:02', 
isolationuri : u'vlan://3193', type : u'Isolated', id : 
u'f3533a64-6bc5-4f29-a60a-ff400c55e3ec', traffictype : u'Guest', netmask : 
u'255.255.255.0', ipaddress : u'10.1.1.1', networkname : 
u'test-HI338C-network', broadcasturi : u'vlan://3193', isdefault : False}, 
{networkid : u'adf63a75-e20c-4287-a4ee-0e5fe63b55bf', macaddress : 
u'02:00:37:5f:00:be', id : u'00f6ac11-da26-4935-ad9a-8024445d525a', traffictype 
: u'Control', netmask : u'255.255.255.192', ipaddress : u'10.223.250.174', 
gateway : u'10.223.250.129', isdefault : False}, {networkid : 
u'd0da5b5c-27e3-4a8b-ae20-f86663e164ce', macaddress : u'06:72:56:00:00:5c', 
isolationuri : u'vlan://510', broadcasturi : u'vlan://510', traffictype : 
u'Public', netmask : u'255.255.255.192', id : 
u'd582863d-31c9-4e5c-af57-5f943f647cb0', ipaddress : u'10.223.243.35', gateway 
: u'10.223.243.1', isdefault : True}], redundantstate : u'UNKNOWN', templateid 
: u'e4d1b240-f969-11e2-9e6f-52b2d980df8a', name : u'r-418-TestVM', 
publicnetmask : u'255.255.255.192', account : u'test-HI338C', hostid : 
u'1d8f44c1-3c69-4638-988e-b891a68ed95b', isredundantrouter : False, created : 
u'2013-07-31T00:42:53-0700', dns1 : u'8.8.8.8', publicnetworkid : 
u'd0da5b5c-27e3-4a8b-ae20-f86663e164ce', guestnetmask : u'255.255.255.0', 
guestipaddress : u'10.1.1.1', serviceofferingname : u'System Offering For 
Software Router'}]
2013-07-30 21:13:55,774 - DEBUG - test_reboot_router 
(test_net.TestRebootRouter) - VM state: Running
2013-07-30 21:13:55,775 - DEBUG - test_reboot_router 
(test_net.TestRebootRouter) - Router state: Running
2013-07-30 21:13:55,775 - DEBUG - test_reboot_router 
(test_net.TestRebootRouter) - SSH into VM (ID : 
c16bbdad-c3a8-455b-b62c-2275a5fe194f ) after reboot


[root@autoclient1 girish]# sh run.sh -t ./
/root/girish/Marvin-0.1.0/:/Repo_Test/incubator-cloudstack/test/integration:/Repo_30X/Repo_CloudStack/test/integration/lib:/Repo/cloudstack-oss/tools/testClient/cloudstackAPI:/Repo/cloudstack-oss/tools/testClient:/hudson/scripts/build:/hudson/scripts/build/jenkinsapi:/hudson/scripts/build/beautifulsoup4
[root@autoclient1 girish]# cat result.log
test_delete_account (test_net.TestDeleteAccount)
Test for delete account ... skipped 'Skip'
test_01_port_fwd_on_src_nat (test_net.TestPortForwarding)
Test for port forwarding on source NAT ... skipped 'Skip'
test_02_port_fwd_on_non_src_nat (test_net.TestPortForwarding)
Test for port forwarding on non source NAT ... skipped 'Skip'
test_public_ip_admin_account (test_net.TestPublicIP)
Test for Associate/Disassociate public IP address for admin account ... skipped 
'Skip'
test_public_ip_user_account (test_net.TestPublicIP)
Test for Associate/Disassociate public IP address for user account ... skipped 
'Skip'
test_reboot_router (test_net.TestRebootRouter)
Test for reboot router ... FAIL
test_releaseIP (test_net.TestReleaseIP)
Test for release public IP address ... skipped 'Skip'

======================================================================
FAIL: test_reboot_router (test_net.TestRebootRouter)
Test for reboot router
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/root/girish/test_net.py", line 760, in test_reboot_router
    (self.public_ip.ipaddress.ipaddress, e))
AssertionError: SSH Access failed for 10.223.243.45: [Errno 113] No route to 
host

----------------------------------------------------------------------
Ran 7 tests in 424.119s

FAILED (failures=1, skipped=6)

                
> Rebooting router results in ssh to vm failing with "No route to host" error.
> ----------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-3939
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-3939
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the 
> default.) 
>          Components: API, Automation
>    Affects Versions: 4.2.0
>         Environment: Vmware
>            Reporter: Girish Shilamkar
>            Priority: Blocker
>         Attachments: logs.tgz
>
>
> Steps to reproduce:
> 1. Create a vm
> 2. Associate a public IP with this vm
> 3. Open firewall for this IP
> 4. Create a PF rule for this vm with this public IP
> 5. Reboot the router for the account
> 6. Try to ssh with public IP, results in error "No router to host"
> If above steps are repeated without rebooting the router, ssh succeeds. 
> Probably the PF rule does not work after rebooting the router.
> Only tested with VMware, not sure about other hypervisors.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to