Adding memoryallocatedpercentage & memoryallocatedbytes to HostsResponse & HostsForMigrationResponse#4478
Adding memoryallocatedpercentage & memoryallocatedbytes to HostsResponse & HostsForMigrationResponse#4478DaanHoogland merged 1 commit intoapache:4.14apache/cloudstack:4.14from
Conversation
c88d297 to
1c938d9
Compare
|
@blueorangutan package |
|
@blueorangutan package |
|
@davidjumani a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
@weizhouapache Is it fine that the memory is numeric but CPU is in percentage ? Or would it be better to have new |
|
Packaging result: ✔centos7 ✖centos8 ✔debian. JID-2400 |
|
@blueorangutan test |
|
@DaanHoogland a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
@davidjumani it would be better. but it might break backwards compatibility (hope few users will be impacted). |
|
Trillian test result (tid-3198)
|
| hostResponse.setMemWithOverprovisioning(decimalFormat.format(memWithOverprovisioning)); | ||
| hostResponse.setMemoryAllocated(decimalFormat.format((float) mem / memWithOverprovisioning * 100.0f) +"%"); | ||
| hostResponse.setMemoryAllocated(mem); | ||
|
|
There was a problem hiding this comment.
It will but we can introduce two new fields memoryallocaedpercentage & cpuallocaedpercentage to compensate.
This will ensure that the response for both HostResponse and HostForMigrationResponse will be the same. Sounds good @rhtyd ?
|
€0,02: we can add responce parameters that are alligned for both -precentages and -values and leave these alone alltogether. @weizhouapache @rhtyd @davidjumani ? |
@DaanHoogland good to me. and mark the cpuallocated and memoryallocated as deprecated ? |
yes |
Sounds good! I'll make the changes |
…nse & HostsForMigrationResponse
1c938d9 to
8226351
Compare
|
@DaanHoogland @weizhouapache Added |
|
yes 👍 don't bother for now but I'm creating a ticket do implement the same for cpu #4488 |
|
@blueorangutan package |
|
@DaanHoogland a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔centos7 ✖centos8 ✔debian. JID-2413 |
|
I don't think we need smoke tests for this. restarted two of the travis runs |
Description
Fixes #4460
Adds
memoryallocatedpercentage&memoryallocatedbytesto HostsResponse as well as HostsForMigrationResponse and deprecatesmemoryallocatedTypes of changes
How Has This Been Tested?