andrijapanicsb opened a new issue #3191: Copy template between zones fails with 
md5 mismatch
URL: https://github.com/apache/cloudstack/issues/3191
 
 
   <!--
   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
    
   ##### COMPONENT NAME
   <!--
   Categorize the issue, e.g. API, VR, VPN, UI, etc.
   -->
   ~~~
   SSVM
   ~~~
   
   ##### CLOUDSTACK VERSION
   <!--
   New line separated list of affected versions, commit ID for issues on master 
branch.
   -->
   
   ~~~
   4.11.2
   ~~~
   
   ##### CONFIGURATION
   <!--
   Information about the configuration if relevant, e.g. basic network, 
advanced networking, etc.  N/A otherwise
   -->
   1 region, 2 zones, template registered/exists in zone1
   
   ##### OS / ENVIRONMENT
   <!--
   Information about the environment if relevant, N/A otherwise
   -->
   Issue confirmed on both KVM and VMware as Hypervisors
   
   ##### SUMMARY
   <!-- Explain the problem/feature briefly -->
   
   When copying existing template from Zone1 to Zone2 (copyTemplate API call), 
md5 checksum between soruce and destination (copied/downloaded to Zone2) 
template fails
   
   ##### 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.
   -->
   
   <!-- Paste example playbooks or commands between quotes below -->
   ~~~
   Register a template in Zone1, wait until Ready, thy to copy to Zone2 via 
GUI/API
   ~~~
   
   <!-- You can also paste gist.github.com links for larger files -->
   
   ##### EXPECTED RESULTS
   <!-- What did you expect to happen when running the steps above? -->
   
   ~~~
   Template copy works (did work in some of 4.5 or 4.6)
   ~~~
   
   ##### ACTUAL RESULTS
   <!-- What actually happened? -->
   
   <!-- Paste verbatim command output between quotes below -->
   ~~~
   Copy operation is shown as success  (in GUI at least), but actually fails 
with errors (visible in GUI), from SSVM cloud.log "Failed post download script: 
checksum "{MD5}f916328a9273c511b36e7062a1b12262" didn't match the given value, 
"{MD5}a92d0b7882f9c3660bb6536206f1ee2a""
   
   Further analysis, show that we are comparing destination md5 with a wrong 
source md5 - check the image https://pasteboard.co/I2eJYPb4.png or in other 
words:
   In case of VMware env,  when we register the template with Zone1, there are 
2 OVA files created on Secondary Storage in Zone1  i.e.
    f960f054-2be3-3431-b876-72b2814fdeb3.ova
   and 
   202-2-cac71084-dacc-35e8-9404-f72660bec1c3.ova
   (both identical sizes)
   
   Checking cloud.log in SSVM in Zone2 during copyTemplate API call, we can see 
we are copying over 202-2-cac71084-dacc-35e8-9404-f72660bec1c3.ova file to 
Zone2 – BUT we are then comparing md5sum (of downloaded file) to the wrong 
source file f960f054-2be3-3431-b876-72b2814fdeb3.ova.
   
   I did not capture logs from KVM env, but as far as I recall, it failed with 
same error message.
   
   ~~~
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to