You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "Sanjeev N (JIRA)" <ji...@apache.org> on 2013/05/22 13:45:20 UTC

[jira] [Created] (CLOUDSTACK-2621) [Multiple_IP_Ranges] Failed to delete guest IP range from a new subnet/CIDR

Sanjeev N created CLOUDSTACK-2621:
-------------------------------------

             Summary: [Multiple_IP_Ranges] Failed to delete guest IP range from a new subnet/CIDR
                 Key: CLOUDSTACK-2621
                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-2621
             Project: CloudStack
          Issue Type: Bug
      Security Level: Public (Anyone can view this level - this is the default.)
          Components: Management Server
    Affects Versions: 4.2.0
         Environment: Latest build from master:CloudStack-non-OSS-MASTER-394-rhel6.3.tar.gz
            Reporter: Sanjeev N
            Priority: Critical
             Fix For: 4.2.0


 Failed to delete guest IP range from a new subnet/CIDR

Steps to Reproduce:
=================
1.Bring up CS in basic zone with xen61 server
2.Exhaust all guest IP addresses from the primary guest IP range
3.Add new guest IP range in new CIDR different from  primary CIDR
4.Deploy guest vm
5.Set expunge interval to a small value say 60 secs.
6.Destroy the guest vm deployed at step4
7.Try to delete the guest ip range added at step3

Expected Result:
==============
IP alis created on the VR should be deleted and IP Range deletion should be successful

Actual Result:
============
IP alias deletion was successful but IP range deletion was failed

Observations:
===========
IP range deletion failed with the following messages:
Failed to delete the vlan range as we could not free the ip used to provide the dhcp service.
 One of the ips in the range is used to provide Dhcp service to this subnet. cannot delete this range

Log snippet from the management server:

2013-05-22 13:01:16,447 DEBUG [cloud.api.ApiServlet] (catalina-exec-1:null) ===START===  10.146.0.15 -- GET  command=deleteVlanIpRange&id=493e10d8-0f88-44f1-a827-3d184552b64b&response=json&sessionkey=mG6gSeA59KqMK1zeGAVSG7pJs2g%3D&_=1369222331305
2013-05-22 13:01:16,505 DEBUG [network.router.VirtualNetworkApplianceManagerImpl] (catalina-exec-1:null) Found0ip Aliases to apply on the router as a part of dhco configuration
2013-05-22 13:01:16,513 DEBUG [network.router.VirtualNetworkApplianceManagerImpl] (catalina-exec-1:null) Found1ip Aliases to apply on the router as a part of dhco configuration
2013-05-22 13:01:16,608 DEBUG [agent.transport.Request] (catalina-exec-1:null) Seq 1-1277100090: Sending  { Cmd , MgmtId: 6615759585382, via: 1, Ver: v1, Flags: 100001, [{"routing.DeleteIpAliasCommand":{"routerip":"10.147.43.6","deleteIpAliasTOs":[],"createIpAliasTos":[{"routerip":"10.147.43.132","netmask":"255.255.255.192","alias_count":"18"}],"accessDetails":{"router.guest.ip":"10.147.43.6","zone.network.type":"Basic","router.name":"r-4-VM","router.ip":"169.254.3.122"},"wait":0}},{"routing.DnsMasqConfigCommand":{"domain":"cs1sandbox.xen","dns1":"10.103.128.16","internal_dns1":"10.103.128.16","dnsmasqTOs":[{"routerIp":"10.147.43.6","gateway":"10.147.43.1","netmask":"255.255.255.128"},{"routerIp":"10.147.43.129","gateway":"10.147.43.129","netmask":"255.255.255.192"}],"accessDetails":{"router.guest.ip":"10.147.43.6","zone.network.type":"Basic","router.name":"r-4-VM","router.ip":"169.254.3.122"},"wait":0}}] }
2013-05-22 13:01:16,614 DEBUG [agent.transport.Request] (catalina-exec-1:null) Seq 1-1277100090: Executing:  { Cmd , MgmtId: 6615759585382, via: 1, Ver: v1, Flags: 100001, [{"routing.DeleteIpAliasCommand":{"routerip":"10.147.43.6","deleteIpAliasTOs":[],"createIpAliasTos":[{"routerip":"10.147.43.132","netmask":"255.255.255.192","alias_count":"18"}],"accessDetails":{"router.guest.ip":"10.147.43.6","zone.network.type":"Basic","router.name":"r-4-VM","router.ip":"169.254.3.122"},"wait":0}},{"routing.DnsMasqConfigCommand":{"domain":"cs1sandbox.xen","dns1":"10.103.128.16","internal_dns1":"10.103.128.16","dnsmasqTOs":[{"routerIp":"10.147.43.6","gateway":"10.147.43.1","netmask":"255.255.255.128"},{"routerIp":"10.147.43.129","gateway":"10.147.43.129","netmask":"255.255.255.192"}],"accessDetails":{"router.guest.ip":"10.147.43.6","zone.network.type":"Basic","router.name":"r-4-VM","router.ip":"169.254.3.122"},"wait":0}}] }
2013-05-22 13:01:16,617 DEBUG [agent.manager.DirectAgentAttache] (DirectAgent-3:null) Seq 1-1277100090: Executing request
2013-05-22 13:01:18,856 DEBUG [storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:null) Zone 1 is ready to launch secondary storage VM
2013-05-22 13:01:19,327 DEBUG [cloud.consoleproxy.ConsoleProxyManagerImpl] (consoleproxy-1:null) Zone 1 is ready to launch console proxy
2013-05-22 13:01:19,583 DEBUG [agent.manager.DirectAgentAttache] (DirectAgent-3:null) Seq 1-1277100090: Response Received:
2013-05-22 13:01:19,583 DEBUG [agent.transport.Request] (DirectAgent-3:null) Seq 1-1277100090: Processing:  { Ans: , MgmtId: 6615759585382, via: 1, Ver: v1, Flags: 0, [{"Answer":{"result":true,"wait":0}},{"Answer":{"result":true,"wait":0}}] }
2013-05-22 13:01:19,584 DEBUG [agent.transport.Request] (catalina-exec-1:null) Seq 1-1277100090: Received:  { Ans: , MgmtId: 6615759585382, via: 1, Ver: v1, Flags: 0, { Answer, Answer } }
2013-05-22 13:01:19,584 DEBUG [cloud.configuration.ConfigurationManagerImpl] (catalina-exec-1:null) Failed to delete the vlan range as we could not free the ip used to provide the dhcp service.
2013-05-22 13:01:19,640 INFO  [cloud.api.ApiServer] (catalina-exec-1:null) One of the ips in the range is used to provide Dhcp service to this subnet. cannot delete this range as
2013-05-22 13:01:19,642 DEBUG [cloud.api.ApiServlet] (catalina-exec-1:null) ===END===  10.146.0.15 -- GET  command=deleteVlanIpRange&id=493e10d8-0f88-44f1-a827-3d184552b64b&response=json&sessionkey=mG6gSeA59KqMK1zeGAVSG7pJs2g%3D&_=1369222331305

Log snippet from SMlog:

[25541] 2013-05-22 11:36:24.615213      #### VMOPS enter  deleteipAlias ####
[25541] 2013-05-22 11:36:24.615300      ['bin/bash', '/opt/xensource/bin/deleteipAlias.sh', '169.254.3.122', '', '18:10.147.43.132:255.255.255.192-']
[25541] 2013-05-22 11:36:24.764299        pread SUCCESS
[25541] 2013-05-22 11:36:24.764409      #### VMOPS exit  deleteipAlias ####
[25549] 2013-05-22 11:36:24.959582      #### VMOPS enter  createFileInDomr ####
[25549] 2013-05-22 11:36:24.959667      ['mktemp']
[25549] 2013-05-22 11:36:24.967767        pread SUCCESS
[25549] 2013-05-22 11:36:24.967922      ['scp', '-P', '3922', '-q', '-o', 'StrictHostKeyChecking=no', '-i', '/root/.ssh/id_rsa.cloud', '/tmp/tmp.yyRKw25550', 'root@169.254.3.122:/tmp/169-254-3-122.cfg']
[25549] 2013-05-22 11:36:25.099554        pread SUCCESS
[25549] 2013-05-22 11:36:25.099658      ['rm', '/tmp/tmp.yyRKw25550']
[25549] 2013-05-22 11:36:25.107505        pread SUCCESS
[25549] 2013-05-22 11:36:25.107596      #### VMOPS exit  createFileInDomr ####
[25556] 2013-05-22 11:36:25.224078      #### VMOPS enter  configdnsmasq ####
[25556] 2013-05-22 11:36:25.224169      ['ssh', '-p', '3922', '-q', '-o', 'StrictHostKeyChecking=no', '-i', '/root/.ssh/id_rsa.cloud', 'root@169.254.3.122', '/root/dnsmasq.sh', '/tmp/169-254-3-122.cfg']
[25556] 2013-05-22 11:36:27.380328        pread SUCCESS
[25556] 2013-05-22 11:36:27.380442      #### VMOPS exit  configdnsmasq ####


--
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