Fix template details deletion while updating template from UI#12559
Fix template details deletion while updating template from UI#12559sureshanaparti merged 2 commits intoapache:4.20from
Conversation
|
@sureshanaparti a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress. |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## 4.20 #12559 +/- ##
============================================
- Coverage 16.26% 16.26% -0.01%
Complexity 13428 13428
============================================
Files 5660 5660
Lines 499914 499959 +45
Branches 60696 60707 +11
============================================
+ Hits 81318 81324 +6
- Misses 409523 409561 +38
- Partials 9073 9074 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
UI build: ✔️ |
|
@blueorangutan package |
|
@sureshanaparti a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 16655 |
|
@blueorangutan test |
|
@DaanHoogland a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
|
[SF] Trillian test result (tid-15350)
|
|
@sureshanaparti As discussed the issue still exists, tested with the pr packages |
|
@sureshanaparti a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress. |
|
@blueorangutan package |
|
@sureshanaparti a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
|
UI build: ✔️ |
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 16678 |
kiranchavala
left a comment
There was a problem hiding this comment.
The ui works fine, facing with the manual executing of the API call
(localcloud) 🐱 > list templates id=21ebaea2-d7c3-4471-ace3-396d5cb5d57e filter=details, templatefilter=all
{
"count": 1,
"template": [
{
"details": {
"rootDiskController": "osdefault"
}
}
]
}
(localcloud) 🐱 > update template id=21ebaea2-d7c3-4471-ace3-396d5cb5d57e details[0].UEFI=secure filter=details
{
"template": {
"details": {
"UEFI": "SECURE"
}
}
}
(localcloud) 🐱 > list templates id=21ebaea2-d7c3-4471-ace3-396d5cb5d57e filter=details, templatefilter=all
{
"count": 1,
"template": [
{
"details": {
"UEFI": "SECURE"
}
}
]
}
kiranchavala
left a comment
There was a problem hiding this comment.
LGTM
From the ui , the fix is working
Screen.Recording.2026-02-03.at.1.38.07.PM.mov
For the API part , if you want to add a single detail to a resource please use the
https://cloudstack.apache.org/api/apidocs-4.22/apis/addResourceDetail.html
https://cloudstack.apache.org/api/apidocs-4.22/apis/listResourceDetails.html
(localcloud) 🐱 > add resourcedetail resourceid=21ebaea2-d7c3-4471-ace3-396d5cb5d57e resourcetype=template details[0].key=UEFI details[0].value=secure
{
"success": true
}
(localcloud) 🐱 > list resourcedetails resourcetype=template resourceid=21ebaea2-d7c3-4471-ace3-396d5cb5d57e
{
"count": 2,
"resourcedetail": [
{
"fordisplay": true,
"key": "rootDiskController",
"resourceid": "21ebaea2-d7c3-4471-ace3-396d5cb5d57e",
"resourcetype": "Template",
"value": "scsi"
},
{
"fordisplay": true,
"key": "UEFI",
"resourceid": "21ebaea2-d7c3-4471-ace3-396d5cb5d57e",
"resourcetype": "Template",
"value": "secure"
}
]
}
Description
This PR fixes the template details deletion while updating template from UI.
Fixes #12456
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
Updated rootdiskcontoller for the template (having some existing details) from UI.
How did you try to break this feature and the system with this change?