[
https://issues.apache.org/jira/browse/CLOUDSTACK-3731?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
venkata swamybabu budumuru closed CLOUDSTACK-3731.
--------------------------------------------------
With the workaround fix that is added to the latest code, it makes sure that it
is deleted as part of the LB service deletion and cleans up the rules in the
db. Closing this bug.
> [GSLB] deleteGlobalLoadBalancerRule fails with the
> java.lang.NumberFormatException
> ----------------------------------------------------------------------------------
>
> Key: CLOUDSTACK-3731
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-3731
> Project: CloudStack
> Issue Type: Bug
> Security Level: Public(Anyone can view this level - this is the
> default.)
> Components: Network Controller
> Affects Versions: 4.2.0
> Reporter: venkata swamybabu budumuru
> Assignee: Murali Reddy
> Priority: Critical
> Fix For: 4.2.0
>
> Attachments: logs.tgz
>
>
> Steps to reproduce :
> 1. Have latest CloudStack with at least one advanced zone.
> 2. Create a GSLB and assign at least one LB rule to it.
> 3. delete the above created GSLB rule.
> Observations:
> (i) It fails to delete with the exception mentioned below during lb monitor
> clean up.
> Here is the snippet from mgmt server log.
> 2013-07-23 15:23:53,237 DEBUG [cloud.api.ApiServlet] (catalina-exec-18:null)
> ===END=== 10.252.192.25 -- GET
> command=deleteGlobalLoadBalancerRule&response=json&sessionkey=d7oqT9T15HMqsg0B9DfD%2BvrIJXU%3D&id=6ebd657e-8d10-48a0-b844-ce3352a15a84&_=1374573234622
> 2013-07-23 15:23:53,241 DEBUG [cloud.async.AsyncJobManagerImpl]
> (Job-Executor-77:job-174 = [ 7f30b3f8-aed0-47ab-ae8a-96434e5af594 ])
> Executing
> org.apache.cloudstack.api.command.user.region.ha.gslb.DeleteGlobalLoadBalancerRuleCmd
> for job-174 = [ 7f30b3f8-aed0-47ab-ae8a-96434e5af594 ]
> 2013-07-23 15:23:53,255 DEBUG [cloud.user.AccountManagerImpl]
> (Job-Executor-77:job-174 = [ 7f30b3f8-aed0-47ab-ae8a-96434e5af594 ]) Access
> to
> org.apache.cloudstack.region.gslb.GlobalLoadBalancerRuleVO$$EnhancerByCGLIB$$28558201@69968c03
> granted to Acct[3-dom1Acc1] by DomainChecker_EnhancerByCloudStack_73178ccf
> 2013-07-23 15:23:53,299 DEBUG [agent.transport.Request]
> (Job-Executor-77:job-174 = [ 7f30b3f8-aed0-47ab-ae8a-96434e5af594 ]) Seq
> 11-587989001: Sending { Cmd , MgmtId: 7280707764394, via: 11, Ver: v1,
> Flags: 100011,
> [{"com.cloud.agent.api.routing.GlobalLoadBalancerConfigCommand":{"domainName":"test.xyztelco.com","serviceType":"tcp","lbMethod":"roundrobin","persistenceType":"sourceip","gslbId":3,"revoked":true,"siteLoadBalancers":[{"local":true,"revoked":true,"serviceType":"tcp","servicePublicIp":"10.147.44.64","servicePort":"22","gslbProviderPrivateIp":"10.147.44.20","gslbProviderPublicIp":"10.147.44.20","dataCenterId":1,"weight":1}],"wait":0}}]
> }
> 2013-07-23 15:23:53,299 DEBUG [agent.transport.Request]
> (Job-Executor-77:job-174 = [ 7f30b3f8-aed0-47ab-ae8a-96434e5af594 ]) Seq
> 11-587989001: Executing: { Cmd , MgmtId: 7280707764394, via: 11, Ver: v1,
> Flags: 100011,
> [{"com.cloud.agent.api.routing.GlobalLoadBalancerConfigCommand":{"domainName":"test.xyztelco.com","serviceType":"tcp","lbMethod":"roundrobin","persistenceType":"sourceip","gslbId":3,"revoked":true,"siteLoadBalancers":[{"local":true,"revoked":true,"serviceType":"tcp","servicePublicIp":"10.147.44.64","servicePort":"22","gslbProviderPrivateIp":"10.147.44.20","gslbProviderPublicIp":"10.147.44.20","dataCenterId":1,"weight":1}],"wait":0}}]
> }
> 2013-07-23 15:23:53,300 DEBUG [agent.manager.DirectAgentAttache]
> (DirectAgent-2:null) Seq 11-587989001: Executing request
> 2013-07-23 15:23:53,373 DEBUG [network.resource.NetscalerResource]
> (DirectAgent-2:null) Successfully deleted virtual server:
> cloud-gslb-vserver-test.xyztelco.com and domain: test.xyztelco.com binding
> 2013-07-23 15:23:53,397 WARN [network.resource.NetscalerResource]
> (DirectAgent-2:null) Failed to delet GSLB monitor 10.147.44.64and GSLB
> service cloud-gslb-service-cloudsite1-10.147.44.64-22 binding due to
> java.lang.NumberFormatException: For input string: "18446744073709551615"
> 2013-07-23 15:23:53,466 DEBUG [network.resource.NetscalerResource]
> (DirectAgent-2:null) Failed to delete monitor cloud-monitor-10.147.44.64 for
> GSLB service due to Monitor must be unbound before it can be deleted
> 2013-07-23 15:23:53,532 WARN [network.resource.NetscalerResource]
> (DirectAgent-2:null) Retrying GlobalLoadBalancerConfigCommand. Number of
> retries remaining: 1
> 2013-07-23 15:23:53,606 WARN [network.resource.NetscalerResource]
> (DirectAgent-2:null) Failed to delet GSLB monitor 10.147.44.64and GSLB
> service cloud-gslb-service-cloudsite1-10.147.44.64-22 binding due to
> java.lang.NumberFormatException: For input string: "18446744073709551615"
> 2013-07-23 15:23:53,656 DEBUG [network.resource.NetscalerResource]
> (DirectAgent-2:null) Failed to delete monitor cloud-monitor-10.147.44.64 for
> GSLB service due to Monitor must be unbound before it can be deleted
> 2013-07-23 15:23:53,710 WARN [network.resource.NetscalerResource]
> (DirectAgent-2:null) Retrying GlobalLoadBalancerConfigCommand. Number of
> retries remaining: 0
> 2013-07-23 15:23:53,772 WARN [network.resource.NetscalerResource]
> (DirectAgent-2:null) Failed to delet GSLB monitor 10.147.44.64and GSLB
> service cloud-gslb-service-cloudsite1-10.147.44.64-22 binding due to
> java.lang.NumberFormatException: For input string: "18446744073709551615"
> 2013-07-23 15:23:53,840 DEBUG [network.resource.NetscalerResource]
> (DirectAgent-2:null) Failed to delete monitor cloud-monitor-10.147.44.64 for
> GSLB service due to Monitor must be unbound before it can be deleted
> 2013-07-23 15:23:53,840 DEBUG [agent.manager.DirectAgentAttache]
> (DirectAgent-2:null) Seq 11-587989001: Response Received:
> 2013-07-23 15:23:53,840 DEBUG [agent.transport.Request] (DirectAgent-2:null)
> Seq 11-587989001: Processing: { Ans: , MgmtId: 7280707764394, via: 11, Ver:
> v1, Flags: 10,
> [{"com.cloud.agent.api.routing.GlobalLoadBalancerConfigAnswer":{"result":false,"details":"Failed
> to apply GSLB configuration due to Failed to delete monitor
> cloud-monitor-10.147.44.64 for GSLB service due to Monitor must be unbound
> before it can be deleted","wait":0}}] }
> 2013-07-23 15:23:53,840 DEBUG [agent.transport.Request]
> (Job-Executor-77:job-174 = [ 7f30b3f8-aed0-47ab-ae8a-96434e5af594 ]) Seq
> 11-587989001: Received: { Ans: , MgmtId: 7280707764394, via: 11, Ver: v1,
> Flags: 10, { GlobalLoadBalancerConfigAnswer } }
> 2013-07-23 15:23:53,841 DEBUG [agent.manager.AgentManagerImpl]
> (Job-Executor-77:job-174 = [ 7f30b3f8-aed0-47ab-ae8a-96434e5af594 ]) Details
> from executing class
> com.cloud.agent.api.routing.GlobalLoadBalancerConfigCommand: Failed to apply
> GSLB configuration due to Failed to delete monitor cloud-monitor-10.147.44.64
> for GSLB service due to Monitor must be unbound before it can be deleted
> 2013-07-23 15:23:53,841 DEBUG [network.element.NetscalerElement]
> (Job-Executor-77:job-174 = [ 7f30b3f8-aed0-47ab-ae8a-96434e5af594 ]) Unable
> to apply global load balancer rule to the gslb service provider in zone 1
> 2013-07-23 15:23:53,841 WARN
> [region.gslb.GlobalLoadBalancingRulesServiceImpl] (Job-Executor-77:job-174 =
> [ 7f30b3f8-aed0-47ab-ae8a-96434e5af594 ]) Failed to configure GSLB rule in
> the zone 1 due to Resource [DataCenter:1] is unreachable: Unable to apply
> global load balancer rule to the gslb service provider in zone 1
> 2013-07-23 15:23:53,841 WARN
> [region.gslb.GlobalLoadBalancingRulesServiceImpl] (Job-Executor-77:job-174 =
> [ 7f30b3f8-aed0-47ab-ae8a-96434e5af594 ]) Failed to delete GSLB rule due
> toFailed to configure GSLB rule in the zone 1 due to Resource [DataCenter:1]
> is unreachable: Unable to apply global load balancer rule to the gslb service
> provider in zone 1
> 2013-07-23 15:23:53,844 DEBUG [cloud.async.AsyncJobManagerImpl]
> (Job-Executor-77:job-174 = [ 7f30b3f8-aed0-47ab-ae8a-96434e5af594 ]) Complete
> async job-174 = [ 7f30b3f8-aed0-47ab-ae8a-96434e5af594 ], jobStatus: 2,
> resultCode: 530, result: Error Code: 530 Error text: Failed to delete Global
> Load Balancer rule.
> 2013-07-23 15:23:55,130 DEBUG [agent.manager.AgentManagerImpl]
> (AgentManager-Handler-8:null) SeqA 9-10725: Processing Seq 9-10725: { Cmd ,
> MgmtId: -1, via: 9, Ver: v1, Flags: 11,
> [{"com.cloud.agent.api.ConsoleProxyLoadReportCommand":{"_proxyVmId":74,"_loadInfo":"{\n
> \"connections\": []\n}","wait":0}}] }
> Attaching all the required logs along with db dump to the bug.
--
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