Pearl1594 opened a new pull request #5379:
URL: https://github.com/apache/cloudstack/pull/5379
### Description
This PR filters images stores belonging to a zone while listing the download
details of the template in a specific zone
<!---
*********************************************************************************
-->
<!--- NOTE: AUTOMATATION USES THE DESCRIPTIONS TO SET LABELS AND PRODUCE
DOCUMENTATION. -->
<!--- PLEASE PUT AN 'X' in only **ONE** box -->
<!---
*********************************************************************************
-->
### Types of changes
- [ ] 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)
### Feature/Enhancement Scale or Bug Severity
#### Bug Severity
- [ ] BLOCKER
- [ ] Critical
- [ ] Major
- [X] Minor
- [ ] Trivial
### Screenshots (if appropriate):
### How Has This Been Tested?
#### Prior Fix:
```
(localcloud) 🐱 > list templates id=ef78027a-06ed-11ec-b12a-5254009b8de5
(CentOS 5.5(64-bit) no GUI (KVM)) templatefilter=all
filter=name,zonename,zoneid,downloaddetails
{
"count": 2,
"template": [
{
"downloaddetails": [
{
"datastore":
"nfs://172.20.0.1/export/testing/qa1-testzone415-e0bb22b0-kvm/sec1", <---
store of zone1
"downloadPercent": "100",
"downloadState": "DOWNLOADED"
},
{
"datastore":
"nfs://172.20.0.1/export/testing/qa1-testzone415-e0bb22b0-kvm/sec2", <---
store of zone2
"downloadPercent": "100",
"downloadState": "DOWNLOAD_IN_PROGRESS"
}
],
"name": "CentOS 5.5(64-bit) no GUI (KVM)",
"zoneid": "acdaf7ed-453f-472d-be42-113f09752667",
"zonename": "z1"
},
{
"downloaddetails": [
{
"datastore":
"nfs://172.20.0.1/export/testing/qa1-testzone415-e0bb22b0-kvm/sec1", <---
store of zone1
"downloadPercent": "100",
"downloadState": "DOWNLOADED"
},
{
"datastore":
"nfs://172.20.0.1/export/testing/qa1-testzone415-e0bb22b0-kvm/sec2", <---
store of zone2
"downloadPercent": "100",
"downloadState": "DOWNLOAD_IN_PROGRESS"
}
],
"name": "CentOS 5.5(64-bit) no GUI (KVM)",
"zoneid": "59dc8b78-85c5-4a24-9d0c-6f79578a0633",
"zonename": "z2"
}
]
}
```
#### Post Fix:
```
(localcloud) 🐱 > list templates id=ef78027a-06ed-11ec-b12a-5254009b8de5
(CentOS 5.5(64-bit) no GUI (KVM)) templatefilter=all
filter=name,zonename,zoneid,downloaddetails
{
"count": 2,
"template": [
{
"downloaddetails": [
{
"datastore":
"nfs://172.20.0.1/export/testing/qa1-testzone415-e0bb22b0-kvm/sec1",
"downloadPercent": "100",
"downloadState": "DOWNLOADED"
}
],
"name": "CentOS 5.5(64-bit) no GUI (KVM)",
"zoneid": "acdaf7ed-453f-472d-be42-113f09752667",
"zonename": "z1"
},
{
"downloaddetails": [
{
"datastore":
"nfs://172.20.0.1/export/testing/qa1-testzone415-e0bb22b0-kvm/sec2",
"downloadPercent": "100",
"downloadState": "DOWNLOADED"
}
],
"name": "CentOS 5.5(64-bit) no GUI (KVM)",
"zoneid": "59dc8b78-85c5-4a24-9d0c-6f79578a0633",
"zonename": "z2"
}
]
}
```
#### Image store details for reference
```
(localcloud) 🐱 > list imagestores filter=name,zonename,
{
"count": 2,
"imagestore": [
{
"name":
"nfs://172.20.0.1/export/testing/qa1-testzone415-e0bb22b0-kvm/sec2",
"zonename": "z2"
},
{
"name":
"nfs://172.20.0.1/export/testing/qa1-testzone415-e0bb22b0-kvm/sec1",
"zonename": "z1"
}
]
}
```
<!-- Please read the
[CONTRIBUTING](https://github.com/apache/cloudstack/blob/main/CONTRIBUTING.md)
document -->
--
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]