Github user kollyma commented on the pull request:

    https://github.com/apache/cloudstack/pull/1331#issuecomment-202547429
  
    @syed: thanks for the feedback. Here a more detailed description, based on 
your comments. 
    Setup: CS4.8, nfs secondary storage, kvm with local storage
    ```
    # cat template.properties 
    uniquename=225-2-c7401a18-2163-3c22-9799-3cc9b79cb771
    filename=eabd7703-4203-49c5-a3a3-f8234f2d1c23.qcow2
    size=1753481216c22-9799-3cc9b79cb771
    qcow2.filename=eabd7703-4203-49c5-a3a3-f8234f2d1c23.qcow2
    qcow2.virtualsize=21474836480
    public=true
    id=1
    ```
    Entry on the management server: 
    ```
     select * from vm_template where name = "myname2" \G;
    *************************** 1. row ***************************
                      id: 225
             unique_name: 225-2-c7401a18-2163-3c22-9799-3cc9b79cb771
                    name: myname2
                    uuid: cec0787b-5362-4e29-9ca6-63697ff8d872
                  public: 1
                featured: 0
                    type: USER
                     hvm: 1
                    bits: 64
                     url: NULL
                  format: QCOW2
                 created: 2016-03-28 18:36:00
                 removed: NULL
              account_id: 2
                checksum: NULL
            display_text: myname
         enable_password: 0
           enable_sshkey: 0
             guest_os_id: 221
                bootable: 1
             prepopulate: 0
             cross_zones: 0
             extractable: 0
         hypervisor_type: KVM
      source_template_id: 215
            template_tag: NULL
                sort_key: 0
                    size: 21474836480
                   state: Active
            update_count: 0
                 updated: NULL
    dynamically_scalable: 0
    ```
    Logs after management server restart:
    ```
    2016-03-28 21:06:33,660 INFO  [o.a.c.s.i.TemplateServiceImpl] 
(AgentConnectTaskPool-3:ctx-3eb6adca) (logid:9e020fbf) Template Sync did not 
find 225-2-c7401a18-2163-3c22-9799-3cc9b79cb771 on image store 1, may request 
download based on available hypervisor types
    2016-03-28 21:06:33,661 INFO  [o.a.c.s.i.TemplateServiceImpl] 
(AgentConnectTaskPool-3:ctx-3eb6adca) (logid:9e020fbf) Removing leftover 
template 225-2-c7401a18-2163-3c22-9799-3cc9b79cb771 entry from template store 
table
    2016-03-28 21:06:33,668 INFO  [o.a.c.s.i.TemplateServiceImpl] 
(AgentConnectTaskPool-3:ctx-3eb6adca) (logid:9e020fbf) Skip downloading 
template 225-2-c7401a18-2163-3c22-9799-3cc9b79cb771 since no url is specified.
    ```
    You are referring to the path set incorrectly in template properties. The 
cloudstack logs says "Template Sync did not find..." Do we have the same issue 
? the template file is present on the nfs:
    
    template/tmpl/2/225# ls
    eabd7703-4203-49c5-a3a3-f8234f2d1c23.qcow2  template.properties
    



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to