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/03/25 16:02:22 UTC

[GitHub] [cloudstack] skattoju4 opened a new issue #4874: CLOUDSTACK-9341 volume import and export when using swift as secondary storage

skattoju4 opened a new issue #4874:
URL: https://github.com/apache/cloudstack/issues/4874


   <!--
   Verify first that your issue/request is not already reported on GitHub.
   Also test if the latest release and master branch are affected too.
   Always add information AFTER of these HTML comments, but no need to delete the comments.
   -->
   
   ##### ISSUE TYPE
   <!-- Pick one below and delete the rest -->
    * Bug Report
    * Improvement Request
   
   ##### COMPONENT NAME
   <!--
   Categorize the issue, e.g. API, VR, VPN, UI, etc.
   -->
   ~~~
   Secondary Storage
   ~~~
   
   ##### CLOUDSTACK VERSION
   <!--
   New line separated list of affected versions, commit ID for issues on master branch.
   -->
   
   ~~~
   4.7 and above
   ~~~
   
   ##### CONFIGURATION
   <!--
   Information about the configuration if relevant, e.g. basic network, advanced networking, etc.  N/A otherwise
   -->
   CloudStack 4.12, XenServer and Swift as Secondary Storage.
   
   ##### OS / ENVIRONMENT
   <!--
   Information about the environment if relevant, N/A otherwise
   -->
   N/A
   
   ##### SUMMARY
   <!-- Explain the problem/feature briefly -->
   *Uploading a volume fails when using swift as secondary storage.
   The error returned is: org.apache.cloudstack.storage.to.VolumeObjectTO cannot be cast to org.apache.cloudstack.storage.to.TemplateObjectTO
   *Exporting or downloading a volume fails when using swift as secondary storage.
   Cloudstack shows a url that points to a symlink on the secondary stroage vm however the symlink's path is incorrect path so the volume is not downloaded.
   
   ##### STEPS TO REPRODUCE
   <!--
   For bugs, show exactly how to reproduce the problem, using a minimal test-case. Use Screenshots if accurate.
   
   For new features, show how the feature would be used.
   -->
   1. Upload a volume from a url when using swift as secondary storage. This will fail.
   2. Download a volume when using swift as secondary storage. This will fail.
   
   <!-- Paste example playbooks or commands between quotes below -->
   ~~~
   
   ~~~
   
   <!-- You can also paste gist.github.com links for larger files -->
   
   ##### EXPECTED RESULTS
   <!-- What did you expect to happen when running the steps above? -->
   1. Volume is successfully uploaded and eventually gets to ready state.
   2. A url is shown which points to the volume to download.
   ~~~
   
   ~~~
   
   ##### ACTUAL RESULTS
   <!-- What actually happened? -->
   
   <!-- Paste verbatim command output between quotes below -->
   1. The error returned is: 
   ~~~
   org.apache.cloudstack.storage.to.VolumeObjectTO cannot be cast to org.apache.cloudstack.storage.to.TemplateObjectTO
   ~~~
   2. The url shown points at a broken symlink.


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

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



[GitHub] [cloudstack] skattoju4 commented on issue #4874: CLOUDSTACK-9341 volume import and export when using swift as secondary storage

Posted by GitBox <gi...@apache.org>.
skattoju4 commented on issue #4874:
URL: https://github.com/apache/cloudstack/issues/4874#issuecomment-811556819


   hey daan, i've added the stack trace from the management server. It fails before getting to the ssvm...


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

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



[GitHub] [cloudstack] DaanHoogland commented on issue #4874: CLOUDSTACK-9341 volume import and export when using swift as secondary storage

Posted by GitBox <gi...@apache.org>.
DaanHoogland commented on issue #4874:
URL: https://github.com/apache/cloudstack/issues/4874#issuecomment-812483986


   tnx @skattoju3 , looks like a simple case of mistaken identity, the code assumes only templates are being uploaded and never volumes.
   Can you verify that uploading a template works, please?


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

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



[GitHub] [cloudstack] DaanHoogland commented on issue #4874: CLOUDSTACK-9341 volume import and export when using swift as secondary storage

Posted by GitBox <gi...@apache.org>.
DaanHoogland commented on issue #4874:
URL: https://github.com/apache/cloudstack/issues/4874#issuecomment-809164474


   @skattoju3 can you add any stacktraces you see in the logs, and possibly from the cloud.log in the ssvm?


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

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



[GitHub] [cloudstack] skattoju4 commented on issue #4874: CLOUDSTACK-9341 volume import and export when using swift as secondary storage

Posted by GitBox <gi...@apache.org>.
skattoju4 commented on issue #4874:
URL: https://github.com/apache/cloudstack/issues/4874#issuecomment-816750209


   Yes template upload works, however download progress is not reported...


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

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