Return-Path: X-Original-To: apmail-cloudstack-dev-archive@www.apache.org Delivered-To: apmail-cloudstack-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8ED6C10597 for ; Thu, 5 Sep 2013 18:43:45 +0000 (UTC) Received: (qmail 42952 invoked by uid 500); 5 Sep 2013 18:43:44 -0000 Delivered-To: apmail-cloudstack-dev-archive@cloudstack.apache.org Received: (qmail 42254 invoked by uid 500); 5 Sep 2013 18:43:43 -0000 Mailing-List: contact dev-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list dev@cloudstack.apache.org Received: (qmail 42245 invoked by uid 99); 5 Sep 2013 18:43:43 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Sep 2013 18:43:43 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of seizadi@infoblox.com designates 205.234.19.209 as permitted sender) Received: from [205.234.19.209] (HELO mx1.infoblox.com) (205.234.19.209) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Sep 2013 18:43:36 +0000 X-ASG-Debug-ID: 1378406591-0454fc7d0c7410c0001-AbHazq Received: from x2008hub1.infoblox.com (x2008hub1.infoblox.com [205.234.19.248]) by mx1.infoblox.com with ESMTP id QS6sLnZPH6G81YUE for ; Thu, 05 Sep 2013 11:43:11 -0700 (PDT) X-Barracuda-Envelope-From: seizadi@infoblox.com X-Barracuda-Apparent-Source-IP: 205.234.19.248 Received: from X2008MB1.infoblox.com ([fe80::cc0b:9da5:6863:8541]) by x2008hub1.infoblox.com ([fe80::a3:8989:52dd:1d09%10]) with mapi id 14.02.0298.004; Thu, 5 Sep 2013 11:43:11 -0700 From: Soheil Eizadi To: "dev@cloudstack.apache.org" Subject: RE: Template Problem Thread-Topic: Template Problem X-ASG-Orig-Subj: RE: Template Problem Thread-Index: Ac6k/K83XYTzcJSuRnuE0vAsATVegQAPZawA//+LMoCAAIB0AIAAt4qsgAACZACAAABjqIAJdKIAgAAS42Q= Date: Thu, 5 Sep 2013 18:43:10 +0000 Message-ID: <6717EC2E5A665A40A5AF626D7D4FA90625E256ED@x2008mb1.infoblox.com> References: <6717EC2E5A665A40A5AF626D7D4FA90625E2373E@x2008mb1.infoblox.com>, In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.102.29.226] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Barracuda-Connect: x2008hub1.infoblox.com[205.234.19.248] X-Barracuda-Start-Time: 1378406591 X-Barracuda-URL: http://205.234.19.209:8000/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at infoblox.com X-Barracuda-BRTS-Status: 1 X-Barracuda-Spam-Score: 0.00 X-Barracuda-Spam-Status: No, SCORE=0.00 using global scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=9.0 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.2.140369 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-Virus-Checked: Checked by ClamAV on apache.org Hi Min,=0A= Your timing is good, today I worked on this setup some more and figured out= what is going on with it. I made some changes to it and so it is not exact= ly what I documented before but the problem is still there.=0A= =0A= I removed the Secondary Storage from my system and installed a new secondar= y storage with just the SystemVM template on it, to see if that would fix t= he problem, but I still had the problem :(=0A= =0A= If there is a Wiki page on this area that would be helpful, I am slowly com= ing up to speed looking at the code and becoming more familiar it. The GUI = calls list templates with the templatefilter set to all. There is a bunch o= f logic searching the template based on lots of knobs but mostly it boils d= own to displaying what is in template_view which before I changed the secon= dary storage and now with the new secondary storage, only has the ISO in it= and that is why it not showing any templates in the GUI. (mysql dump below= .)=0A= =0A= Since I deleted the secondary storage, TemplateServiceImpl detected and rei= nstalled the tinyLinux image in it, and it is in the Ready state in templat= e_store_ref (mysql dump below.)=0A= =0A= There was a change to template_view where it only displays items if vm_temp= late.state=3D'Active', the state of the tinyLinux is 'Allocated'. (mysql du= mp below.)=0A= =0A= I updated it manually to Active:=0A= mysql> update vm_template set state=3D'Active' where id=3D5;=0A= =0A= This fixed the template_view display to show the tinyLinux in template_view= and fixed the GUI. Now the question is why is it not set to Active? May be= it was never set to Active as the clause to display based on "vm_template.= state=3D'Active';" came into the system from schema-420to430.sql.=0A= =0A= Hope this helps,=0A= -Soheil=0A= =0A= mysql> select * from vm_template;=0A= +-----+-----------------+---------------------------------------+----------= ----------------------------+--------+----------+---------+-----+------+---= ---------------------------------------------------------------------------= ------------+--------+---------------------+---------------------+---------= ---+----------------------------------+------------------------------------= ---+-----------------+---------------+-------------+----------+------------= -+-------------+-------------+-----------------+--------------------+------= --------+----------+-----------+-----------+--------------+---------+------= ----------------+=0A= | id | unique_name | name | uuid = | public | featured | type | hvm | bits | ur= l = | 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 | templ= ate_tag | sort_key | size | state | update_count | updated | dynam= ically_scalable |=0A= +-----+-----------------+---------------------------------------+----------= ----------------------------+--------+----------+---------+-----+------+---= ---------------------------------------------------------------------------= ------------+--------+---------------------+---------------------+---------= ---+----------------------------------+------------------------------------= ---+-----------------+---------------+-------------+----------+------------= -+-------------+-------------+-----------------+--------------------+------= --------+----------+-----------+-----------+--------------+---------+------= ----------------+=0A= | 1 | routing-1 | SystemVM Template (XenServer) | db876372-= 11c1-11e3-b37b-005056aec95c | 0 | 0 | SYSTEM | 0 | 32 | ht= tp://download.cloud.com/templates/4.2/systemvmtemplate-2013-06-12-master-xe= n.vhd.bz2 | VHD | 2013-08-30 15:16:46 | NULL | = 1 | fb1b6e032a160d86f2c28feb5add6d83 | SystemVM Template (XenServer) = | 0 | 0 | 183 | 1 | 0= | 1 | 0 | XenServer | NULL | NULL = | 0 | 276162048 | Allocated | 0 | NULL | = 0 |=0A= | 2 | centos53-x86_64 | CentOS 5.3(64-bit) no GUI (XenServer) | db876c46-= 11c1-11e3-b37b-005056aec95c | 1 | 1 | BUILTIN | 0 | 64 | ht= tp://download.cloud.com/templates/builtin/f59f18fb-ae94-4f97-afd2-f84755767= aca.vhd.bz2 | VHD | 2013-08-30 15:16:46 | 2013-08-30 15:16:46 | = 1 | b63d854a9560c013142567bbae8d98cf | CentOS 5.3(64-bit) no GUI (XenServe= r) | 0 | 0 | 12 | 1 | 0= | 1 | 1 | XenServer | NULL | NULL = | 0 | NULL | Allocated | 0 | NULL | = 0 |=0A= | 3 | routing-3 | SystemVM Template (KVM) | db87748e-= 11c1-11e3-b37b-005056aec95c | 0 | 0 | SYSTEM | 0 | 64 | ht= tp://download.cloud.com/templates/4.2/systemvmtemplate-2013-06-12-master-kv= m.qcow2.bz2 | QCOW2 | 2013-08-30 15:16:46 | NULL | = 1 | 6cea42b2633841648040becb588bd8f0 | SystemVM Template (KVM) = | 0 | 0 | 15 | 1 | 0= | 1 | 0 | KVM | NULL | NULL = | 0 | NULL | Allocated | 0 | NULL | = 0 |=0A= | 4 | centos55-x86_64 | CentOS 5.5(64-bit) no GUI (KVM) | db877c40-= 11c1-11e3-b37b-005056aec95c | 1 | 1 | BUILTIN | 0 | 64 | ht= tp://download.cloud.com/releases/2.2.0/eec2209b-9875-3c8d-92be-c001bd8a0faf= .qcow2.bz2 | QCOW2 | 2013-08-30 15:16:46 | NULL | = 1 | ed0e788280ff2912ea40f7f91ca7a249 | CentOS 5.5(64-bit) no GUI (KVM) = | 0 | 0 | 112 | 1 | 0= | 1 | 1 | KVM | NULL | NULL = | 0 | NULL | Allocated | 0 | NULL | = 0 |=0A= | 5 | tiny Linux | tiny Linux | db8783e8-= 11c1-11e3-b37b-005056aec95c | 1 | 1 | BUILTIN | 0 | 64 | ht= tp://people.apache.org/~bhaisaab/vms/ttylinux_pv.vhd = | VHD | 2013-08-30 15:16:46 | NULL | = 1 | 046e134e642e6d344b34648223ba4bc1 | tiny Linux = | 0 | 0 | 12 | 1 | 0= | 1 | 1 | XenServer | NULL | NULL = | 0 | 52428800 | Allocated | 0 | NULL | = 1 |=0A= | 7 | centos53-x64 | CentOS 5.3(64-bit) no GUI (vSphere) | db878b86-= 11c1-11e3-b37b-005056aec95c | 1 | 1 | BUILTIN | 0 | 64 | ht= tp://download.cloud.com/releases/2.2.0/CentOS5.3-x86_64.ova = | OVA | 2013-08-30 15:16:46 | NULL | = 1 | f6f881b7f2292948d8494db837fe0f47 | CentOS 5.3(64-bit) no GUI (vSphere)= | 0 | 0 | 12 | 1 | 0= | 1 | 1 | VMware | NULL | NULL = | 0 | NULL | Allocated | 0 | NULL | = 0 |=0A= | 8 | routing-8 | SystemVM Template (vSphere) | db879310-= 11c1-11e3-b37b-005056aec95c | 0 | 0 | SYSTEM | 0 | 32 | ht= tp://download.cloud.com/templates/4.2/systemvmtemplate-4.2-vh7.ova = | OVA | 2013-08-30 15:16:46 | NULL | = 1 | 8fde62b1089e5844a9cd3b9b953f9596 | SystemVM Template (vSphere) = | 0 | 0 | 15 | 1 | 0= | 1 | 0 | VMware | NULL | NULL = | 0 | NULL | Allocated | 0 | NULL | = 1 |=0A= | 9 | routing-9 | SystemVM Template (HyperV) | db879b30-= 11c1-11e3-b37b-005056aec95c | 0 | 0 | SYSTEM | 0 | 32 | ht= tp://download.cloud.com/templates/4.2/systemvmtemplate-2013-06-12-master-xe= n.vhd.bz2 | VHD | 2013-08-30 15:16:46 | NULL | = 1 | fb1b6e032a160d86f2c28feb5add6d83 | SystemVM Template (HyperV) = | 0 | 0 | 15 | 1 | 0= | 1 | 0 | Hyperv | NULL | NULL = | 0 | NULL | Allocated | 0 | NULL | = 0 |=0A= | 10 | routing-10 | SystemVM Template (LXC) | dce6796a-= 11c1-11e3-b37b-005056aec95c | 0 | 0 | SYSTEM | 0 | 64 | ht= tp://download.cloud.com/templates/acton/acton-systemvm-02062012.qcow2.bz2 = | QCOW2 | 2013-08-30 15:16:48 | NULL | = 1 | 2755de1f9ef2ce4d6f2bee2efbb4da92 | SystemVM Template (LXC) = | 0 | 0 | 15 | 1 | 0= | 1 | 0 | LXC | NULL | NULL = | 0 | NULL | Allocated | 0 | NULL | = 0 |=0A= | 200 | xs-tools.iso | xs-tools.iso | 5172892d-= 0d8f-499a-bdb3-59a37fecf206 | 1 | 1 | PERHOST | 1 | 64 | NU= LL = | ISO | 2013-08-30 22:20:19 | NULL | = 1 | NULL | xen-pv-drv-iso = | 0 | 0 | 1 | 0 | 0= | 0 | 1 | XenServer | NULL | NULL = | 0 | NULL | Active | 0 | NULL | = 0 |=0A= +-----+-----------------+---------------------------------------+----------= ----------------------------+--------+----------+---------+-----+------+---= ---------------------------------------------------------------------------= ------------+--------+---------------------+---------------------+---------= ---+----------------------------------+------------------------------------= ---+-----------------+---------------+-------------+----------+------------= -+-------------+-------------+-----------------+--------------------+------= --------+----------+-----------+-----------+--------------+---------+------= ----------------+=0A= =0A= =0A= mysql> select * from template_store_ref;=0A= +----+----------+-------------+---------------------+---------------------+= --------------------------------------+--------------+-----------+---------= ---+---------------+----------------+--------------------------------------= -------------+-------------------------------------------------------------= ---------------------------------------+-----------------------------------= -------------------------+-------------------------------------------------= ---------------------------------------+-------+-----------+---------+-----= ---------+---------+---------------------+=0A= | id | store_id | template_id | created | last_updated |= job_id | download_pct | size | store_ro= le | physical_size | download_state | error_str = | local_path = | install_path = | url = | state | destroyed | is_copy | upda= te_count | ref_cnt | updated |=0A= +----+----------+-------------+---------------------+---------------------+= --------------------------------------+--------------+-----------+---------= ---+---------------+----------------+--------------------------------------= -------------+-------------------------------------------------------------= ---------------------------------------+-----------------------------------= -------------------------+-------------------------------------------------= ---------------------------------------+-------+-----------+---------+-----= ---------+---------+---------------------+=0A= | 11 | 2 | 1 | 2013-09-04 22:38:06 | 2013-09-05 17:50:34 |= NULL | 100 | 276162048 | Image = | 276162048 | DOWNLOADED | NULL = | NULL = | template/tmpl/1/1/34b74283-916e-45= 62-82fd-082b387b51c5.vhd | http://download.cloud.com/templates/4.2/systemvm= template-2013-06-12-master-xen.vhd.bz2 | Ready | 0 | 0 | = 0 | 0 | NULL |=0A= | 12 | 2 | 5 | 2013-09-04 22:42:42 | 2013-09-04 22:43:56 |= 7588dd60-4c70-4a03-8fe8-767ed2a90328 | 100 | 52428800 | Image = | 50430464 | DOWNLOADED | Install completed successfully at 9/4= /13 10:43 PM | /mnt/SecStorage/cf063d1b-3b6c-3bdd-89b4-5c785aed702d/templat= e/tmpl/1/5/dnld5960439048475664982tmp_ | template/tmpl/1/5/1f0684e3-e96e-33= 17-9377-1a2decd31d85.vhd | NULL = | Ready | 0 | 0 | = 3 | 0 | 2013-09-04 22:44:07 |=0A= | 13 | 2 | 5 | 2013-09-04 22:42:43 | 2013-09-05 17:50:34 |= 1a93589a-2971-4912-b16a-09d5db45dd22 | 100 | 52428800 | Image = | 50430464 | DOWNLOADED | Install completed successfully at 9/4= /13 10:43 PM | /mnt/SecStorage/cf063d1b-3b6c-3bdd-89b4-5c785aed702d/null/dn= ld5085564923431642426tmp_ | template/tmpl/1/5/1f0684e3-e96e-33= 17-9377-1a2decd31d85.vhd | NULL = | Ready | 0 | 0 | = 1 | 0 | 2013-09-04 22:42:43 |=0A= +----+----------+-------------+---------------------+---------------------+= --------------------------------------+--------------+-----------+---------= ---+---------------+----------------+--------------------------------------= -------------+-------------------------------------------------------------= ---------------------------------------+-----------------------------------= -------------------------+-------------------------------------------------= ---------------------------------------+-------+-----------+---------+-----= ---------+---------+---------------------+=0A= =0A= mysql> select * from template_view;=0A= +-----+--------------------------------------+--------------+--------------= +--------+----------+---------+-----+------+------+--------+---------------= ------+----------+----------------+-----------------+----------------------= +-------------+--------------------------------------+---------------------= +----------+-------------+-------------+-----------------+-------------+---= -----------+----------+---------+---------------+--------------------+-----= -----------------+------------+--------------------------------------+-----= ---------+--------------+-----------+--------------------------------------= +-------------+-------------+------------+--------------+--------------+---= -------------+------------------+------------------+---------------+-------= ---+-------------+-------+----------------+--------------+-----------+-----= -+-----------+------------------+-------------+--------------+--------+----= ------+---------+-----------+---------------+----------------+-------------= ----+-------------------+-------------------+--------------+---------------= -+=0A= | id | uuid | unique_name | name = | public | featured | type | hvm | bits | url | format | created = | checksum | display_text | enable_password | dynamically_scalable = | guest_os_id | guest_os_uuid | guest_os_name = | bootable | prepopulate | cross_zones | hypervisor_type | extractable | te= mplate_tag | sort_key | removed | enable_sshkey | source_template_id | sour= ce_template_uuid | account_id | account_uuid | acco= unt_name | account_type | domain_id | domain_uuid = | domain_name | domain_path | project_id | project_uuid | project_name | da= ta_center_id | data_center_uuid | data_center_name | lp_account_id | store_= id | store_scope | state | download_state | download_pct | error_str | size= | destroyed | created_on_store | detail_name | detail_value | tag_id | tag= _uuid | tag_key | tag_value | tag_domain_id | tag_account_id | tag_resource= _id | tag_resource_uuid | tag_resource_type | tag_customer | temp_zone_pair= |=0A= +-----+--------------------------------------+--------------+--------------= +--------+----------+---------+-----+------+------+--------+---------------= ------+----------+----------------+-----------------+----------------------= +-------------+--------------------------------------+---------------------= +----------+-------------+-------------+-----------------+-------------+---= -----------+----------+---------+---------------+--------------------+-----= -----------------+------------+--------------------------------------+-----= ---------+--------------+-----------+--------------------------------------= +-------------+-------------+------------+--------------+--------------+---= -------------+------------------+------------------+---------------+-------= ---+-------------+-------+----------------+--------------+-----------+-----= -+-----------+------------------+-------------+--------------+--------+----= ------+---------+-----------+---------------+----------------+-------------= ----+-------------------+-------------------+--------------+---------------= -+=0A= | 200 | 5172892d-0d8f-499a-bdb3-59a37fecf206 | xs-tools.iso | xs-tools.iso = | 1 | 1 | PERHOST | 1 | 64 | NULL | ISO | 2013-08-30 22:= 20:19 | NULL | xen-pv-drv-iso | 0 | 0 = | 1 | db87ea22-11c1-11e3-b37b-005056aec95c | CentOS 4.5 (32-bit) = | 0 | 0 | 0 | XenServer | 1 | NU= LL | 0 | NULL | 0 | NULL | NULL= | 1 | dbe29030-11c1-11e3-b37b-005056aec95c | syst= em | 1 | 1 | dbe27f96-11c1-11e3-b37b-005056aec95c = | ROOT | / | NULL | NULL | NULL | = NULL | NULL | NULL | NULL | NU= LL | NULL | NULL | NULL | NULL | NULL | NULL= | NULL | NULL | NULL | NULL | NULL | NUL= L | NULL | NULL | NULL | NULL | N= ULL | NULL | NULL | NULL | 200_0 = |=0A= +-----+--------------------------------------+--------------+--------------= +--------+----------+---------+-----+------+------+--------+---------------= ------+----------+----------------+-----------------+----------------------= +-------------+--------------------------------------+---------------------= +----------+-------------+-------------+-----------------+-------------+---= -----------+----------+---------+---------------+--------------------+-----= -----------------+------------+--------------------------------------+-----= ---------+--------------+-----------+--------------------------------------= +-------------+-------------+------------+--------------+--------------+---= -------------+------------------+------------------+---------------+-------= ---+-------------+-------+----------------+--------------+-----------+-----= -+-----------+------------------+-------------+--------------+--------+----= ------+---------+-----------+---------------+----------------+-------------= ----+-------------------+-------------------+--------------+---------------= -+=0A= 1 row in set (0.00 sec)=0A= =0A= ________________________________________=0A= From: Min Chen [min.chen@citrix.com]=0A= Sent: Thursday, September 05, 2013 9:47 AM=0A= To: dev@cloudstack.apache.org=0A= Subject: Re: Template Problem=0A= =0A= Do you have contents of template_view and vm_templates?=0A= =0A= Thanks=0A= -min=0A= =0A= On 8/30/13 9:25 AM, "Soheil Eizadi" wrote:=0A= =0A= >It was in the original email, here it is by itself:=0A= >=0A= >mysql> select * from template_store_ref;=0A= >+----+----------+-------------+---------------------+---------------------= =0A= >+--------+--------------+------------+------------+---------------+-------= =0A= >---------+-----------+------------+---------------------------------------= =0A= >---------------------+----------------------------------------------------= =0A= >------------------------------------+-------+-----------+---------+-------= =0A= >-------+---------+---------+=0A= >| id | store_id | template_id | created | last_updated=0A= >| job_id | download_pct | size | store_role | physical_size |=0A= >download_state | error_str | local_path | install_path=0A= > | url=0A= > | state | destroyed | is_copy |= =0A= >update_count | ref_cnt | updated |=0A= >+----+----------+-------------+---------------------+---------------------= =0A= >+--------+--------------+------------+------------+---------------+-------= =0A= >---------+-----------+------------+---------------------------------------= =0A= >---------------------+----------------------------------------------------= =0A= >------------------------------------+-------+-----------+---------+-------= =0A= >-------+---------+---------+=0A= >| 5 | 1 | 1 | 2013-08-28 23:10:50 | 2013-08-29 21:01:19= =0A= >| NULL | 100 | 2101252608 | Image | 2101252608 |=0A= >DOWNLOADED | NULL | NULL |=0A= >template/tmpl/1/1/170c3425-6078-479e-8843-3f8fdc02aaf3.vhd |=0A= >http://download.cloud.com/templates/4.2/systemvmtemplate-2013-06-12-master= =0A= >-xen.vhd.bz2 | Ready | 0 | 0 | 0 | 0 |=0A= >NULL |=0A= >| 6 | 1 | 5 | 2013-08-29 18:16:53 | 2013-08-29 21:01:19= =0A= >| NULL | 100 | 52428800 | Image | 50430464 |=0A= >DOWNLOADED | NULL | NULL |=0A= >template/tmpl/1/5/0911ae22-350f-38f5-ad3e-423e7e5d6539.vhd |=0A= >http://people.apache.org/~bhaisaab/vms/ttylinux_pv.vhd=0A= > | Ready | 0 | 0 | 0 | 0 |=0A= >NULL |=0A= >+----+----------+-------------+---------------------+---------------------= =0A= >+--------+--------------+------------+------------+---------------+-------= =0A= >---------+-----------+------------+---------------------------------------= =0A= >---------------------+----------------------------------------------------= =0A= >------------------------------------+-------+-----------+---------+-------= =0A= >-------+---------+---------+=0A= >2 rows in set (0.00 sec)=0A= >________________________________________=0A= >From: Chiradeep Vittal [Chiradeep.Vittal@citrix.com]=0A= >Sent: Friday, August 30, 2013 9:22 AM=0A= >To: dev@cloudstack.apache.org=0A= >Subject: Re: Template Problem=0A= >=0A= >Just the contents of template_store_ref=0A= >=0A= >On 8/30/13 9:17 AM, "Soheil Eizadi" wrote:=0A= >=0A= >>Chiradeep,=0A= >>What do you want me to lookup, before I clean up my system?=0A= >>-Soheil=0A= >>________________________________________=0A= >>From: Wei ZHOU [ustcweizhou@gmail.com]=0A= >>Sent: Thursday, August 29, 2013 3:16 PM=0A= >>To: dev@cloudstack.apache.org=0A= >>Subject: Re: Template Problem=0A= >>=0A= >>Chiradeep, Thanks.=0A= >>I cannot give more information as the environment has been cleaned.=0A= >>Maybe Soheil can. I think it is the same issue.=0A= >>=0A= >>=0A= >>2013/8/29 Chiradeep Vittal =0A= >>=0A= >>> It should be template_store_ref=0A= >>>=0A= >>> On 8/29/13 2:34 PM, "Wei ZHOU" wrote:=0A= >>>=0A= >>> >It is the same issue to what I described in comment of=0A= >>>CLOUDSTACK-4459:=0A= >>> >=0A= >>> >=0A= >>> >Wei=0A= >>>=0A= >>>>Zhou>>>u=0A= >>> >a=0A= >>> >dded=0A= >>> >a comment - 29/Aug/13=0A= >>> >22:24=0A= >>> >=0A= >>> >Edison, after I redeploy the environment (clean db, restore devcloud= =0A= >>>to=0A= >>> >original, reploydb), the system is up.=0A= >>> >Th systemvms (ssvm and cpvm) are running and the state are up, but I= =0A= >>>can=0A= >>> >not see tinylinux in template list. the template_host_ref table is=0A= >>>empty.=0A= >>> >=0A= >>> >Wei=0A= >>>=0A= >>>>Zhou>>>u=0A= >>> >a=0A= >>> >dded=0A= >>> >a comment - 29/Aug/13=0A= >>> >23:10=0A= >>> >=0A= >>> >It works well on 4.2-forward branch.=0A= >>> >=0A= >>> >=0A= >>> >=0A= >>> >2013/8/29 Soheil Eizadi =0A= >>> >=0A= >>> >> I migrated my development environment to the top of trunk which=0A= >>>points=0A= >>> >>to=0A= >>> >> 4.3 now. I created a new CloudStack runtime environment running=0A= >>> >>XenServer=0A= >>> >> 6.2, for my Secondary Store I replicated another NFS Server that has= =0A= >>> >>images=0A= >>> >> for preRC CloudStack version 4.2 SystemVM and TinyLinux on it.=0A= >>> >>=0A= >>> >> I have the CS running and it creates the SSVM and it is healthy, but= =0A= >>>I=0A= >>> >> don't see any Templates in the UI, from the database I would expect= =0A= >>>to=0A= >>> >>see=0A= >>> >> the "tiny Linux" and "SystemVM Template" in the Templates view.=0A= >>> >>=0A= >>> >> I have restarted the management server and the problem is=0A= >>>persistent.=0A= >>> >>=0A= >>> >> What is the next steps to debug this further?=0A= >>> >> -Soheil=0A= >>> >>=0A= >>> >>=0A= >>> >> Here is some logs below:=0A= >>> >>=0A= >>> >> From SSVM:=0A= >>> >> /usr/local/cloud/systemvm/ssvm-check.sh=0A= >>> >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=0A= >>> >> First DNS server is 10.48.15.25=0A= >>> >> PING 10.48.15.25 (10.48.15.25): 56 data bytes=0A= >>> >> 64 bytes from 10.48.15.25: icmp_seq=3D0 ttl=3D64 time=3D1.038 ms=0A= >>> >> 64 bytes from 10.48.15.25: icmp_seq=3D1 ttl=3D64 time=3D0.359 ms=0A= >>> >> --- 10.48.15.25 ping statistics ---=0A= >>> >> 2 packets transmitted, 2 packets received, 0% packet loss=0A= >>> >> round-trip min/avg/max/stddev =3D 0.359/0.699/1.038/0.340 ms=0A= >>> >> Good: Can ping DNS server=0A= >>> >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=0A= >>> >> Good: DNS resolves download.cloud.com=0A= >>> >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=0A= >>> >> NFS is currently mounted=0A= >>> >> Mount point is /mnt/SecStorage/3667905e-f9c2-388e-a8c6-112cb96a98a9= =0A= >>> >> Good: Can write to mount point=0A= >>> >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=0A= >>> >> Management server is 10.48.15.10. Checking connectivity.=0A= >>> >> Good: Can connect to management server port 8250=0A= >>> >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=0A= >>> >> Good: Java process is running=0A= >>> >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=0A= >>> >> Tests Complete. Look for ERROR or WARNING above.=0A= >>> >>=0A= >>> >> From MS log:=0A= >>> >> WARN [c.c.c.ClusterManagerImpl] (Cluster-Notification-1:null)=0A= >>>Notifying=0A= >>> >> management server join event took 21 ms=0A= >>> >> INFO [c.c.n.s.SecurityGroupListener]=0A= >>> >> (AgentConnectTaskPool-2:ctx-b401ef43) Received a host startup=0A= >>> >>notification=0A= >>> >> INFO [o.a.c.s.i.TemplateServiceImpl]=0A= >>> >> (AgentConnectTaskPool-2:ctx-b401ef43) Template Sync found routing-1= =0A= >>> >>already=0A= >>> >> in the image store=0A= >>> >> INFO [o.a.c.s.i.TemplateServiceImpl]=0A= >>> >> (AgentConnectTaskPool-2:ctx-b401ef43) Template Sync did not find=0A= >>> >>routing-3=0A= >>> >> on image store 1, may request download based on available hypervisor= =0A= >>> >>types=0A= >>> >> INFO [o.a.c.s.i.TemplateServiceImpl]=0A= >>> >> (AgentConnectTaskPool-2:ctx-b401ef43) Template Sync did not find=0A= >>> >> centos55-x86_64 on image store 1, may request download based on=0A= >>> >>available=0A= >>> >> hypervisor types=0A= >>> >> INFO [o.a.c.s.i.TemplateServiceImpl]=0A= >>> >> (AgentConnectTaskPool-2:ctx-b401ef43) Template Sync found tiny Linux= =0A= >>> >> already in the image store=0A= >>> >> INFO [o.a.c.s.i.TemplateServiceImpl]=0A= >>> >> (AgentConnectTaskPool-2:ctx-b401ef43) Template Sync did not find=0A= >>> >> centos53-x64 on image store 1, may request download based on=0A= >>>available=0A= >>> >> hypervisor types=0A= >>> >> INFO [o.a.c.s.i.TemplateServiceImpl]=0A= >>> >> (AgentConnectTaskPool-2:ctx-b401ef43) Template Sync did not find=0A= >>> >>routing-8=0A= >>> >> on image store 1, may request download based on available hypervisor= =0A= >>> >>types=0A= >>> >> INFO [o.a.c.s.i.TemplateServiceImpl]=0A= >>> >> (AgentConnectTaskPool-2:ctx-b401ef43) Template Sync did not find=0A= >>> >>routing-9=0A= >>> >> on image store 1, may request download based on available hypervisor= =0A= >>> >>types=0A= >>> >> INFO [o.a.c.s.i.TemplateServiceImpl]=0A= >>> >> (AgentConnectTaskPool-2:ctx-b401ef43) Template Sync did not find=0A= >>> >>routing-10=0A= >>> >> on image store 1, may request download based on available hypervisor= =0A= >>> >>types=0A= >>> >> INFO [o.a.c.s.i.TemplateServiceImpl]=0A= >>> >> (AgentConnectTaskPool-2:ctx-b401ef43) Skip downloading template=0A= >>> >>routing-10=0A= >>> >> since current data center does not have hypervisor LXC=0A= >>> >> INFO [o.a.c.s.i.TemplateServiceImpl]=0A= >>> >> (AgentConnectTaskPool-2:ctx-b401ef43) Skip downloading template=0A= >>> >>routing-9=0A= >>> >> since current data center does not have hypervisor Hyperv=0A= >>> >> INFO [o.a.c.s.i.TemplateServiceImpl]=0A= >>> >> (AgentConnectTaskPool-2:ctx-b401ef43) Skip downloading template=0A= >>> >>routing-8=0A= >>> >> since current data center does not have hypervisor VMware=0A= >>> >> INFO [o.a.c.s.i.TemplateServiceImpl]=0A= >>> >> (AgentConnectTaskPool-2:ctx-b401ef43) Skip downloading template=0A= >>> >>routing-3=0A= >>> >> since current data center does not have hypervisor KVM=0A= >>> >> INFO [o.a.c.s.i.TemplateServiceImpl]=0A= >>> >> (AgentConnectTaskPool-2:ctx-b401ef43) Skip downloading template=0A= >>> >> centos53-x64 since current data center does not have hypervisor=0A= >>>VMware=0A= >>> >> INFO [o.a.c.s.i.TemplateServiceImpl]=0A= >>> >> (AgentConnectTaskPool-2:ctx-b401ef43) Skip downloading template=0A= >>> >> centos55-x86_64 since current data center does not have hypervisor= =0A= >>>KVM=0A= >>> >> INFO [c.c.c.AgentHookBase] (AgentConnectTaskPool-1:ctx-81d176bd)=0A= >>> >> Successfully sent out command to start HTTP handling in console=0A= >>>proxy=0A= >>> >>agent=0A= >>> >> INFO [c.c.a.m.AgentManagerImpl] (ClusteredAgentManager Timer:null)= =0A= >>> >>Could=0A= >>> >> not to find a Discoverer to load the resource: 2 for hypervisor=0A= >>>type:=0A= >>> >>null=0A= >>> >> INFO [c.c.a.m.DirectAgentAttache] (AgentTaskPool-2:ctx-0f928c9f)=0A= >>> >> StartupAnswer received 2 Interval =3D 60=0A= >>> >> INFO [c.c.n.s.SecurityGroupListener] (AgentTaskPool-2:ctx-0f928c9f)= =0A= >>> >> Received a host startup notification=0A= >>> >> INFO [c.c.h.x.r.CitrixResourceBase] (AgentTaskPool-1:ctx-36b7c165)= =0A= >>> >> Private Network is cloud-public for host 10.48.15.20=0A= >>> >> INFO [c.c.h.x.r.CitrixResourceBase] (AgentTaskPool-1:ctx-36b7c165)= =0A= >>> >>Guest=0A= >>> >> Network is cloud-public for host 10.48.15.20=0A= >>> >> INFO [c.c.h.x.r.CitrixResourceBase] (AgentTaskPool-1:ctx-36b7c165)= =0A= >>> >>Public=0A= >>> >> Network is cloud-public for host 10.48.15.20=0A= >>> >>=0A= >>> >> Database:=0A= >>> >>=0A= >>> >> mysql> select * from template_host_ref;=0A= >>> >> Empty set (0.00 sec)=0A= >>> >>=0A= >>> >> mysql> select * from template_store_ref;=0A= >>> >>=0A= >>> >>=0A= >>>=0A= >>>>>+----+----------+-------------+---------------------+-----------------= =0A= >>>>>-=0A= >>>>>--=0A= >>>=0A= >>>>>-+--------+--------------+------------+------------+---------------+--= =0A= >>>>>-=0A= >>>>>--=0A= >>>=0A= >>>>>-----------+-----------+------------+---------------------------------= =0A= >>>>>-=0A= >>>>>--=0A= >>>=0A= >>>>>------------------------+---------------------------------------------= =0A= >>>>>-=0A= >>>>>--=0A= >>>=0A= >>>>>----------------------------------------+-------+-----------+---------= =0A= >>>>>+=0A= >>>>>--=0A= >>> >>------------+---------+---------+=0A= >>> >> | id | store_id | template_id | created | last_updated= =0A= >>> >> | job_id | download_pct | size | store_role | physical_size |= =0A= >>> >> download_state | error_str | local_path | install_path=0A= >>> >> | url=0A= >>> >> | state | destroyed | is_copy= =0A= >>>|=0A= >>> >> update_count | ref_cnt | updated |=0A= >>> >>=0A= >>> >>=0A= >>>=0A= >>>>>+----+----------+-------------+---------------------+-----------------= =0A= >>>>>-=0A= >>>>>--=0A= >>>=0A= >>>>>-+--------+--------------+------------+------------+---------------+--= =0A= >>>>>-=0A= >>>>>--=0A= >>>=0A= >>>>>-----------+-----------+------------+---------------------------------= =0A= >>>>>-=0A= >>>>>--=0A= >>>=0A= >>>>>------------------------+---------------------------------------------= =0A= >>>>>-=0A= >>>>>--=0A= >>>=0A= >>>>>----------------------------------------+-------+-----------+---------= =0A= >>>>>+=0A= >>>>>--=0A= >>> >>------------+---------+---------+=0A= >>> >> | 5 | 1 | 1 | 2013-08-28 23:10:50 | 2013-08-29=0A= >>> >>21:01:19=0A= >>> >> | NULL | 100 | 2101252608 | Image | 2101252608 |= =0A= >>> >> DOWNLOADED | NULL | NULL |=0A= >>> >> template/tmpl/1/1/170c3425-6078-479e-8843-3f8fdc02aaf3.vhd |=0A= >>> >>=0A= >>> >>=0A= >>>=0A= >>>http://download.cloud.com/templates/4.2/systemvmtemplate-2013-06-12-mast= =0A= >>>e=0A= >>> >>r-xen.vhd.bz2| Ready | 0 | 0 | 0 | 0 |= =0A= >>> >>NULL |=0A= >>> >> | 6 | 1 | 5 | 2013-08-29 18:16:53 | 2013-08-29=0A= >>> >>21:01:19=0A= >>> >> | NULL | 100 | 52428800 | Image | 50430464 |= =0A= >>> >> DOWNLOADED | NULL | NULL |=0A= >>> >> template/tmpl/1/5/0911ae22-350f-38f5-ad3e-423e7e5d6539.vhd |=0A= >>> >> http://people.apache.org/~bhaisaab/vms/ttylinux_pv.vhd=0A= >>> >> | Ready | 0 | 0 | 0 | 0= =0A= >>>|=0A= >>> >>NULL=0A= >>> >> |=0A= >>> >>=0A= >>> >>=0A= >>>=0A= >>>>>+----+----------+-------------+---------------------+-----------------= =0A= >>>>>-=0A= >>>>>--=0A= >>>=0A= >>>>>-+--------+--------------+------------+------------+---------------+--= =0A= >>>>>-=0A= >>>>>--=0A= >>>=0A= >>>>>-----------+-----------+------------+---------------------------------= =0A= >>>>>-=0A= >>>>>--=0A= >>>=0A= >>>>>------------------------+---------------------------------------------= =0A= >>>>>-=0A= >>>>>--=0A= >>>=0A= >>>>>----------------------------------------+-------+-----------+---------= =0A= >>>>>+=0A= >>>>>--=0A= >>> >>------------+---------+---------+=0A= >>> >> 2 rows in set (0.00 sec)=0A= >>> >>=0A= >>> >>=0A= >>> >>=0A= >>>=0A= >>>=0A= >=0A= =0A=