[ https://issues.apache.org/jira/browse/CLOUDSTACK-3969?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
shweta agarwal closed CLOUDSTACK-3969. -------------------------------------- Verified on latest build .Passed > Upgrade failed from 3.0.3 to 4.2 in KVM host with error 4.2.0 KVM SystemVm > template not found though systemvm-kvm-4.2 template is uploaded during 3.0.3 > setup > ------------------------------------------------------------------------------------------------------------------------------------------------------------- > > Key: CLOUDSTACK-3969 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-3969 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the > default.) > Components: Upgrade > Affects Versions: 4.2.0 > Environment: Environment : > KVM advance zone > Reporter: shweta agarwal > Assignee: Harikrishna Patnala > Priority: Blocker > Fix For: 4.2.0 > > > Installed MS , Usage server and database using M ,S ,D options respectively > Upgrade to 4.2 build using U option > Upgrade failed with exception > 2013-07-31 11:56:06,040 DEBUG [upgrade.dao.Upgrade410to420] (Timer-1:null) > Updating KVM System Vms > 2013-07-31 11:56:06,041 ERROR [cloud.upgrade.DatabaseUpgradeChecker] > (Timer-1:null) Unable to upgrade the database > com.cloud.utils.exception.CloudRuntimeException: 4.2.0 KVM SystemVm template > not found. Cannot upgrade system Vms > at > com.cloud.upgrade.dao.Upgrade410to420.updateSystemVmTemplates(Upgrade410to420.java:258) > at > com.cloud.upgrade.dao.Upgrade410to420.performDataMigration(Upgrade410to420.java:78) > at > com.cloud.upgrade.DatabaseUpgradeChecker.upgrade(DatabaseUpgradeChecker.java:280) > at > com.cloud.upgrade.DatabaseUpgradeChecker.check(DatabaseUpgradeChecker.java:405) > at > com.cloud.utils.component.ComponentContext.initComponentsLifeCycle(ComponentContext.java:90) > at > com.cloud.servlet.CloudStartupServlet$1.run(CloudStartupServlet.java:50) > at java.util.TimerThread.mainLoop(Timer.java:534) > at java.util.TimerThread.run(Timer.java:484) > 2013-07-31 11:56:06,049 DEBUG [db.Transaction.Transaction] (Timer-1:null) > Rolling back the transaction: Time = 4386 Name = null; called by > -Transaction.rollback:890-Transaction.removeUpTo:833-Transaction.close:657-DatabaseUpgradeChecker.upgrade:309-DatabaseUpgradeChecker.check:405-ComponentContext.initComponentsLifeCycle:90-CloudStartupServlet$1.run:50-TimerThread.mainLoop:534-TimerThread.run:484 > 2013-07-31 11:56:06,051 ERROR [utils.component.ComponentContext] > (Timer-1:null) System integrity che > I can see my Mysql version on MS host machine as > mysql -v > Welcome to the MySQL monitor. Commands end with ; or \g. > Your MySQL connection id is 119 > Server version: 5.1.69-log Source distribution > Though I have added systemvm-kvm in 3.0.3 setup only > MySql entries for the same: > "id" "unique_name" "name" "uuid" "public" "featured" "type" > "hvm" "bits" "url" "format" "created" "removed" > "account_id" "checksum" "display_text" "enable_password" > "enable_sshkey" "guest_os_id" "bootable" "prepopulate" "cross_zones" > "extractable" "hypervisor_type" "source_template_id" > "template_tag" "sort_key" "size" "state" "update_count" "updated" > "dynamically_scalable" > "1" "routing-1" "SystemVM Template (XenServer)" > "259e5a0a-f956-47fe-9c60-4022cbaaaaed" "0" "0" "SYSTEM" "0" > "64" > "http://download.cloud.com/templates/acton/acton-systemvm-02062012.vhd.bz2" > "VHD" "2013-07-30 23:41:49" "" "1" > "f613f38c96bf039f2e5cbf92fa8ad4f8" "SystemVM Template (XenServer)" "0" > "0" "15" "1" "0" "1" "0" "XenServer" "" "" > "0" "" "Allocated" "0" "" "0" > "2" "centos53-x86_64" "CentOS 5.3(64-bit) no GUI (XenServer)" > "367edd90-a803-4ef8-81f5-5fd1a22807d2" "1" "1" "BUILTIN" "0" > "64" > "http://download.cloud.com/templates/builtin/f59f18fb-ae94-4f97-afd2-f84755767aca.vhd.bz2" > "VHD" "2013-07-30 23:41:49" "2013-07-30 23:41:49" "1" > "b63d854a9560c013142567bbae8d98cf" "CentOS 5.3(64-bit) no GUI > (XenServer)" "0" "0" "12" "1" "0" "1" "1" > "XenServer" "" "" "0" "" "Allocated" "0" "" > "0" > "3" "routing-3" "SystemVM Template (KVM)" > "4ac975b6-0bf2-4671-b908-cc76deb251fb" "0" "0" "SYSTEM" "0" > "64" > "http://download.cloud.com/templates/acton/acton-systemvm-02062012.qcow2.bz2" > "QCOW2" "2013-07-30 23:41:49" "" "1" > "2755de1f9ef2ce4d6f2bee2efbb4da92" "SystemVM Template (KVM)" "0" > "0" "15" "1" "0" "1" "0" "KVM" "" "" "0" > "" "Allocated" "0" "" "0" > "4" "centos55-x86_64" "CentOS 5.5(64-bit) no GUI (KVM)" > "f81d8884-1afd-4b18-8fe9-01cfeb9414a2" "1" "1" "BUILTIN" "0" > "64" > "http://10.147.28.7/releases/2.2.0/eec2209b-9875-3c8d-92be-c001bd8a0faf.qcow2.bz2" > "QCOW2" "2013-07-30 23:41:49" "" "1" > "ed0e788280ff2912ea40f7f91ca7a249" "CentOS 5.5(64-bit) no GUI (KVM)" > "0" "0" "112" "1" "0" "1" "1" "KVM" "" "" > "0" "" "Allocated" "0" "" "0" > "5" "centos56-x86_64-xen" "CentOS 5.6(64-bit) no GUI (XenServer)" > "fe67e97e-68ae-4d4e-af00-bbfc9973cc97" "1" "1" "BUILTIN" "0" > "64" > "http://download.cloud.com/templates/builtin/centos56-x86_64.vhd.bz2" "VHD" > "2013-07-30 23:41:49" "" "1" "905cec879afd9c9d22ecc8036131a180" > "CentOS 5.6(64-bit) no GUI (XenServer)" "0" "0" "12" "1" > "0" "1" "1" "XenServer" "" "" "0" "" > "Allocated" "0" "" "1" > "7" "centos53-x64" "CentOS 5.3(64-bit) no GUI (vSphere)" > "fc121f0b-21eb-47aa-9d45-102a8d32edd2" "1" "1" "BUILTIN" "0" > "64" "http://download.cloud.com/releases/2.2.0/CentOS5.3-x86_64.ova" > "OVA" "2013-07-30 23:41:49" "" "1" > "f6f881b7f2292948d8494db837fe0f47" "CentOS 5.3(64-bit) no GUI (vSphere)" > "0" "0" "12" "1" "0" "1" "1" "VMware" "" > "" "0" "" "Allocated" "0" "" "0" > "8" "routing-8" "SystemVM Template (vSphere)" > "62c12851-2d36-4a63-863f-ecebcd4cb3fb" "0" "0" "SYSTEM" "0" > "32" > "http://download.cloud.com/templates/acton/acton-systemvm-02062012.ova" "OVA" > "2013-07-30 23:41:49" "" "1" "e72b21c9541d005600297cb92d241434" > "SystemVM Template (vSphere)" "0" "0" "15" "1" "0" > "1" "0" "VMware" "" "" "0" "" "Allocated" > "0" "" "1" > "9" "routing-9" "SystemVM Template (HyperV)" > "52b177f6-e807-4a4d-9c5a-2b25a67f54d3" "0" "0" "SYSTEM" "0" > "32" > "http://download.cloud.com/templates/acton/acton-systemvm-02062012.vhd.bz2" > "VHD" "2013-07-30 23:41:49" "" "1" > "f613f38c96bf039f2e5cbf92fa8ad4f8" "SystemVM Template (HyperV)" "0" > "0" "15" "1" "0" "1" "0" "Hyperv" "" "" > "0" "" "Allocated" "0" "" "0" > "10" "routing-10" "SystemVM Template (LXC)" > "13406bcc-f9aa-11e2-9083-068abe00002f" "0" "0" "SYSTEM" "0" > "64" > "http://download.cloud.com/templates/acton/acton-systemvm-02062012.qcow2.bz2" > "QCOW2" "2013-07-31 11:56:03" "" "1" > "2755de1f9ef2ce4d6f2bee2efbb4da92" "SystemVM Template (LXC)" "0" > "0" "15" "1" "0" "1" "0" "LXC" "" "" "0" > "" "Allocated" "0" "" "0" > "200" "xs-tools.iso" "xs-tools.iso" "cbf54e48-640f-492d-a903-0b9ced50770e" > "1" "1" "PERHOST" "1" "64" "" "ISO" "2013-07-30 > 12:51:36" "" "1" "" "xen-pv-drv-iso" "0" "0" > "1" "0" "0" "0" "1" "XenServer" "" "" "0" > "" "Allocated" "0" "" "0" > "201" "vmware-tools.iso" "vmware-tools.iso" > "5d2375d9-28df-442e-920f-951b3c21d38b" "1" "1" "PERHOST" "1" > "64" "" "ISO" "2013-07-30 12:51:36" "" "1" "" > "VMware Tools Installer ISO" "0" "0" "1" "0" "0" "0" > "1" "VMware" "" "" "0" "" "Allocated" "0" > "" "0" > "202" "202-2-81a564fd-580b-30ec-a9fe-8c076ef9af68" > "Windows2008R2HVM.qcow2" "c84eed04-233b-443b-b644-140274223ea1" "1" > "1" "USER" "1" "64" > "http://10.147.28.7/templates/Windows2008/Windows2008R2HVM.qcow2" > "QCOW2" "2013-07-31 04:59:43" "" "2" > "3940d3bddcc8777eceee3d59e455287a" "Windows2008R2HVM.qcow2" "0" > "0" "54" "1" "0" "1" "1" "KVM" "" "" "0" > "" "Allocated" "0" "" "0" > "203" "203-2-14d04708-4960-34c0-9a98-b1744dc1e95d" "systemvm-kvm-4.2 " > "fb6fcecd-aafb-4381-8714-4cfabb039fbe" "0" "0" "USER" "1" "64" > > "http://10.147.28.7/templates/campo/templates/New/systemvmtemplate-2013-07-14-master-kvm.qcow2.bz2" > "QCOW2" "2013-07-31 05:01:15" "" "2" > "658d01399bb4e7377363f937352829fd" "systemvm-kvm-4.2 " "0" "0" > "15" "1" "0" "1" "0" "KVM" "" "" "0" "" > "Allocated" "0" "" "0" > "204" "systemvm-vmware-3.0.5" "systemvm-vmware-3.0.5" "204" "1" "1" > "SYSTEM" "0" "64" "fake url" "fake format" "2013-07-31 > 11:55:50" "" "1" "" "fake text" "0" "0" "99" > "1" "0" "1" "0" "VMware" "" "" "0" "" > "Allocated" "0" "" "0" -- 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