Adds functionality to modify VM resources 77/1477/1
authorTim Rozet <trozet@redhat.com>
Thu, 3 Sep 2015 21:12:11 +0000 (17:12 -0400)
committerTim Rozet <trozet@redhat.com>
Thu, 10 Sep 2015 17:31:52 +0000 (17:31 +0000)
commitdddec765a06dd4cf4260e79c2cca0beaa549aba6
tree17dd63a95a417019874242ca0f5a86ad2036bf97
parent94ecbe154d19dcfe2cac13075adf0a08e10a7e24
Adds functionality to modify VM resources

VM resources (vcpus, memory, disk size) are now configurable in the
opnfv_ksgen_settings files.  Each node in the ksgen settings file now
has "memory, cpus, disk" attributes:
 - cpus is an integer number of CPUs to assign to the VM
 - memory is an integer size in kilobytes
 - disk is an integer size in gigabytes

The vagrant box vmdk is resized for each VM.  Each VM will then modify
its partition to the new size, execute the normal reboot, then extend
the physical+logical volumes and filesystem using vagrant provisioning
scripts.

JIRA: APEX-1

Change-Id: I471319db14d2189052961b2f533c65850ebeb1e7
Signed-off-by: Tim Rozet <trozet@redhat.com>
(cherry picked from commit 5384a722ffae47bc3519512d34802102ebc7be5b)
foreman/ci/Vagrantfile
foreman/ci/deploy.sh
foreman/ci/opnfv_ksgen_settings.yml
foreman/ci/opnfv_ksgen_settings_no_HA.yml
foreman/ci/resize_lvm.sh [new file with mode: 0755]
foreman/ci/resize_partition.sh [new file with mode: 0755]