xuanyuanaosheng commented on issue #6826:
URL: https://github.com/apache/cloudstack/issues/6826#issuecomment-1288560387

   @DaanHoogland @weizhouapache @slavkap
   
   The Second storage config is `nfs://10.26.246.10/image`
   ```
   # tree ./*
   ./tmpl
   ├── 1
   │   ├── 3
   │   │   ├── afd37f36-3775-49b7-bd1e-1af1c52cfe1c.qcow2
   │   │   └── template.properties
   │   └── 4
   │       └── template.properties
   └── 2
       ├── 232
       │   └── template.properties
       ├── 247
       │   ├── 247-2-d800137d-4247-3e93-a3cb-915ba60c921e.iso
       │   └── template.properties
       └── 248
           ├── 4b1ec60e-f0d3-3307-a321-a13152959117.qcow2
           └── template.properties
   
   7 directories, 8 files
   
   
   # cat tmpl/1/3/template.properties 
   filename=afd37f36-3775-49b7-bd1e-1af1c52cfe1c.qcow2
   description=SystemVM Template
   hvm=false
   size=453181440
   qcow2=true
   id=3
   public=true
   qcow2.filename=afd37f36-3775-49b7-bd1e-1af1c52cfe1c.qcow2
   uniquename=routing-3
   qcow2.virtualsize=4194304000
   virtualsize=4194304000
   qcow2.size=453181440
   ```
   
   The path is `afd37f36-3775-49b7-bd1e-1af1c52cfe1c`
   
   and the mysql `template_spool_ref` related to primary storage is 
`c3098158-93e3-40b1-a3e4-882c0f2a47b5` and 
`dea9fed0-a166-45f3-b4d9-39edc1744ff6`
   
   I delete the record using:
   ```
   # DELETE from template_spool_ref WHERE local_path = 
'c3098158-93e3-40b1-a3e4-882c0f2a47b5';
   # DELETE from template_spool_ref WHERE local_path = 
'dea9fed0-a166-45f3-b4d9-39edc1744ff6';
   ```
    I delete record in `template_spool_ref`  and delete the systemvm in 
cloudstack web ui.
   
   But when the new systemvms started. 
   
   
![image](https://user-images.githubusercontent.com/4197714/197473741-be9edb1b-e343-4dbe-8c32-c94ce2551d59.png)
   
   There is no  copy the systemvm template from secondary storage to primary 
storage pools when new systemvms/vrs are created.


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to