Pearl1594 opened a new pull request #4297:
URL: https://github.com/apache/cloudstack/pull/4297
## Description
Incorrect checksums for systemVM template along the 4.13.1 to 4.14 upgrade
path, causes failure in downloading/ syncing the systemVM templates on other /
newly added image stores
### Steps to reproduce
1. Deploy a 4.14 setup - with a single image store
2. Once the env is up and running, add another image store
3. When the template sync happens on the newly added image store, the
systemVM template fails the checksum verification
```
*************************** 4. row ***************************
id: 23
store_id: 2
template_id: 3
created: 2020-07-13 10:07:49
last_updated: 2020-07-13 10:08:22
job_id: 099eeb3a-c980-4dc6-8e00-28203c59feef
download_pct: 100
size: 0
store_role: Image
physical_size: 0
download_state: DOWNLOAD_IN_PROGRESS
error_str: Download success, starting install
local_path:
/mnt/SecStorage/32ea45f5-76bb-3b1f-ac10-6aa9939f771f/template/tmpl/1/3/dnld5468597899343935001tmp_
install_path: template/tmpl/1/3
url: NULL
state: Creating
destroyed: 0
is_copy: 0
update_count: 1
ref_cnt: 0
updated: 2020-07-13 10:07:49
download_url_created: NULL
download_url: NULL
4 rows in set (0.00 sec)
*************************** 4. row ***************************
id: 23
store_id: 2
template_id: 3
created: 2020-07-13 10:07:49
last_updated: 2020-07-13 10:08:43
job_id: 099eeb3a-c980-4dc6-8e00-28203c59feef
download_pct: 100
size: 0
store_role: Image
physical_size: 0
download_state: DOWNLOAD_ERROR
error_str: Failed post download script: checksum
"{MD5}4978e6e6140d167556f201496549a498" didn't match the given value,
"{MD5}d15ed159be32151b07e3211caf9cb802"
local_path:
/mnt/SecStorage/32ea45f5-76bb-3b1f-ac10-6aa9939f771f/template/tmpl/1/3/dnld5468597899343935001tmp_
install_path: template/tmpl/1/3
url: NULL
state: Allocated
destroyed: 0
is_copy: 0
update_count: 2
ref_cnt: 0
updated: 2020-07-13 10:08:43
download_url_created: NULL
download_url: NULL
4 rows in set (0.00 sec)
```
## Types of changes
<!--- What types of changes does your code introduce? Put an `x` in all the
boxes that apply: -->
- [ ] Breaking change (fix or feature that would cause existing
functionality to change)
- [ ] New feature (non-breaking change which adds functionality)
- [X] Bug fix (non-breaking change which fixes an issue)
- [ ] Enhancement (improves an existing feature and functionality)
- [ ] Cleanup (Code refactoring and cleanup, that may add test cases)
----------------------------------------------------------------
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:
[email protected]