venkata swamybabu budumuru created CLOUDSTACK-1595:
------------------------------------------------------
Summary: [MultipleIpsToNic] removeIpFromNic is failing when
secondary ip uuid is passed to the api
Key: CLOUDSTACK-1595
URL: https://issues.apache.org/jira/browse/CLOUDSTACK-1595
Project: CloudStack
Issue Type: Bug
Security Level: Public (Anyone can view this level - this is the default.)
Components: API
Affects Versions: 4.2.0
Environment: commit id : 37bab18c68fdb3492429c7d935958d774cb60205
Reporter: venkata swamybabu budumuru
Assignee: Jayapal Reddy
Fix For: 4.2.0
Steps to reproduce :
1. Have an advanced zone with at least one VM have secondary ips
2. try to remove one of the secondary ip using uuid.
Observations:
(i) It fails with NPE
http://localhost:8096/api?command=removeIpFromNic&id=088b5850-91b9-4595-a278-948a840e5516
2013-03-08 15:05:10,453 ERROR [cloud.api.ApiServer] (ApiServer-2:null)
unhandled exception executing api command: removeIpFromNic
java.lang.NullPointerException
at
com.cloud.api.ApiDispatcher.translateUuidToInternalId(ApiDispatcher.java:351)
at com.cloud.api.ApiDispatcher.setFieldValue(ApiDispatcher.java:469)
at com.cloud.api.ApiDispatcher.processParameters(ApiDispatcher.java:211)
at com.cloud.api.ApiServer.queueCommand(ApiServer.java:450)
at com.cloud.api.ApiServer.handleRequest(ApiServer.java:347)
at com.cloud.api.ApiServer.handle(ApiServer.java:283)
at org.apache.http.protocol.HttpService.doService(HttpService.java:375)
at
org.apache.http.protocol.HttpService.handleRequest(HttpService.java:290)
at com.cloud.api.ApiServer$WorkerTask.run(ApiServer.java:956)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:722)
attaching the vmops.log to 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