cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Prachi Damle (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CLOUDSTACK-4668) Upgrade to 4.2 fails with NullPointerException when hypervisor_type is null for a cluster entry
Date Fri, 08 Nov 2013 19:36:19 GMT

    [ https://issues.apache.org/jira/browse/CLOUDSTACK-4668?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13817611#comment-13817611
] 

Prachi Damle commented on CLOUDSTACK-4668:
------------------------------------------

Manasa,

This was failing while upgrading to 4.2 - So any source version is fine as long as you upgrade
to 4.2

You will not be able to reproduce this as this was some faulty dogfood cluster entry. And
you wont really be having such an entry. You can manually change the db for some cluster and
test test it.




> Upgrade to 4.2 fails with NullPointerException when hypervisor_type is null for a cluster
entry
> -----------------------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-4668
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-4668
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: Management Server
>    Affects Versions: 4.2.1
>            Reporter: Prachi Damle
>            Assignee: Prachi Damle
>            Priority: Critical
>             Fix For: 4.2.1
>
>
> Error trace encountered while upgrading to 4.2:
> 2013-09-12 13:54:05,381 WARN  [upgrade.dao.Upgrade410to420] (Timer-2:null) 4.2.0 LXC
SystemVm template not found. LXC hypervisor is not used, so not failing upgrade
> 2013-09-12 13:54:05,384 DEBUG [upgrade.dao.Upgrade410to420] (Timer-2:null) Updating KVM
System Vms
> 2013-09-12 13:54:05,385 DEBUG [upgrade.dao.Upgrade410to420] (Timer-2:null) Updating Hyperv
System Vms
> 2013-09-12 13:54:05,386 WARN  [upgrade.dao.Upgrade410to420] (Timer-2:null) 4.2.0 Hyperv
SystemVm template not found. Hyperv hypervisor is not used, so not failing upgrade
> 2013-09-12 13:54:05,388 DEBUG [upgrade.dao.Upgrade410to420] (Timer-2:null) Updating VMware
System Vms
> 2013-09-12 13:54:05,389 WARN  [upgrade.dao.Upgrade410to420] (Timer-2:null) 4.2.0 VMware
SystemVm template not found. VMware hypervisor is not used, so not failing upgrade
> 2013-09-12 13:54:05,395 DEBUG [upgrade.dao.Upgrade410to420] (Timer-2:null) Updating XenServer
System Vms
> 2013-09-12 13:54:34,025 DEBUG [upgrade.dao.Upgrade410to420] (Timer-2:null) Updating System
Vm Template IDs Complete
> 2013-09-12 13:54:34,117 DEBUG [db.Transaction.Transaction] (Timer-2:null) Rolling back
the transaction: Time = 304222 Name =  -CloudStartupServlet$1.run:52-TimerThread.mainLoop:534-TimerThread.run:484;
called by -Transaction.rollback:898-Transaction.removeUpTo:841-Transaction.close:665-DatabaseUpgradeChecker.upgrade:293-DatabaseUpgradeChecker.check:389-ComponentContext.initComponentsLifeCycle:90-CloudStartupServlet$1.run:54-TimerThread.mainLoop:534-TimerThread.run:484
> 2013-09-12 13:54:51,212 ERROR [utils.component.ComponentContext] (Timer-2:null) System
integrity check failed. Refuse to startup
> java.lang.NullPointerException
>         at com.cloud.upgrade.dao.Upgrade410to420.updateCluster_details(Upgrade410to420.java:933)
>         at com.cloud.upgrade.dao.Upgrade410to420.performDataMigration(Upgrade410to420.java:89)
>         at com.cloud.upgrade.DatabaseUpgradeChecker.upgrade(DatabaseUpgradeChecker.java:264)
>         at com.cloud.upgrade.DatabaseUpgradeChecker.check(DatabaseUpgradeChecker.java:389)
>         at com.cloud.utils.component.ComponentContext.initComponentsLifeCycle(ComponentContext.java:90)
>         at com.cloud.servlet.CloudStartupServlet$1.run(CloudStartupServlet.java:54)
>         at java.util.TimerThread.mainLoop(Timer.java:534)
>         at java.util.TimerThread.run(Timer.java:484)
> 2013-09-12 13:58:01,213 INFO  [context.support.XmlWebApplicationContext] (Thread-19:null)
Closing Root WebApplicationContext: startup date [Thu Sep 12 13:39:27 PDT 2013]; root of context
hierarchy
> 2013-09-12 13:58:01,215 INFO  [factory.support.DefaultListableBeanFactory] (Thread-19:null)
Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@639d0e0b:
defining beans [org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,componentContext,transactionContextBuilder,actionEventInterceptor,instantiatePostProcessor,onwireRegistry,messageSerializer,transportProvider,rpcProvider,messageBus,serviceOfferingDaoImpl,diskOfferingDaoImpl,dataCenterDaoImpl,hostPodDaoImpl,vlanDaoImpl,userDaoImpl,VMTemplateDaoImpl,hypervisorCapabilitiesDaoImpl,dedicatedResourceDaoImpl,accountDaoImpl,accountDetailsDaoImpl,accountJoinDaoImpl,accountGuestVlanMapDaoImpl,accountVlanMapDaoImpl,alertDaoImpl,asyncJobDaoImpl,asyncJobJoinDaoImpl,autoScalePolicyConditionMapDaoImpl,autoScalePolicyDaoImpl,autoScaleVmGroupDaoImpl,autoScaleVmGroupPolicyMapDaoImpl,autoScaleVmProfileDaoImpl,capacityDaoImpl,certificateDaoImpl,clusterDaoImpl,clusterDetailsDaoImpl,clusterVSMMapDaoImpl,commandExecLogDaoImpl,conditionDaoImpl,consoleProxyDaoImpl,counterDaoImpl,dataCenterIpAddressDaoImpl,dataCenterJoinDaoImpl,dataCenterLinkLocalIpAddressDaoImpl,dataCenterVnetDaoImpl,dcDetailsDaoImpl,engineDcDetailsDaoImpl,diskOfferingJoinDaoImpl,domainDaoImpl,domainRouterDaoImpl,domainRouterJoinDaoImpl,elasticLbVmMapDaoImpl,engineClusterDaoImpl,engineDataCenterDaoImpl,engineHostDaoImpl,engineHostPodDaoImpl,eventDaoImpl,eventJoinDaoImpl,externalFirewallDeviceDaoImpl,externalLoadBalancerDeviceDaoImpl,externalPublicIpStatisticsDaoImpl,firewallRulesCidrsDaoImpl,firewallRulesDaoImpl,globalLoadBalancerDaoImpl,globalLoadBalancerLbRuleMapDaoImpl,guestOSCategoryDaoImpl,guestOSDaoImpl,guestOSHypervisorDaoImpl,highAvailabilityDaoImpl,hostDaoImpl,engineHostDetailsDaoImpl,hostDetailsDaoImpl,hostJoinDaoImpl,engineHostTagsDaoImpl,hostTagsDaoImpl,hostTransferMapDaoImpl,iPAddressDaoImpl,identityDaoImpl,imageStoreDaoImpl,imageStoreDetailsDaoImpl,imageStoreJoinDaoImpl,snapshotDataStoreDaoImpl,templateDataStoreDaoImpl,templateJoinDaoImpl,volumeDataStoreDaoImpl,inlineLoadBalancerNicMapDaoImpl,instanceGroupDaoImpl,instanceGroupJoinDaoImpl,instanceGroupVMMapDaoImpl,itWorkDaoImpl,keystoreDaoImpl,lBHealthCheckPolicyDaoImpl,lBStickinessPolicyDaoImpl,launchPermissionDaoImpl,loadBalancerDaoImpl,loadBalancerVMMapDaoImpl,managementServerHostDaoImpl,managementServerHostPeerDaoImpl,networkAccountDaoImpl,networkACLDaoImpl,networkACLItemDaoImpl,networkDaoImpl,networkDomainDaoImpl,networkExternalFirewallDaoImpl,networkExternalLoadBalancerDaoImpl,networkOfferingDaoImpl,networkOfferingServiceMapDaoImpl,networkOpDaoImpl,networkRuleConfigDaoImpl,networkServiceMapDaoImpl,nicDaoImpl,nicDetailDaoImpl,nicSecondaryIpDaoImpl,nicIpAliasDaoImpl,objectInDataStoreDaoImpl,ovsTunnelInterfaceDaoImpl,ovsTunnelNetworkDaoImpl,physicalNetworkDaoImpl,physicalNetworkIsolationMethodDaoImpl,physicalNetworkServiceProviderDaoImpl,physicalNetworkTagDaoImpl,physicalNetworkTrafficTypeDaoImpl,podVlanDaoImpl,podVlanMapDaoImpl,PortableIpDaoImpl,PortableIpRangeDaoImpl,portForwardingRulesDaoImpl,portProfileDaoImpl,primaryDataStoreDaoImpl,primaryDataStoreDetailsDaoImpl,privateIpDaoImpl,projectAccountDaoImpl,projectAccountJoinDaoImpl,projectDaoImpl,projectInvitationDaoImpl,projectInvitationJoinDaoImpl,projectJoinDaoImpl,regionDaoImpl,remoteAccessVpnDaoImpl,resourceCountDaoImpl,resourceLimitDaoImpl,resourceTagJoinDaoImpl,resourceTagsDaoImpl,routerNetworkDaoImpl,sSHKeyPairDaoImpl,secondaryStorageVmDaoImpl,securityGroupDaoImpl,securityGroupJoinDaoImpl,securityGroupRuleDaoImpl,securityGroupRulesDaoImpl,securityGroupVMMapDaoImpl,securityGroupWorkDaoImpl,serviceOfferingJoinDaoImpl,site2SiteCustomerGatewayDaoImpl,site2SiteVpnConnectionDaoImpl,site2SiteVpnGatewayDaoImpl,snapshotDaoImpl,snapshotPolicyDaoImpl,snapshotScheduleDaoImpl,staticRouteDaoImpl,storageNetworkIpAddressDaoImpl,storageNetworkIpRangeDaoImpl,storagePoolDetailsDaoImpl,storagePoolHostDaoImpl,storagePoolJoinDaoImpl,storagePoolWorkDaoImpl,syncQueueDaoImpl,syncQueueItemDaoImpl,templatePrimaryDataStoreDaoImpl,uploadDaoImpl,usageDaoImpl,usageEventDaoImpl,usageIPAddressDaoImpl,usageJobDaoImpl,usageLoadBalancerPolicyDaoImpl,usageNetworkDaoImpl,usageNetworkOfferingDaoImpl,usagePortForwardingRuleDaoImpl,usageSecurityGroupDaoImpl,usageStorageDaoImpl,usageVMInstanceDaoImpl,usageVPNUserDaoImpl,usageVolumeDaoImpl,usageVmDiskDaoImpl,userAccountDaoImpl,userAccountJoinDaoImpl,userIpv6AddressDaoImpl,userStatisticsDaoImpl,userStatsLogDaoImpl,userVmDiskStatsDaoImpl,userVmCloneSettingDaoImpl,userVmDaoImpl,userVmDetailsDaoImpl,userVmJoinDaoImpl,vMComputeTagDaoImpl,vMEntityDaoImpl,vMInstanceDaoImpl,vMNetworkMapDaoImpl,vMReservationDaoImpl,vMRootDiskTagDaoImpl,vMSnapshotDaoImpl,vMTemplateDetailsDaoImpl,vMTemplateHostDaoImpl,vMTemplatePoolDaoImpl,vMTemplateZoneDaoImpl,versionDaoImpl,virtualRouterProviderDaoImpl,vmRulesetLogDaoImpl,volumeDaoImpl,volumeDetailsDaoImpl,volumeHostDaoImpl,volumeJoinDaoImpl,volumeReservationDaoImpl,vpcDaoImpl,vpcGatewayDaoImpl,vpcOfferingDaoImpl,vpcOfferingServiceMapDaoImpl,vpcServiceMapDaoImpl,vpnUserDaoImpl,applicationLbRuleDaoImpl,networkOfferingDetailsDaoImpl,serviceOfferingDetailsDaoImpl,encryptionSecretKeyChecker,StaticRoleBasedAPIAccessChecker,databaseIntegrityChecker,domainChecker,affinityGroupAccessChecker,basicAgentAuthManager,MD5UserAuthenticator,LDAPUserAuthenticator,SHA256SaltedUserAuthenticator,PlainTextUserAuthenticator,Ovs,SecurityGroupProvider,VirtualRouter,VpcVirtualRouter,elasticLoadBalancerElement,InternalLbVm,firstFitAllocator,randomAllocator,FirstFitRouting,LocalStoragePoolAllocator,clusterScopeStoragePoolAllocator,zoneWideStoragePoolAllocator,garbageCollectingStoragePoolAllocator,UserConcentratedAllocator,recreatableFencer,recreateHostAllocator,secondaryStorageVmDefaultAllocator,ConsoleProxyAllocator,ExternalIpAddressAllocator,hypervisorTemplateAdapter,clusterAlertAdapter,consoleProxyAlertAdapter,secondaryStorageVmAlertAdapter,clusterServiceServletAdapter,CheckOnAgentInvestigator,XenServerInvestigator,KVMInvestigator,UserVmDomRInvestigator,ManagementIPSystemVMInvestigator,XenServerFencer,KVMFencer,OvmFencer,XcpServerDiscoverer,SecondaryStorageDiscoverer,KvmServerDiscoverer,LxcServerDiscoverer,OvmDiscoverer,dummyHostDiscoverer,UserDispersingPlanner,UserConcentratedPodPlanner,ImplicitDedicationPlanner,clusterBasedAgentLoadBalancerPlanner,StorageNetworkGuru,ExternalGuestNetworkGuru,PublicNetworkGuru,PodBasedNetworkGuru,ControlNetworkGuru,DirectNetworkGuru,DirectPodBasedNetworkGuru,OvsGuestNetworkGuru,PrivateNetworkGuru,XenServerGuru,KVMGuru,LXCGuru,OvmGuru,iSCSI,networkFileSystem,ISO,OVA,QCOW2,VHD,unknown,snapshotServiceImpl,templateServiceImpl,volumeServiceImpl,xenserverSnapshotStrategy,templateDataFactoryImpl,snapshotDataFactoryImpl,volumeDataFactoryImpl,objectInDataStoreManagerImpl,dataObjectManagerImpl,primaryDataStoreHelper,imageStoreHelper,imageFormatHelper,storageCacheRandomAllocator,storageCacheManagerImpl,StorageCacheReplacementAlgorithm,snapshotStateMachineManagerImpl,defaultEndPointSelector,ancientDataMotionStrategy,xenserverStorageMotionStrategy,dataMotionServiceImpl,primaryDataStoreProviderMgr,imageStoreProviderMgr,dataStoreManagerImpl,cloudStackPrimaryDataStoreProviderImpl,dataStoreProviderManager,accountManagerImpl,managementServerImpl,storageManagerImpl,FirstFitPlanner,resourceManagerImpl,highAvailabilityManagerExtImpl,clusteredVirtualMachineManagerImpl,networkManagerImpl,networkModelImpl,configurationServerImpl,clusterManagerImpl,clusteredAgentManagerImpl,userVmManagerImpl,consoleProxyManagerImpl,securityGroupManagerImpl2,premiumSecondaryStorageManagerImpl,ipv6AddressManagerImpl,apiRateLimitServiceImpl,alertManagerImpl,asyncJobExecutorContextImpl,asyncJobManagerImpl,autoScaleManagerImpl,capacityManagerImpl,clusterFenceManagerImpl,configurationManagerImpl,elasticLoadBalancerManagerImpl,entityManagerImpl,externalDeviceUsageManagerImpl,externalNetworkDeviceManagerImpl,firewallManagerImpl,hypervisorGuruManagerImpl,identityServiceImpl,keystoreManagerImpl,loadBalancingRulesManagerImpl,networkACLManagerImpl,networkACLServiceImpl,networkServiceImpl,networkUsageManagerImpl,oCFS2ManagerImpl,ovsTunnelManagerImpl,projectManagerImpl,queryManagerImpl,regionManagerImpl,regionServiceImpl,remoteAccessVpnManagerImpl,resourceLimitManagerImpl,rulesManagerImpl,site2SiteVpnManagerImpl,snapshotManagerImpl,snapshotSchedulerImpl,storageNetworkManagerImpl,syncQueueManagerImpl,taggedResourceManagerImpl,resourceMetaDataManagerImpl,templateManagerImpl,uploadMonitorImpl,usageServiceImpl,virtualNetworkApplianceManagerImpl,vpcManagerImpl,vpcVirtualNetworkApplianceManagerImpl,actionEventUtils,agentMonitor,alertGenerator,apiDBUtils,apiDiscoveryServiceImpl,apiDispatcher,apiResponseHelper,apiServer,apiServlet,bAREMETAL,cloudOrchestrator,clusterRestService,consoleProxyServlet,dataCenterResourceManagerImpl,dataDisk,podRestService,iso,networkRestService,provisioningServiceImpl,rootDisk,registerCompleteServlet,statsCollector,storagePoolAutomationImpl,usageEventUtils,userContextInitializer,vMEntityManagerImpl,virtualMachineEntityFactory,virtualMachineEntityImpl,virtualMachineRestService,volumeRestService,volumeTypeHelper,zoneRestService,cloudZonesStartupProcessor,managementServerNode,testingAllocator,domainManagerImpl,downloadMonitorImpl,lBHealthCheckManagerImpl,volumeManagerImpl,ApplicationLoadBalancerService,InternalLoadBalancerVMManager,vMSnapshotManagerImpl,BareMetalDhcp,BareMetalPxe,BareMetalUserdata,BareMetalTemplateAdapter,BareMetalDiscoverer,BareMetalPlanner,BaremetalGuru,BaremetalManager,BaremetalDhcpManager,BaremetalKickStartPxeService,BaremetalPingPxeService,BaremetalPxeManager,BAREMETAL,baremetalDhcpDaoImpl,baremetalPxeDaoImpl,UcsManager,AffinityGroupServiceImpl,DeploymentPlanningManager,AffinityGroupJoinDaoImpl,AffinityGroupDaoImpl,AffinityGroupVMMapDaoImpl,AffinityGroupDomainMapDaoImpl,PlannerHostReservationDaoImpl,DatabaseUpgradeChecker,GlobalLoadBalancingRulesServiceImpl,configurationDaoImpl,VmwareFencer,vmwareServerDiscoverer,VMwareGuru,VmwareInvestigator,VmwareManager,vmwareContextFactory,VmwareDatacenterDaoImpl,VmwareDatacenterZoneMapDaoImpl,LegacyZoneDaoImpl,niciraNvpDaoImpl,niciraNvpNicMappingDaoImpl,niciraNvpRouterMappingDaoImpl,NiciraNvpGuestNetworkGuru,NiciraNvp,lunDaoImpl,poolDaoImpl,netappVolumeDaoImpl,NetappManager,JuniperSRX,netScalerPodDaoImpl,Netscaler,F5BigIP,ciscoNexusVSMDeviceDaoImpl,CiscoNexus1000vVSM,ciscoVnmcDaoImpl,ciscoAsa1000vDaoImpl,networkAsa1000vMapDaoImpl,CiscoVNMC,ucsBladeDaoImpl,ucsManagerDaoImpl,vmwareStorageMotionStrategy,cloudStackImageStoreProviderImpl,s3ImageStoreProviderImpl,swiftImageStoreProviderImpl,solidFireDataStoreProvider,userAuthenticators,userPasswordEncoders,securityCheckers,resourceDiscoverers,haInvestigators,haFenceBuilders,deploymentPlanners,podAllocators,hostAllocators,storagePoolAllocators,ipDeployers,dhcpProviders,networkGurus,networkElements,HostAntiAffinityProcessor,affinityProcessors,DedicatedResourceManagerImpl,ExplicitDedicationProcessor,org.springframework.context.annotation.ConfigurationClassPostProcessor$ImportAwareBeanPostProcessor#0];
root of factory hierarchy



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message