api,server: encryptformat in volume response#9106
Conversation
Fixes apache#9014 Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## 4.19 #9106 +/- ##
============================================
- Coverage 14.96% 4.30% -10.67%
============================================
Files 5373 363 -5010
Lines 469005 29302 -439703
Branches 58953 5116 -53837
============================================
- Hits 70198 1261 -68937
+ Misses 391036 27898 -363138
+ Partials 7771 143 -7628
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
|
@blueorangutan package |
|
@DaanHoogland 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]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 9675 |
|
@blueorangutan test |
|
@DaanHoogland a [SL] Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
[SF] Trillian test result (tid-10260)
|
|
@blueorangutan package |
|
@weizhouapache 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. |
| `volumes`.`path` AS `path`, | ||
| `volumes`.`chain_info` AS `chain_info`, | ||
| `volumes`.`external_uuid` AS `external_uuid`, | ||
| `volumes`.`passphrase_id` AS `passphrase_id`, |
There was a problem hiding this comment.
| `volumes`.`passphrase_id` AS `passphrase_id`, |
There was a problem hiding this comment.
@JoaoJandre , are your concerns met?
@DaanHoogland no, we should apply @weizhouapache's suggestion here, no need to have this view changed for now.
There was a problem hiding this comment.
sorry @JoaoJandre , I think we crossed messages (with Kiran in the mix) here. I don't see passphrase_id in the PR. so that means it is applied, right?
If not we'll need to create a new PR.
There was a problem hiding this comment.
Yes, @DaanHoogland, it was applied in the last commit, before merging.
|
Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 9736 |
|
@JoaoJandre , are your concerns met? |
kiranchavala
left a comment
There was a problem hiding this comment.
LGTM, In the listVolumes api the response contains
"encryptformat": "luks",
(cmk) > list volumes id=68151b4c-5967-4ce8-b747-911ad7f33c73
{
"count": 1,
"volume": [
{
"account": "admin",
"clusterid": "f9bf37c6-50a0-4cb5-ae72-5e64baa32cd2",
"clustername": "p1-c1",
"created": "2024-06-10T13:00:47+0000",
"destroyed": false,
"deviceid": 1,
"diskioread": 0,
"diskiowrite": 0,
"diskkbsread": 0,
"diskkbswrite": 0,
"diskofferingdisplaytext": "encrypted-offering",
"diskofferingid": "c401faa2-6ab7-479c-aa07-46b5786cbbe0",
"diskofferingname": "encrypted-offering",
"displayvolume": true,
"domain": "ROOT",
"domainid": "6917ae26-2724-11ef-9e8f-1e008b00026c",
"encryptformat": "luks",
"hasannotations": false,
"hypervisor": "KVM",
"id": "68151b4c-5967-4ce8-b747-911ad7f33c73",
"isextractable": true,
"name": "DATA-3",
"path": "68151b4c-5967-4ce8-b747-911ad7f33c73",
"physicalsize": 2359296,
"podid": "c46f480b-210f-455d-a31b-93eb6b8da5ed",
"podname": "Pod1",
"provisioningtype": "thin",
"quiescevm": false,
"size": 10737418240,
"state": "Ready",
"storage": "ref-trl-6784-k-Mr8-kiran-chavala-kvm-pri1",
"storageid": "299c9a7d-241c-3f54-b546-12a6bae2c537",
"storagetype": "shared",
"supportsstoragesnapshot": false,
"tags": [],
"type": "DATADISK",
"utilization": "0.0%",
"virtualmachineid": "f3ceea8a-376a-4132-a64c-57f31008eda3",
"virtualsize": 10737418240,
"vmdisplayname": "vm1",
"vmname": "vm1",
"vmstate": "Running",
"vmtype": "User",
"zoneid": "7f79d7fa-4ad3-4c00-87a7-2e7e58180757",
"zonename": "ref-trl-6784-k-Mr8-kiran-chavala"
}
]
}
engine/schema/src/main/resources/META-INF/db/views/cloud.volume_view.sql
Outdated
Show resolved
Hide resolved
|
@blueorangutan package |
|
@shwstppr 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. |
This reverts commit fcca3e8.
|
Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 9857 |
Fixes apache#9014 * api,server: encryptformat in volume response * Apply suggestions from code review * remove passphrase db change
Description
Fixes #9014
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
How did you try to break this feature and the system with this change?