Return-Path: X-Original-To: apmail-cloudstack-users-archive@www.apache.org Delivered-To: apmail-cloudstack-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 36AF51017B for ; Wed, 25 Sep 2013 12:29:43 +0000 (UTC) Received: (qmail 21584 invoked by uid 500); 25 Sep 2013 11:41:23 -0000 Delivered-To: apmail-cloudstack-users-archive@cloudstack.apache.org Received: (qmail 21524 invoked by uid 500); 25 Sep 2013 11:41:21 -0000 Mailing-List: contact users-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@cloudstack.apache.org Delivered-To: mailing list users@cloudstack.apache.org Received: (qmail 21486 invoked by uid 99); 25 Sep 2013 11:41:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Sep 2013 11:41:17 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [209.85.192.178] (HELO mail-pd0-f178.google.com) (209.85.192.178) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Sep 2013 11:41:10 +0000 Received: by mail-pd0-f178.google.com with SMTP id w10so5964543pde.37 for ; Wed, 25 Sep 2013 04:40:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=7sQ8Ym6BfrosPoXmL6IgNtqtNLlEhSx5ca3HF//u/Lw=; b=X46gsqYU28lPtRxY+2e884E9WWd3KOFv9HAia1ZKB5Cy8TRbsKfXghx8I+NpjhZNLx 7m0tZLKSuyGFvQ8hDRgC20Jh+DqpJlRjrqIL/i0R6dDGNAPyyhy+6NpbCs0YoDT19ldM le2XCz3i0So8svlUFkd6hNYko3IPrYc48jIpgb3FGxLVS5H1GQ0BqzBH6/K0BHSxjvO5 Gfzj209fxCTCiXYU7FZ0GqSiPohbug6QljaTWdmBiXAXMsxebLS/MMqLaKpy2WLFgV6l CNi+wz1nHQlywEmA+q7IE+1MfYkJDfv3MyMHIFX4iBV853lQELMPP8n3adGxNqo1ZMh3 SEmQ== X-Gm-Message-State: ALoCoQlisOOZmztsf3TBEycOnG0CZJWLHISSIN6APBCgdYns5mUoclewmxe4JXJU/+Wyfk5cOA2P MIME-Version: 1.0 X-Received: by 10.68.129.201 with SMTP id ny9mr33136899pbb.70.1380109249012; Wed, 25 Sep 2013 04:40:49 -0700 (PDT) Received: by 10.70.75.226 with HTTP; Wed, 25 Sep 2013 04:40:48 -0700 (PDT) Date: Wed, 25 Sep 2013 19:40:48 +0800 Message-ID: Subject: Upgrade failed because system VM was created using old template? From: Indra Pramana To: "dev@cloudstack.apache.org" , "users@cloudstack.apache.org" Content-Type: multipart/alternative; boundary=047d7b10cae589faee04e733b9bb X-Virus-Checked: Checked by ClamAV on apache.org --047d7b10cae589faee04e733b9bb Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Dear all, I scrutinized the CloudStack management logs during my failed upgrade attempt from CloudStack 4.1.1 to 4.2.0 and found this on the log: =3D=3D=3D 2013-09-24 02:53:56,029 DEBUG [cloud.storage.VolumeManagerImpl] (secstorage-1:null) Checking if we need to prepare 1 volumes for VM[SecondaryStorageVm|s-1979-VM] 2013-09-24 02:53:56,044 DEBUG [storage.image.TemplateDataFactoryImpl] (secstorage-1:null) template 3 is already in store:27, type:Image 2013-09-24 02:53:56,069 DEBUG [storage.datastore.PrimaryDataStoreImpl] (secstorage-1:null) Not found (templateId:3poolId:214) in template_spool_ref, persisting it 2013-09-24 02:53:56,092 DEBUG [storage.image.TemplateDataFactoryImpl] (secstorage-1:null) template 3 is already in store:214, type:Primary 2013-09-24 02:53:56,095 DEBUG [storage.volume.VolumeServiceImpl] (secstorage-1:null) Found template routing-3 in storage pool 214 with VMTemplateStoragePool id: 76 2013-09-24 02:53:56,105 DEBUG [storage.volume.VolumeServiceImpl] (secstorage-1:null) Acquire lock on VMTemplateStoragePool 76 with timeout 3600 seconds 2013-09-24 02:53:56,113 INFO [storage.volume.VolumeServiceImpl] (secstorage-1:null) lock is acquired for VMTemplateStoragePool 76 2013-09-24 02:53:56,141 DEBUG [storage.motion.AncientDataMotionStrategy] (secstorage-1:null) copyAsync inspecting src type TEMPLATE copyAsync inspecting dest type TEMPLATE 2013-09-24 02:53:56,168 DEBUG [agent.transport.Request] (secstorage-1:null) Seq 37-1888026692: Sending { Cmd , MgmtId: 161342671900, via: 37, Ver: v1, Flags: 100111, [ {"org.apache.cloudstack.storage.command.CopyCommand":{"srcTO":{"org.apache.= cloudstack.storage.to.TemplateObjectTO":{"path":"template/tmpl/1/3//425b9e5= a-fbc7-4637-a33a-fe9d0ed4fa98.qcow2","origUrl":" http://download.cloud.com/templates/acton/acton-systemvm-02062012.qcow2.bz2 ","uuid":"396d8a45-ea18-11e2-8050-6e875929c251","id":3,"format" :"QCOW2","accountId":1,"checksum":"2755de1f9ef2ce4d6f2bee2efbb4da92","hvm":= false,"displayText":"SystemVM Template (KVM)","imageDataStore":{"com.cloud.agent.api.to.NfsTO":{"_url":"nfs:// 10.237.11.31/mnt/vol1/sec-storage ","_role":"Image"}},"name":"routing-3","hypervisorType":"KVM"}},"destTO":{"= org.apache.cloudstack.storage.to.TemplateObjectTO":{"origUrl":" http://download.cloud.com/templates/acton/acton-systemvm-02062012.qcow2.bz2= ","uuid":"396d8a45-ea18-11e2-8050-6e875929c251","id":3,"format":"QCOW2","ac= countId":1,"checksum":"2755de1f9ef2ce4d6f2bee2efbb4da92","hvm":false,"displ= ayText":"SystemVM Template (KVM)","imageDataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStore= TO":{"uuid":"d433809b-01ea-3947-ba0f-48077244e4d6","id":214,"poolType":"RBD= ","host":"xxx","path":"xxx","port":6789}},"name":"routing-3","hypervisorTyp= e":"KVM"}},"executeInSequence":true,"wait":10800}}] } =3D=3D=3D It seems that after the upgrade, the CloudStack management server tries to create the system VMs using the old template rather than the new 4.2 template. I did use the wrong filename when registering the template (systemvm-kvm-4.2.0 instead of systemvm-kvm-4.2) due to wrong information given by Abhinav but I have since corrected it prior to the upgrade, by renaming the template name (rather than deleting the template and re-register it). My questions: 1. Do I need to get the template name right when I register the systemvm-kvm-4.2 template from the beginning, prior to the upgrade? 2. Do I need to delete the old system VM template from the template list, prior to the upgrade? If yes, I think this should be inside the documentation. Looking forward to your reply, thank you. Cheers. --047d7b10cae589faee04e733b9bb--