Re: On demand provisioning of virtual machines using vmware

503 views
Skip to first unread message
Message has been deleted

Oleg Nenashev

unread,
Oct 2, 2015, 9:26:36 AM10/2/15
to Jenkins Developers
Hi Jorge,

FYI, vSphere Cloud Plugin provides the Cloud implementation for Jenkins, which does exactly the requested thing.

Best regards,
Oleg

среда, 30 сентября 2015 г., 17:44:36 UTC+3 пользователь Jorge Peña Cotarelo написал:

After researching a while among the plugins available, I found that

  1. JClouds plugin would suit better for this specific need. However there is no support of JClouds for VMWare
  2. vSphere Cloud Plugin from Jenkins can automate the normal operations on Vsphere (creating or deleting vms, configuring, snapshots etc), but on the top of that I would need to code the layer that analyses the Jenkins queue and fires up a vm when the demand is required

  3. Scripted cloud plugin from Jenkins allows to run scripts to run your VMs and stop them whenever they are not needed, but they need to be created at first.

  4. VMware ESXi/vSphere Auto-Scaling Plugin from Cloudbees do the same of above but
    it is a commercial / Jenkins Pro plugin and I don't have a clear idea of what it does / how it works

Looks like option 1 would be the best for my use case, but due to lack of support I will go for option two... Unless somebody here knows a better alternative?

Jesse Glick

unread,
Oct 2, 2015, 10:19:24 AM10/2/15
to Jenkins Dev
On Fri, Oct 2, 2015 at 9:26 AM, Oleg Nenashev <o.v.ne...@gmail.com> wrote:
> vSphere Cloud Plugin provides the Cloud implementation for Jenkins,
> which does exactly the requested thing.

Is this actually true?

https://github.com/jenkinsci/vsphere-cloud-plugin/blob/487bb7fb9ba573aeec5a5feb43d249164ce352d5/src/main/java/org/jenkinsci/plugins/vSphereCloud.java#L172-L180

As far as I can make out, it pretends to provide a `Cloud`
implementation, but this is really just a placeholder which could have
been a `GlobalConfiguration`; it does not seem to actually provision
anything automatically. Instead you need to explicitly create all
slaves:

https://github.com/jenkinsci/vsphere-cloud-plugin/blob/487bb7fb9ba573aeec5a5feb43d249164ce352d5/src/main/java/org/jenkinsci/plugins/vSphereCloudSlave.java#L363-L370

The CloudBees plugin does provide a true `Cloud` with elastic
provisioning of slaves:

http://documentation.cloudbees.com/docs/cje-user-guide/vmware-sect-cloud.html

(It does not currently support creation of new VMs from template; you
need to have a pool of VMs ready.)

The feature sets are somewhat different: the OSS plugin provides
various build steps to act on vSphere, such as setting the number of
CPU cores per socket.

Oleg Nenashev

unread,
Oct 4, 2015, 5:12:14 AM10/4/15
to Jenkins Developers
My bad, Jesse is right. The OSS plugin does not support Cloud provisioning.

пятница, 2 октября 2015 г., 17:19:24 UTC+3 пользователь Jesse Glick написал:
Reply all
Reply to author
Forward
Message has been deleted
0 new messages