[
https://issues.apache.org/jira/browse/CLOUDSTACK-3777?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sailaja Mada updated CLOUDSTACK-3777:
-------------------------------------
Description:
Setup : 2 Zones ( VMWARE , Xen )
Upgraded from 306 to 4.2
Steps:
1. Tried to create VNMC provider
Observation:
It failed to add with IndexOutOfBoundsException
Note :
1. Fresh install setup, Add VNMC worked fine with no issues.
2. All the schema related to Cisco VNMC got extended
3. All the files required for cisco VNMC got copied as part of upgrade.
2013-07-24 20:13:15,661 DEBUG [cloud.api.ApiServlet] (catalina-exec-22:null)
===START=== 10.144.6.19 -- GET
command=addCiscoVnmcResource&response=json&sessionkey=qZfkOzcG6fassQz0OicjUXjs598%3D&physicalnetworkid=26642286-d9a8-4077-aa60-3bad8ff941cb&hostname=10.102.192.92&username=admin&_=1374657537167
2013-07-24 20:13:15,709 ERROR [cloud.api.ApiServer] (catalina-exec-22:null)
unhandled exception executing api command: addCiscoVnmcResource
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.rangeCheck(ArrayList.java:571)
at java.util.ArrayList.get(ArrayList.java:349)
at
com.cloud.network.element.CiscoVnmcElement.addCiscoVnmcResource(CiscoVnmcElement.java:552)
at
com.cloud.api.commands.AddCiscoVnmcResourceCmd.execute(AddCiscoVnmcResourceCmd.java:90)
at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:158)
at com.cloud.api.ApiServer.queueCommand(ApiServer.java:529)
at com.cloud.api.ApiServer.handleRequest(ApiServer.java:371)
at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:304)
at com.cloud.api.ApiServlet.doGet(ApiServlet.java:66)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at
org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:889)
at
org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:721)
at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:2260)
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-07-24 20:13:15,713 DEBUG [cloud.api.ApiServlet] (catalina-exec-22:null)
===END=== 10.144.6.19 -- GET
command=addCiscoVnmcResource&response=json&sessionkey=qZfkOzcG6fassQz0OicjUXjs598%3D&physicalnetworkid=26642286-d9a8-4077-aa60-3bad8ff941cb&hostname=10.102.192.92&username=admin&_=1374657537167
mysql> desc external_cisco_asa1000v_devices;
+---------------------+---------------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra
|
+---------------------+---------------------+------+-----+---------+----------------+
| id | bigint(20) unsigned | NO | PRI | NULL |
auto_increment |
| uuid | varchar(255) | YES | UNI | NULL |
|
| physical_network_id | bigint(20) unsigned | NO | MUL | NULL |
|
| management_ip | varchar(255) | NO | UNI | NULL |
|
| in_port_profile | varchar(255) | NO | | NULL |
|
| cluster_id | bigint(20) unsigned | NO | MUL | NULL |
|
+---------------------+---------------------+------+-----+---------+----------------+
6 rows in set (0.00 sec)
mysql> desc external_cisco_vnmc_devices;
+---------------------+---------------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra
|
+---------------------+---------------------+------+-----+---------+----------------+
| id | bigint(20) unsigned | NO | PRI | NULL |
auto_increment |
| uuid | varchar(255) | YES | UNI | NULL |
|
| physical_network_id | bigint(20) unsigned | NO | MUL | NULL |
|
| provider_name | varchar(255) | NO | | NULL |
|
| device_name | varchar(255) | NO | | NULL |
|
| host_id | bigint(20) unsigned | NO | MUL | NULL |
|
+---------------------+---------------------+------+-----+---------+----------------+
6 rows in set (0.00 sec)
mysql> desc network_asa1000v_map;
+-------------+---------------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+-------------+---------------------+------+-----+---------+----------------+
| id | bigint(20) unsigned | NO | PRI | NULL | auto_increment |
| network_id | bigint(20) unsigned | NO | UNI | NULL | |
| asa1000v_id | bigint(20) unsigned | NO | UNI | NULL | |
+-------------+---------------------+------+-----+---------+----------------+
3 rows in set (0.00 sec)
[root@RHEL6 management]# cd /usr/share/cloudstack-common/scripts/network/cisco/
[root@RHEL6 cisco]# ls
assoc-asa1000v.xml create-acl-rule-for-dnat.xml
create-egress-acl-rule.xml create-pf-rule.xml
delete-edge-security-profile.xml list-nat-policies.xml
associate-acl-policy-set.xml create-acl-rule-for-pf.xml
create-generic-egress-acl-no-protocol-rule.xml create-port-pool.xml
delete-nat-policy-set.xml list-policyrefs-in-policyset.xml
associate-dhcp-policy.xml create-dhcp-policy.xml
create-generic-egress-acl-rule.xml create-source-nat-pool.xml
delete-nat-policy.xml list-tenants.xml
associate-dhcp-server.xml create-dnat-rule.xml
create-generic-ingress-acl-rule.xml create-source-nat-rule.xml
delete-rule.xml list-unassigned-asa1000v.xml
associate-nat-policy-set.xml create-edge-device-profile.xml
create-ingress-acl-rule.xml create-tenant.xml
delete-tenant.xml login.xml
associate-route-policy.xml create-edge-device-route-policy.xml
create-ip-pool.xml create-vdc.xml
delete-vdc.xml
create-acl-policy-ref.xml create-edge-device-route.xml
create-nat-policy-ref.xml delete-acl-policy-set.xml
disassoc-asa1000v.xml
create-acl-policy-set.xml create-edge-firewall.xml
create-nat-policy-set.xml delete-acl-policy.xml
list-acl-policies.xml
create-acl-policy.xml create-edge-security-profile.xml
create-nat-policy.xml delete-edge-firewall.xml
list-children.xml
[root@RHEL6 cisco]#
was:
Setup : 2 Zones ( VMWARE , Xen )
Upgraded from 306 to 4.2
Steps:
1. Tried to create VNMC provider
Observation:
It failed to add with IndexOutOfBoundsException
2013-07-24 20:13:15,661 DEBUG [cloud.api.ApiServlet] (catalina-exec-22:null)
===START=== 10.144.6.19 -- GET
command=addCiscoVnmcResource&response=json&sessionkey=qZfkOzcG6fassQz0OicjUXjs598%3D&physicalnetworkid=26642286-d9a8-4077-aa60-3bad8ff941cb&hostname=10.102.192.92&username=admin&_=1374657537167
2013-07-24 20:13:15,709 ERROR [cloud.api.ApiServer] (catalina-exec-22:null)
unhandled exception executing api command: addCiscoVnmcResource
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.rangeCheck(ArrayList.java:571)
at java.util.ArrayList.get(ArrayList.java:349)
at
com.cloud.network.element.CiscoVnmcElement.addCiscoVnmcResource(CiscoVnmcElement.java:552)
at
com.cloud.api.commands.AddCiscoVnmcResourceCmd.execute(AddCiscoVnmcResourceCmd.java:90)
at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:158)
at com.cloud.api.ApiServer.queueCommand(ApiServer.java:529)
at com.cloud.api.ApiServer.handleRequest(ApiServer.java:371)
at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:304)
at com.cloud.api.ApiServlet.doGet(ApiServlet.java:66)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at
org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:889)
at
org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:721)
at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:2260)
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-07-24 20:13:15,713 DEBUG [cloud.api.ApiServlet] (catalina-exec-22:null)
===END=== 10.144.6.19 -- GET
command=addCiscoVnmcResource&response=json&sessionkey=qZfkOzcG6fassQz0OicjUXjs598%3D&physicalnetworkid=26642286-d9a8-4077-aa60-3bad8ff941cb&hostname=10.102.192.92&username=admin&_=1374657537167
> IndexOutOfBoundsException while adding Cisco VNMc provider on a upgraded setup
> ------------------------------------------------------------------------------
>
> Key: CLOUDSTACK-3777
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-3777
> Project: CloudStack
> Issue Type: Bug
> Security Level: Public(Anyone can view this level - this is the
> default.)
> Components: Network Devices
> Affects Versions: 4.2.0
> Reporter: Sailaja Mada
> Priority: Blocker
> Fix For: 4.2.0
>
> Attachments: afterupgrademysqldumpusage1.dmp, apilog.log,
> beforeupgrademysqldump.dmp, CISCOVNMCUI.png, management-server.log
>
>
> Setup : 2 Zones ( VMWARE , Xen )
> Upgraded from 306 to 4.2
> Steps:
> 1. Tried to create VNMC provider
> Observation:
> It failed to add with IndexOutOfBoundsException
> Note :
> 1. Fresh install setup, Add VNMC worked fine with no issues.
> 2. All the schema related to Cisco VNMC got extended
> 3. All the files required for cisco VNMC got copied as part of upgrade.
> 2013-07-24 20:13:15,661 DEBUG [cloud.api.ApiServlet] (catalina-exec-22:null)
> ===START=== 10.144.6.19 -- GET
> command=addCiscoVnmcResource&response=json&sessionkey=qZfkOzcG6fassQz0OicjUXjs598%3D&physicalnetworkid=26642286-d9a8-4077-aa60-3bad8ff941cb&hostname=10.102.192.92&username=admin&_=1374657537167
> 2013-07-24 20:13:15,709 ERROR [cloud.api.ApiServer] (catalina-exec-22:null)
> unhandled exception executing api command: addCiscoVnmcResource
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.rangeCheck(ArrayList.java:571)
> at java.util.ArrayList.get(ArrayList.java:349)
> at
> com.cloud.network.element.CiscoVnmcElement.addCiscoVnmcResource(CiscoVnmcElement.java:552)
> at
> com.cloud.api.commands.AddCiscoVnmcResourceCmd.execute(AddCiscoVnmcResourceCmd.java:90)
> at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:158)
> at com.cloud.api.ApiServer.queueCommand(ApiServer.java:529)
> at com.cloud.api.ApiServer.handleRequest(ApiServer.java:371)
> at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:304)
> at com.cloud.api.ApiServlet.doGet(ApiServlet.java:66)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
> at
> org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:889)
> at
> org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:721)
> at
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:2260)
> 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-07-24 20:13:15,713 DEBUG [cloud.api.ApiServlet] (catalina-exec-22:null)
> ===END=== 10.144.6.19 -- GET
> command=addCiscoVnmcResource&response=json&sessionkey=qZfkOzcG6fassQz0OicjUXjs598%3D&physicalnetworkid=26642286-d9a8-4077-aa60-3bad8ff941cb&hostname=10.102.192.92&username=admin&_=1374657537167
> mysql> desc external_cisco_asa1000v_devices;
> +---------------------+---------------------+------+-----+---------+----------------+
> | Field | Type | Null | Key | Default | Extra
> |
> +---------------------+---------------------+------+-----+---------+----------------+
> | id | bigint(20) unsigned | NO | PRI | NULL |
> auto_increment |
> | uuid | varchar(255) | YES | UNI | NULL |
> |
> | physical_network_id | bigint(20) unsigned | NO | MUL | NULL |
> |
> | management_ip | varchar(255) | NO | UNI | NULL |
> |
> | in_port_profile | varchar(255) | NO | | NULL |
> |
> | cluster_id | bigint(20) unsigned | NO | MUL | NULL |
> |
> +---------------------+---------------------+------+-----+---------+----------------+
> 6 rows in set (0.00 sec)
> mysql> desc external_cisco_vnmc_devices;
> +---------------------+---------------------+------+-----+---------+----------------+
> | Field | Type | Null | Key | Default | Extra
> |
> +---------------------+---------------------+------+-----+---------+----------------+
> | id | bigint(20) unsigned | NO | PRI | NULL |
> auto_increment |
> | uuid | varchar(255) | YES | UNI | NULL |
> |
> | physical_network_id | bigint(20) unsigned | NO | MUL | NULL |
> |
> | provider_name | varchar(255) | NO | | NULL |
> |
> | device_name | varchar(255) | NO | | NULL |
> |
> | host_id | bigint(20) unsigned | NO | MUL | NULL |
> |
> +---------------------+---------------------+------+-----+---------+----------------+
> 6 rows in set (0.00 sec)
> mysql> desc network_asa1000v_map;
> +-------------+---------------------+------+-----+---------+----------------+
> | Field | Type | Null | Key | Default | Extra |
> +-------------+---------------------+------+-----+---------+----------------+
> | id | bigint(20) unsigned | NO | PRI | NULL | auto_increment |
> | network_id | bigint(20) unsigned | NO | UNI | NULL | |
> | asa1000v_id | bigint(20) unsigned | NO | UNI | NULL | |
> +-------------+---------------------+------+-----+---------+----------------+
> 3 rows in set (0.00 sec)
> [root@RHEL6 management]# cd
> /usr/share/cloudstack-common/scripts/network/cisco/
> [root@RHEL6 cisco]# ls
> assoc-asa1000v.xml create-acl-rule-for-dnat.xml
> create-egress-acl-rule.xml create-pf-rule.xml
> delete-edge-security-profile.xml list-nat-policies.xml
> associate-acl-policy-set.xml create-acl-rule-for-pf.xml
> create-generic-egress-acl-no-protocol-rule.xml create-port-pool.xml
> delete-nat-policy-set.xml list-policyrefs-in-policyset.xml
> associate-dhcp-policy.xml create-dhcp-policy.xml
> create-generic-egress-acl-rule.xml create-source-nat-pool.xml
> delete-nat-policy.xml list-tenants.xml
> associate-dhcp-server.xml create-dnat-rule.xml
> create-generic-ingress-acl-rule.xml create-source-nat-rule.xml
> delete-rule.xml list-unassigned-asa1000v.xml
> associate-nat-policy-set.xml create-edge-device-profile.xml
> create-ingress-acl-rule.xml create-tenant.xml
> delete-tenant.xml login.xml
> associate-route-policy.xml create-edge-device-route-policy.xml
> create-ip-pool.xml create-vdc.xml
> delete-vdc.xml
> create-acl-policy-ref.xml create-edge-device-route.xml
> create-nat-policy-ref.xml delete-acl-policy-set.xml
> disassoc-asa1000v.xml
> create-acl-policy-set.xml create-edge-firewall.xml
> create-nat-policy-set.xml delete-acl-policy.xml
> list-acl-policies.xml
> create-acl-policy.xml create-edge-security-profile.xml
> create-nat-policy.xml delete-edge-firewall.xml
> list-children.xml
> [root@RHEL6 cisco]#
--
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