cloudstack/engine
Daniel Augusto Veronezi Salvador 8a16729fcf
Support vm dynamic scaling with kvm (#4878)
* Create utility to centralize byte convertions

* Add/change toString definitions

* Create Libvirt handler to ScaleVmCommand

* Enable dynamic scalling VM with KVM

* Move config from interface to class and rename it

As every variable declared in interfaces are already final,
this moving will be needed to mock tests in nexts commits

* Configure VM max memory and cpu cores

The values are according to service offering or global configs

* Extract dpdk configuration to a method and test it

* Extract OS desc config to a method and test it

* Extract guest resource def to a method and test it

Improve libvirt def

* Refactor LibvirtVMDef.GuestResourceDef

* Refactor ScaleVmCommand

* Improve VMInstaVO toString()

* Refactor upgradeRunningVirtualMachine method

* Turn int variables into long on utility

* Verify if VM is scalable on KVMGuru

* Rename some KVMGuruTest's methods

* Change vm's xml to work with max memory

* Verify if service offering is dynamic before scale

* Create methods to retrieve data from domain

* Create def to hotplug memory

* Adjust the way command was scaling the VM

* Fix database persistence before executing command

* Send more info to host to improve log

* Fix var name

* Fix missing "}"

* Undo unnecessary changes

* Address review

* Fix scale validation

* Add VM prepared for dynamic scaling validation

* Refactor LibvirtScaleVmCommandWrapper and improve unit tests

* Remove duplicated method

* Add RuntimeException check

* Remove copyright from header

* Remove copyright from header

* Remove copyright from header

* Remove copyright from header

* Remove copyright from header

* Update ByteScaleUtilsTest.java

Co-authored-by: Daniel Augusto Veronezi Salvador <daniel@scclouds.com.br>
2021-08-21 09:29:02 +02:00
..
api Support vm dynamic scaling with kvm (#4878) 2021-08-21 09:29:02 +02:00
components-api Global setting to select preferred storage pool (#5249) 2021-08-12 00:01:15 -03:00
network Updating pom.xml version numbers for release 4.15.2.0-SNAPSHOT 2021-07-02 22:59:07 +05:30
orchestration Support vm dynamic scaling with kvm (#4878) 2021-08-21 09:29:02 +02:00
schema Support vm dynamic scaling with kvm (#4878) 2021-08-21 09:29:02 +02:00
service Updating pom.xml version numbers for release 4.15.2.0-SNAPSHOT 2021-07-02 22:59:07 +05:30
storage Remove storage scope validation on KVM live migration (#5321) 2021-08-20 14:54:14 -03:00
pom.xml Updating pom.xml version numbers for release 4.15.2.0-SNAPSHOT 2021-07-02 22:59:07 +05:30