Re: [ovirt-users] workflow suggestion for the creating and destroying the VMs?

Yes, thanks for mentioning puppet, we have foreman for the bare metal systems. I was looking something like preboot hook script, to mount the /dev/sda and copy some stuff there. Is it possible to do that with cloud-init/sysprep? On Thu, Jul 20, 2017 at 1:32 PM, Karli Sjöberg <karli@inparadise.se> wrote:
Den 20 juli 2017 13:29 skrev Arman Khalatyan <arm2arm@gmail.com>:
Hi, Can some one share an experience with dynamic creating and removing VMs based on the load? Currently I am just creating with the python SDK a clone of the apache worker, are there way to copy some config files to the VM before starting it ?
E.g. Puppet could easily swing that sort of job. If you deploy also Foreman, it could automate the entire procedure. Just a suggestion
/K
Thanks, Arman.
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

On Fri, Jul 21, 2017 at 6:07 AM, Arman Khalatyan <arm2arm@gmail.com> wrote:
Yes, thanks for mentioning puppet, we have foreman for the bare metal systems. I was looking something like preboot hook script, to mount the /dev/sda and copy some stuff there. Is it possible to do that with cloud-init/sysprep?
It is. However, I'd like to remind you that we also have some scale-up features you might want to consider - you can hot-add CPU and memory to VMs, which in some workloads (but not all) can be helpful and easier. (Hot-removing though is a bigger challenge.) Y.
On Thu, Jul 20, 2017 at 1:32 PM, Karli Sjöberg <karli@inparadise.se> wrote:
Den 20 juli 2017 13:29 skrev Arman Khalatyan <arm2arm@gmail.com>:
Hi, Can some one share an experience with dynamic creating and removing VMs based on the load? Currently I am just creating with the python SDK a clone of the apache worker, are there way to copy some config files to the VM before starting it ?
E.g. Puppet could easily swing that sort of job. If you deploy also Foreman, it could automate the entire procedure. Just a suggestion
/K
Thanks, Arman.
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

thanks,the downscaling is important for me, i was testing something like: 1) clone from actual vm(super slow,even if it is 20GB OS, needs more investigation,nfs is bottle neck) 2) start it with dhcp, 3) somehow find the ip 4) sync parameters between running vm and new vm. looks that everything might be possible with the python sdk... are there some examples or tutorials with cloudinitscripts? Am 21.07.2017 3:58 nachm. schrieb "Yaniv Kaul" <ykaul@redhat.com>:
On Fri, Jul 21, 2017 at 6:07 AM, Arman Khalatyan <arm2arm@gmail.com> wrote:
Yes, thanks for mentioning puppet, we have foreman for the bare metal systems. I was looking something like preboot hook script, to mount the /dev/sda and copy some stuff there. Is it possible to do that with cloud-init/sysprep?
It is.
However, I'd like to remind you that we also have some scale-up features you might want to consider - you can hot-add CPU and memory to VMs, which in some workloads (but not all) can be helpful and easier. (Hot-removing though is a bigger challenge.) Y.
On Thu, Jul 20, 2017 at 1:32 PM, Karli Sjöberg <karli@inparadise.se> wrote:
Den 20 juli 2017 13:29 skrev Arman Khalatyan <arm2arm@gmail.com>:
Hi, Can some one share an experience with dynamic creating and removing VMs based on the load? Currently I am just creating with the python SDK a clone of the apache worker, are there way to copy some config files to the VM before starting it ?
E.g. Puppet could easily swing that sort of job. If you deploy also Foreman, it could automate the entire procedure. Just a suggestion
/K
Thanks, Arman.
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

On Fri, Jul 21, 2017 at 12:06 PM, Arman Khalatyan <arm2arm@gmail.com> wrote:
thanks,the downscaling is important for me,
It really depends on the guest OS cooperation. While off-lining a CPU is relatively easy, hot-unplugging memory is a bigger challenge for the OS. i was testing something like:
1) clone from actual vm(super slow,even if it is 20GB OS, needs more investigation,nfs is bottle neck) 2) start it with dhcp, 3) somehow find the ip 4) sync parameters between running vm and new vm.
looks that everything might be possible with the python sdk...
are there some examples or tutorials with cloudinitscripts?
https://github.com/oVirt/ovirt-engine-sdk/blob/master/sdk/examples/start_vm_... But you could also use Ansible, might be even easier: http://docs.ansible.com/ansible/latest/ovirt_vms_module.html#examples Y.
Am 21.07.2017 3:58 nachm. schrieb "Yaniv Kaul" <ykaul@redhat.com>:
On Fri, Jul 21, 2017 at 6:07 AM, Arman Khalatyan <arm2arm@gmail.com> wrote:
Yes, thanks for mentioning puppet, we have foreman for the bare metal systems. I was looking something like preboot hook script, to mount the /dev/sda and copy some stuff there. Is it possible to do that with cloud-init/sysprep?
It is.
However, I'd like to remind you that we also have some scale-up features you might want to consider - you can hot-add CPU and memory to VMs, which in some workloads (but not all) can be helpful and easier. (Hot-removing though is a bigger challenge.) Y.
On Thu, Jul 20, 2017 at 1:32 PM, Karli Sjöberg <karli@inparadise.se> wrote:
Den 20 juli 2017 13:29 skrev Arman Khalatyan <arm2arm@gmail.com>:
Hi, Can some one share an experience with dynamic creating and removing VMs based on the load? Currently I am just creating with the python SDK a clone of the apache worker, are there way to copy some config files to the VM before starting it ?
E.g. Puppet could easily swing that sort of job. If you deploy also Foreman, it could automate the entire procedure. Just a suggestion
/K
Thanks, Arman.
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
participants (3)
-
Arman Khalatyan
-
Karli Sjöberg
-
Yaniv Kaul