[ https://issues.apache.org/jira/browse/CLOUDSTACK-4110?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
manasaveloori closed CLOUDSTACK-4110. ------------------------------------- Resolution: Fixed Verified on latest upgraded build.Working fine.Hence closing the issue. > [Upgrade] InvalidParameterValueException while disabling static NAT/releasing > the public ip from the network which is added before upgrade. > ------------------------------------------------------------------------------------------------------------------------------------------- > > Key: CLOUDSTACK-4110 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-4110 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the > default.) > Components: Network Controller, Upgrade > Affects Versions: 4.2.0 > Environment: upgrade from 3.0.7 to 4.2 > Reporter: manasaveloori > Assignee: Wei Zhou > Priority: Critical > Fix For: 4.2.0 > > Attachments: management-server.zip > > > Steps: > 1. Have CS with 3.0.7 build. > 2. Deploy a VM. > 3. Acquire a public ip and enable static nat.Configure the firewall rule. > 4. Now upgrade to 4.2. > 5. Try to release the acquired public Ip or try to disable the static nat. > Observing the following exception: > 2013-08-06 22:30:06,348 DEBUG [network.rules.RulesManagerImpl] > (Job-Executor-90:job-143 = [ 527fa2c3-fc20-4429-853d-27f8a79bd08a ]) There > are no static nat rules to apply for ip id=55 > 2013-08-06 22:30:06,371 ERROR [cloud.async.AsyncJobManagerImpl] > (Job-Executor-90:job-143 = [ 527fa2c3-fc20-4429-853d-27f8a79bd08a ]) > Unexpected exception while executing > org.apache.cloudstack.api.command.user.nat.DisableStaticNatCmd > com.cloud.exception.InvalidParameterValueException: Vm ip is not set as dnat > ip for this public ip > at > com.cloud.network.rules.RulesManagerImpl.createStaticNatForIp(RulesManagerImpl.java:1386) > at > com.cloud.network.rules.RulesManagerImpl.applyStaticNatForIp(RulesManagerImpl.java:1306) > at > com.cloud.network.rules.RulesManagerImpl.revokeAllPFAndStaticNatRulesForIp(RulesManagerImpl.java:1082) > at > com.cloud.network.rules.RulesManagerImpl.disableStaticNat(RulesManagerImpl.java:1243) > at > com.cloud.network.rules.RulesManagerImpl.disableStaticNat(RulesManagerImpl.java:1214) > at > com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125) > at > org.apache.cloudstack.api.command.user.nat.DisableStaticNatCmd.execute(DisableStaticNatCmd.java:83) > at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:158) > at > com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:531) > at > java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) > at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) > at java.util.concurrent.FutureTask.run(FutureTask.java:166) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) > at java.lang.Thread.run(Thread.java:679) > 2013-08-06 22:30:06,389 DEBUG [cloud.async.AsyncJobManagerImpl] > (Job-Executor-90:job-143 = [ 527fa2c3-fc20-4429-853d-27f8a79bd08a ]) Complete > async job-143 = [ 527fa2c3-fc20-4429-853d-27f8a79bd08a ], jobStatus: 2, > resultCode: 530, result: Error Code: 530 Error text: Vm ip is not set as dnat > ip for this public ip > 2013-08-06 22:30:06,410 DEBUG [cloud.async.SyncQueueManagerImpl] > (Job-Executor-90:job-143 = [ 527fa2c3-fc20-4429-853d-27f8a79bd08a ]) Sync > queue (10) is currently empty > 2013-08-06 22:30:08,579 DEBUG [cloud.api.ApiServlet] (catalina-exec-12:null) > ===START=== 10.252.192.69 -- GET > command=queryAsyncJobResult&jobId=527fa2c3-fc20-4429-853d-27f8a79bd08a&response=json&sessionkey=h4AphV030NRG1Rc6sNhQEIY8kA0%3D&_=1375789017425 > 2013-08-06 22:30:08,602 DEBUG [cloud.async.AsyncJobManagerImpl] > (catalina-exec-12:null) Async job-143 = [ > 527fa2c3-fc20-4429-853d-27f8a79bd08a ] completed > 2013-08-06 22:30:08,619 DEBUG [cloud.api.ApiServlet] (catalina-exec-12:null) > ===END=== 10.252.192.69 -- GET > command=queryAsyncJobResult&jobId=527fa2c3-fc20-4429-853d-27f8a79bd08a&response=json&sessionkey=h4AphV030NRG1Rc6sNhQEIY8kA0%3D&_=1375789017425 -- 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