[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-2131?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

venkata swamybabu budumuru closed CLOUDSTACK-2131.
--------------------------------------------------


Have verified it on the latest build and it is now not checking for those 
providers which are not enabled in network offering.

Log snippet when NetScaler and VR are providing services for a network :


013-08-29 00:01:23,131 DEBUG [cloud.network.NetworkModelImpl] 
(Job-Executor-13:job-27 = [ 44e6f8d0-5761-48d4-bd5d-3b5ca97c6256 ]) Service 
SecurityGroup is not supported in the network id=208
2013-08-29 00:01:23,176 DEBUG [cloud.network.NetworkManagerImpl] 
(Job-Executor-13:job-27 = [ 44e6f8d0-5761-48d4-bd5d-3b5ca97c6256 ]) Changing 
active number of nics for network id=208 on 1
2013-08-29 00:01:23,237 DEBUG [cloud.network.NetworkManagerImpl] 
(Job-Executor-13:job-27 = [ 44e6f8d0-5761-48d4-bd5d-3b5ca97c6256 ]) Asking 
Netscaler to prepare for 
Nic[28-12-0a44f5f9-be13-4aa7-a799-170f763503ec-10.0.65.73]
2013-08-29 00:01:23,821 DEBUG [cloud.network.NetworkManagerImpl] 
(Job-Executor-13:job-27 = [ 44e6f8d0-5761-48d4-bd5d-3b5ca97c6256 ]) Asking 
VirtualRouter to prepare for 
Nic[28-12-0a44f5f9-be13-4aa7-a799-170f763503ec-10.0.65.73]
2013-08-29 00:01:23,897 DEBUG 
[network.router.VirtualNetworkApplianceManagerImpl] (Job-Executor-13:job-27 = [ 
44e6f8d0-5761-48d4-bd5d-3b5ca97c6256 ]) Lock is acquired for network id 208 as 
a part of router startup in 
Dest[Zone(Id)-Pod(Id)-Cluster(Id)-Host(Id)-Storage(Volume(Id|Type-->Pool(Id))] 
: Dest[Zone(1)-Pod(1)-Cluster(1)-Host(1)-Storage(Volume(12|ROOT-->Pool(1))]
2013-08-29 00:01:23,913 DEBUG 
[network.router.VirtualNetworkApplianceManagerImpl] (Job-Executor-13:job-27 = [ 
44e6f8d0-5761-48d4-bd5d-3b5ca97c6256 ]) Lock is released for network id 208 as 
a part of router startup in 
Dest[Zone(Id)-Pod(Id)-Cluster(Id)-Host(Id)-Storage(Volume(Id|Type-->Pool(Id))] 
: Dest[Zone(1)-Pod(1)-Cluster(1)-Host(1)-Storage(Volume(12|ROOT-->Pool(1))]
2013-08-29 00:01:23,961 DEBUG [cloud.network.NetworkModelImpl] 
(Job-Executor-13:job-27 = [ 44e6f8d0-5761-48d4-bd5d-3b5ca97c6256 ]) Service 
SecurityGroup is not supported in the network id=208
2013-08-29 00:01:24,235 DEBUG [cloud.network.NetworkModelImpl] 
(Job-Executor-13:job-27 = [ 44e6f8d0-5761-48d4-bd5d-3b5ca97c6256 ]) Service 
SecurityGroup is not supported in the network id=208
2013-08-29 00:01:24,267 DEBUG 
[network.router.VirtualNetworkApplianceManagerImpl] (Job-Executor-13:job-27 = [ 
44e6f8d0-5761-48d4-bd5d-3b5ca97c6256 ]) Applying dhcp entry in network 
Ntwk[208|Guest|15]


Log snippet when only VR is enabled for network services :


2013-08-29 00:00:37,804 DEBUG 
[cloud.network.ExternalLoadBalancerDeviceManagerImpl] (Job-Executor-13:job-27 = 
[ 44e6f8d0-5761-48d4-bd5d-3b5ca97c6256 ]) External load balancer has 
implemented the guest network for account dom1Acc1(id = 3) with VLAN tag 1016
2013-08-29 00:00:37,811 DEBUG [cloud.network.NetworkManagerImpl] 
(Job-Executor-13:job-27 = [ 44e6f8d0-5761-48d4-bd5d-3b5ca97c6256 ]) Asking 
VirtualRouter to implemenet Ntwk[208|Guest|15]
2013-08-29 00:00:37,821 DEBUG 
[network.router.VirtualNetworkApplianceManagerImpl] (Job-Executor-13:job-27 = [ 
44e6f8d0-5761-48d4-bd5d-3b5ca97c6256 ]) Lock is acquired for network id 208 as 
a part of router startup in 
Dest[Zone(Id)-Pod(Id)-Cluster(Id)-Host(Id)-Storage(Volume(Id|Type-->Pool(Id))] 
: Dest[Zone(1)-Pod(1)-Cluster(1)-Host(1)-Storage(Volume(12|ROOT-->Pool(1))]
2013-08-29 00:00:37,824 DEBUG [cloud.api.ApiServlet] (catalina-exec-18:null) 
===END===  10.252.192.43 -- GET  
command=queryAsyncJobResult&jobId=44e6f8d0-5761-48d4-bd5d-3b5ca97c6256&response=json&sessionkey=BpQX%2Bm2wHlht3hu6ilJgLGF%2FaMw%3D&_=1377695193381

                
> [Performance][Enhancement] Avoid checking for providers that are not enabled 
> while creating network.
> ----------------------------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-2131
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-2131
>             Project: CloudStack
>          Issue Type: Improvement
>      Security Level: Public(Anyone can view this level - this is the 
> default.) 
>          Components: Network Controller
>    Affects Versions: 4.2.0
>         Environment: commit 81e1ba3bb406f9546f0d46ccbfa3fbbb35b762e2
>            Reporter: venkata swamybabu budumuru
>            Assignee: Koushik Das
>            Priority: Critical
>             Fix For: Future
>
>         Attachments: logs.tgz
>
>
> 1. Have an advanced zone with VR as provider configured.
> 2. create a Network using the default isolated network offering (which uses 
> VR as provider)
> 3. deploy a VM using the above network.
> Observations:
> (i) Currently, as part of prepare NIC, it is checking every provider that 
> cloudstack supports irrespective of what is enabled/configured for the 
> network.
> 2013-04-22 08:16:07,302 DEBUG [cloud.network.NetworkManagerImpl] 
> (Job-Executor-12:job-19) Asking JuniperSRX to prepare for 
> Nic[19-7-6cca3e52-9faf-4e57-93f3-91bbd45f1d56-10.1.1.127]
> 2013-04-22 08:16:07,308 DEBUG [cloud.network.NetworkManagerImpl] 
> (Job-Executor-12:job-19) Asking Netscaler to prepare for 
> Nic[19-7-6cca3e52-9faf-4e57-93f3-91bbd45f1d56-10.1.1.127]
> 2013-04-22 08:16:07,313 DEBUG [cloud.network.NetworkManagerImpl] 
> (Job-Executor-12:job-19) Asking F5BigIP to prepare for 
> Nic[19-7-6cca3e52-9faf-4e57-93f3-91bbd45f1d56-10.1.1.127]
> 2013-04-22 08:16:07,318 DEBUG [cloud.network.NetworkManagerImpl] 
> (Job-Executor-12:job-19) Asking CiscoNexus1000vVSM to prepare for 
> Nic[19-7-6cca3e52-9faf-4e57-93f3-91bbd45f1d56-10.1.1.127]
> 2013-04-22 08:16:07,318 DEBUG [cloud.network.NetworkManagerImpl] 
> (Job-Executor-12:job-19) Asking CiscoVNMC to prepare for 
> Nic[19-7-6cca3e52-9faf-4e57-93f3-91bbd45f1d56-10.1.1.127]
> 2013-04-22 08:16:07,324 DEBUG [cloud.network.NetworkManagerImpl] 
> (Job-Executor-12:job-19) Asking NiciraNvp to prepare for 
> Nic[19-7-6cca3e52-9faf-4e57-93f3-91bbd45f1d56-10.1.1.127]
> 2013-04-22 08:16:07,328 DEBUG [cloud.network.NetworkManagerImpl] 
> (Job-Executor-12:job-19) Asking MidoNetElement to prepare for 
> Nic[19-7-6cca3e52-9faf-4e57-93f3-91bbd45f1d56-10.1.1.127]
> 2013-04-22 08:16:07,334 DEBUG [cloud.network.NetworkManagerImpl] 
> (Job-Executor-12:job-19) Asking BigSwitchVnsElement to prepare for 
> Nic[19-7-6cca3e52-9faf-4e57-93f3-91bbd45f1d56-10.1.1.127]
> 2013-04-22 08:16:07,339 DEBUG [cloud.network.NetworkManagerImpl] 
> (Job-Executor-12:job-19) Asking VirtualRouter to prepare for 
> Nic[19-7-6cca3e52-9faf-4e57-93f3-91bbd45f1d56-10.1.1.127]
> 2013-04-22 08:16:21,131 DEBUG [cloud.network.NetworkManagerImpl] 
> (Job-Executor-12:job-19) Asking Ovs to prepare for 
> Nic[19-7-6cca3e52-9faf-4e57-93f3-91bbd45f1d56-10.1.1.127]
> 2013-04-22 08:16:21,131 DEBUG [cloud.network.NetworkManagerImpl] 
> (Job-Executor-12:job-19) Asking SecurityGroupProvider to prepare for 
> Nic[19-7-6cca3e52-9faf-4e57-93f3-91bbd45f1d56-10.1.1.127]
> 2013-04-22 08:16:21,141 DEBUG [cloud.network.NetworkManagerImpl] 
> (Job-Executor-12:job-19) Asking VpcVirtualRouter to prepare for 
> Nic[19-7-6cca3e52-9faf-4e57-93f3-91bbd45f1d56-10.1.1.127]
> (ii) In the latest release of cloudstack no. of such network providers list 
> has grown big and it is better to optimize this area of code to minimize time 
> in deploying/ addNicTo virtual machine.
> (iii) Did a quick test by removing the following tables and then deploying a 
> VM and it failed though the network is not using ASA service
> external_cisco_asa1000v_devices
> external_cisco_vnmc_devices
> network_asa1000v_map
> Caused by: com.cloud.utils.exception.CloudRuntimeException: DB Exception on: 
> com.mysql.jdbc.PreparedStatement@72c4f1e9: SELECT network_asa1000v_map.id, 
> network_asa1000v_map.network_id, network_asa1000v_map.asa1000v_id FROM 
> network_asa1000v_map WHERE network_asa1000v_map.network_id = 210  ORDER BY 
> RAND() LIMIT 1
>         at 
> com.cloud.utils.db.GenericDaoBase.searchIncludingRemoved(GenericDaoBase.java:415)
>         at 
> com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
>         at 
> com.cloud.utils.db.GenericDaoBase.searchIncludingRemoved(GenericDaoBase.java:350)
>         at 
> com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
>         at 
> com.cloud.utils.db.GenericDaoBase.findOneIncludingRemovedBy(GenericDaoBase.java:860)
>         at 
> com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
>         at 
> com.cloud.utils.db.GenericDaoBase.findOneBy(GenericDaoBase.java:871)
>         at 
> com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
>         at 
> com.cloud.network.dao.NetworkAsa1000vMapDaoImpl.findByNetworkId(NetworkAsa1000vMapDaoImpl.java:51)
>         at 
> com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
>         at 
> com.cloud.network.element.CiscoVnmcElement.prepare(CiscoVnmcElement.java:394)
>         at 
> com.cloud.network.NetworkManagerImpl.prepareElement(NetworkManagerImpl.java:1589)
>         at 
> com.cloud.network.NetworkManagerImpl.prepareNic(NetworkManagerImpl.java:1706)
>         at 
> com.cloud.network.NetworkManagerImpl.prepare(NetworkManagerImpl.java:1647)
>         at 
> com.cloud.vm.VirtualMachineManagerImpl.advanceStart(VirtualMachineManagerImpl.java:748)
>         ... 20 more
> Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 
> 'cloud.network_asa1000v_map' doesn't exist
>         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native 
> Method)
>         at 
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
>         at 
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>         at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
>         at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
>         at com.mysql.jdbc.Util.getInstance(Util.java:386)
>         at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1053)
>         at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4074)
>         at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4006)
>         at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2468)
>         at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2629)
>         at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2719)
>         at 
> com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2155)
>         at 
> com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:2318)
>         at 
> org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96)
>         at 
> org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96)
>         at 
> com.cloud.utils.db.GenericDaoBase.searchIncludingRemoved(GenericDaoBase.java:409)
>         ... 54 more
> 2013-04-22 07:53:17,109 DEBUG [cloud.async.AsyncJobManagerImpl] 
> (Job-Executor-11:job-18) Complete async job-18, jobStatus: 2, resultCode: 
> 530, result: Error Code: 534 Error text: Resource [Host:5] is unreachable: 
> Host 5: Unable to start instance due to DB Exception on: 
> com.mysql.jdbc.PreparedStatement@72c4f1e9: SELECT network_asa1000v_map.id, 
> network_asa1000v_map.network_id, network_asa1000v_map.asa1000v_id FROM 
> network_asa1000v_map WHERE network_asa1000v_map.network_id = 210  ORDER BY 
> RAND() LIMIT 1
> Attaching the vmops and api.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

Reply via email to