You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by GitBox <gi...@apache.org> on 2021/08/24 07:05:21 UTC

[GitHub] [cloudstack] Pearl1594 edited a comment on issue #3548: When adding a new KVM zone, the template_store_ref may get wrong install_path for systemvmtemplate

Pearl1594 edited a comment on issue #3548:
URL: https://github.com/apache/cloudstack/issues/3548#issuecomment-904319973


   @rhtyd @nvazquez I don't think this is an issue as when the` cloud-install-sysvm-tmplt `script is used for seeding the template, it assumes that the template is owned by system account (account_id = 1) therefore on addition of the new zone, the path is properly updated.
   
   Following is the observation made:
   
   #### Seeded templates :
   ```
   # ls /export/testing/qa2-testzone415-b9ca73e3-kvm/secondary1/template/tmpl/1/3/ <--- zone1
   f1b14109-1ea3-4c8f-8643-02d3006c68f3.qcow2  template.properties
   
   # ls /export/testing/qa2-testzone415-b9ca73e3-kvm/secondary2/template/tmpl/1/3/   <--- zone2
   deeeb1c5-5e26-4ab0-b72e-86e3ef0a6c47.qcow2  template.properties
   ```
   
   #### Image store:
   ```
   MariaDB [cloud]> select * from image_store\G
   *************************** 1. row ***************************
                    id: 1
                  name: nfs://172.20.0.1/export/testing/qa2-testzone415-b9ca73e3-kvm/secondary1
   image_provider_name: NFS
              protocol: nfs
                   url: nfs://172.20.0.1/export/testing/qa2-testzone415-b9ca73e3-kvm/secondary1
        data_center_id: 1
                 scope: ZONE
                  role: Image
                  uuid: 1a5ee1f0-4191-458b-bd7c-18048f963b6a
                parent: 74432ad6-abcd-3ca4-a8d9-a20f91fcd339
               created: 2021-08-24 04:12:06
               removed: NULL
            total_size: NULL
            used_bytes: NULL
              readonly: 0
   *************************** 2. row ***************************
                    id: 2
                  name: nfs://172.20.0.1/export/testing/qa2-testzone415-b9ca73e3-kvm/secondary2
   image_provider_name: NFS
              protocol: nfs
                   url: nfs://172.20.0.1/export/testing/qa2-testzone415-b9ca73e3-kvm/secondary2
        data_center_id: 2
                 scope: ZONE
                  role: Image
                  uuid: 7ada2348-e31f-4c53-994f-6c047afe9373
                parent: 25f12d68-e6b0-3610-9519-93d15de72bba
               created: 2021-08-24 04:21:47
               removed: NULL
            total_size: NULL
            used_bytes: NULL
              readonly: 0
   2 rows in set (0.00 sec)
   ```
   
   #### template_store_ref details corresponding to the systemvm template
   ```
   MariaDB [cloud]> select id, store_id, template_id, download_pct, store_role, download_state, install_path, url, state, destroyed from template_store_ref where template_id = 3\G
   *************************** 1. row ***************************
               id: 5
         store_id: 1
      template_id: 3
     download_pct: 100
       store_role: Image
   download_state: DOWNLOADED
     install_path: template/tmpl/1/3/f1b14109-1ea3-4c8f-8643-02d3006c68f3.qcow2
              url: https://download.cloudstack.org/systemvm/4.15/systemvmtemplate-4.15.1-kvm.qcow2.bz2
            state: Ready
        destroyed: 0
   *************************** 2. row ***************************
               id: 13
         store_id: 2
      template_id: 3
     download_pct: 100
       store_role: Image
   download_state: DOWNLOADED
     install_path: template/tmpl/1/3/deeeb1c5-5e26-4ab0-b72e-86e3ef0a6c47.qcow2
              url: https://download.cloudstack.org/systemvm/4.15/systemvmtemplate-4.15.1-kvm.qcow2.bz2
            state: Ready
        destroyed: 0
   2 rows in set (0.00 sec)
   
   ```
   As for the name being different, though that is not necessary - it doesn't cause any issue 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org