You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by "ahmadamirahmadi007 (via GitHub)" <gi...@apache.org> on 2024/12/01 11:56:12 UTC

[I] Downloading Template Failed [cloudstack]

ahmadamirahmadi007 opened a new issue, #10015:
URL: https://github.com/apache/cloudstack/issues/10015

   ##### ISSUE TYPE
   <!-- Pick one below and delete the rest -->
    * Bug Report
   
   ##### COMPONENT NAME
   UI
   
   ##### CLOUDSTACK VERSION
   CloudStack 4.19.1.3
   
   ##### OS / ENVIRONMENT
   Ubuntu 
   KVM
   
   ##### SUMMARY
   I can not Download Any Image Template 
   
   ##### STEPS TO REPRODUCE
   1- Create Template Template From any Instance
   2- Image -> Template -> Download Template
   3- I get Image Template Download Link With IP Address Of Secondary Storage VM But it Returned "The requested URL was not found on this server."
   4- When I check SecondaryStorage SYSVM in /var/www/html/userdata PATH it does not provide any file for the image template and is null
   
   ##### EXPECTED RESULTS
   I want to download my image template
   ##### ACTUAL RESULTS
   After creating the download link, I got the following message: "The requested URL was not found on this server."
   
   


-- 
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.apache.org

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


Re: [I] Downloading Template Failed [cloudstack]

Posted by "ahmadamirahmadi007 (via GitHub)" <gi...@apache.org>.
ahmadamirahmadi007 commented on issue #10015:
URL: https://github.com/apache/cloudstack/issues/10015#issuecomment-2516452040

   im sure the template is in ready state
   extract template id=82622421-c8c2-486c-b133-238ca872663a mode=HTTP_DOWNLOAD
   {
     "template": {
       "accountid": "e186da76-1aac-11ef-b9f4-005056a93347",
       "extractMode": "HTTP_DOWNLOAD",
       "id": "82622421-c8c2-486c-b133-238ca872663a",
       "name": "temptestme",
       "state": "DOWNLOAD_URL_CREATED",
       "url": "http://x.x.x.x/userdata/c3a57ce5-f87b-4a85-9545-f0e76eba8083/temptestme.qcow2"
     }
   }
   My Template Does not Store anywhere and I get 404 in response.
   when I use cloudstack 4.17 in the /var/www/html/userdata path that I mentioned to you i can see my template but here the SYSVM server said
   <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
   <html><head>
   <title>404 Not Found</title>
   </head><body>
   <h1>Not Found</h1>
   <p>The requested URL was not found on this server.</p>
   </body></html>
   @kiranchavala 


-- 
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


Re: [I] Downloading Template Failed [cloudstack]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #10015:
URL: https://github.com/apache/cloudstack/issues/10015#issuecomment-3690743978

   This issue is stale because it has been open for 120 days with no activity. It may be removed by administrators of this project at any time. Remove the stale label or comment to request for removal of it to prevent this.


-- 
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


Re: [I] Downloading Template Failed [cloudstack]

Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
DaanHoogland commented on issue #10015:
URL: https://github.com/apache/cloudstack/issues/10015#issuecomment-2517003354

   @ahmadamirahmadi007 I have no doubt the issue is true for you, but we need more information as it seems specific to your environment. Can you study the logs for the secondary storage VM and for the management server to see if you can find related errors?


-- 
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


Re: [I] Downloading Template Failed [cloudstack]

Posted by "kiranchavala (via GitHub)" <gi...@apache.org>.
kiranchavala commented on issue #10015:
URL: https://github.com/apache/cloudstack/issues/10015#issuecomment-2516240941

   @ahmadamirahmadi007 
   
   I am unable to reproduce the issue 
   
   1. Execute the  api
   
   https://cloudstack.apache.org/api/apidocs-4.19/apis/createTemplate.html
   
   create template virtualmachineid=<> name=testtemp ostypeid=<>  volumeid=<>
   
   
   2. Execute the API 
   
   https://cloudstack.apache.org/api/apidocs-4.19/apis/extractTemplate.html
   
   
   ```
   (CMK) 🐱 > extract template id=<> mode=HTTP_DOWNLOAD
   {
     "template": {
       "accountid": "86a00228-9c33-11ef-99df-1e009a00017d",
       "extractMode": "HTTP_DOWNLOAD",
       "id": "dc47a6b3-c9aa-455d-b60f-63be3c5cb5d2",
       "name": "testtemp",
       "state": "DOWNLOAD_URL_CREATED",
       "url": "http://10.0.54.201/userdata/abaf0154-49f6-4d54-8d57-a3a25a2e6f90/testtemp.qcow2"
     }
   }
   ```
   
   
   3. Was able to download the template successfully 
   
   
   Please make sure the template is in ready state before you click on download templatae


-- 
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


Re: [I] Downloading Template Failed [cloudstack]

Posted by "kiranchavala (via GitHub)" <gi...@apache.org>.
kiranchavala commented on issue #10015:
URL: https://github.com/apache/cloudstack/issues/10015#issuecomment-2510769364

   @ahmadamirahmadi007  
   
   How are you executing the step 1 via API or the UI  ?
   
   1- Create Template Template From any Instance
   
   https://cloudstack.apache.org/api/apidocs-4.19/apis/createTemplate.html.
   
   Could you please share the parameters you are passing ?
   
   Does the vm instance have multiple volumes attached or it has only the root disk 
   
   Did you make sure the instance was in a stopped state, when you executed the create template action ?
   
    


-- 
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