[
https://issues.apache.org/jira/browse/CLOUDSTACK-3167?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13694326#comment-13694326
]
Alena Prokharchyk commented on CLOUDSTACK-3167:
-----------------------------------------------
The issue happens because of other bug:
https://issues.apache.org/jira/browse/CLOUDSTACK-3119
The network was removed, but the vlan was left around.
mysql> select * from vlan where network_id=223;
+----+--------------------------------------+---------+--------------+---------------+---------------------------+----------------+----------------+------------+---------------------+-------------+----------+-----------+
| id | uuid | vlan_id | vlan_gateway |
vlan_netmask | description | vlan_type | data_center_id |
network_id | physical_network_id | ip6_gateway | ip6_cidr | ip6_range |
+----+--------------------------------------+---------+--------------+---------------+---------------------------+----------------+----------------+------------+---------------------+-------------+----------+-----------+
| 3 | f4bc4748-110f-4ce5-8e08-7a3e43dcf647 | 1201 | 172.16.15.1 |
255.255.255.0 | 172.16.15.21-172.16.15.41 | DirectAttached | 2 |
223 | 201 | NULL | NULL | NULL |
+----+--------------------------------------+---------+--------------+---------------+---------------------------+----------------+----------------+------------+---------------------+-------------+----------+-----------+
1 row in set (0.00 sec)
mysql> select id, name, removed from networks where id=223;
+-----+---------------------+---------------------+
| id | name | removed |
+-----+---------------------+---------------------+
| 223 | Test Network Shared | 2013-06-26 21:35:20 |
+-----+---------------------+---------------------+
So when we list it, we query the network id, and obviously fail to find it as
its removed.
> [Automation] List VLAN range API call failed with null pointer exception
> -------------------------------------------------------------------------
>
> Key: CLOUDSTACK-3167
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-3167
> 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
> Environment: Master build,
> Reporter: Rayees Namathponnan
> Assignee: Alena Prokharchyk
> Priority: Blocker
> Fix For: 4.2.0
>
> Attachments: CLOUDSTACK-3167.rar, dbdump.rar
>
>
> SSVM test cases failed from BVT
> run listVLAN Range command, its fails willl null pointer exception
> http://10.223.49.195:8096/?command=listVlanIpRanges&zoneid=72deef27-805a-4c6a-bf37-2b04d6c614d0&response=json
> 2013-06-24 17:32:44,763 DEBUG [cloud.projects.ProjectManagerImpl]
> (Job-Executor-17:job-3320) Accounts are unassign successfully from project
> Project[94|name=Project-TRGJ8K|domainid=1] as a part of project cleanup...
> 2013-06-24 17:32:44,795 DEBUG [cloud.async.AsyncJobManagerImpl]
> (Job-Executor-17:job-3320) Complete async job-3320, jobStatus: 1, resultCode:
> 0, result: org.apache.cloudstack.api.response.SuccessResponse@7c56947b
> 2013-06-24 17:32:44,799 DEBUG [cloud.async.AsyncJobManagerImpl]
> (Job-Executor-17:job-3320) Done executing
> org.apache.cloudstack.api.command.user.project.DeleteProjectCmd for job-3320
> 2013-06-24 17:32:45,192 ERROR [cloud.api.ApiServer] (ApiServer-2:null)
> unhandled exception executing api command: listVlanIpRanges
> java.lang.NullPointerException
> at
> com.cloud.configuration.ConfigurationManagerImpl.getVlanAccount(ConfigurationManagerImpl.java:4570)
> at com.cloud.api.ApiDBUtils.getVlanAccount(ApiDBUtils.java:1062)
> at
> com.cloud.api.ApiResponseHelper.createVlanIpRangeResponse(ApiResponseHelper.java:604)
> at
> org.apache.cloudstack.api.command.admin.vlan.ListVlanIpRangesCmd.execute(ListVlanIpRangesCmd.java:145)
> at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:155)
> at com.cloud.api.ApiServer.queueCommand(ApiServer.java:528)
> at com.cloud.api.ApiServer.handleRequest(ApiServer.java:371)
> at com.cloud.api.ApiServer.handle(ApiServer.java:302)
> 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:992)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
--
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