Re: [one-users] [feature-request] Time-based deployment of virtual machines?

2014-06-24 Thread Carlos Martín Sánchez
Hi,

On Thu, Jun 12, 2014 at 11:53 AM, Valerio Schiavoni 
valerio.schiav...@gmail.com wrote:


 Is there an easy way to list all the VMs which do not have a scheduled
 shutdown (so that we can send reminders to those users) ?


You can do that easily with a ruby script, or any other language parsing
the onevm list -x output. The scheduled actions are stored inside each VM
template, look for VM/USER_TEMPLATE/SCHED_ACTION

VM
...
  USER_TEMPLATE
SCHED_ACTION
  ACTION![CDATA[shutdown-hard]]/ACTION
  ID![CDATA[0]]/ID
  TIME![CDATA[1412719200]]/TIME
/SCHED_ACTION
  /USER_TEMPLATE
...
/VM

Regards
--
Carlos Martín, MSc
Project Engineer
OpenNebula - Flexible Enterprise Cloud Made Simple
www.OpenNebula.org | cmar...@opennebula.org | @OpenNebula
http://twitter.com/opennebula cmar...@opennebula.org


On Thu, Jun 12, 2014 at 11:53 AM, Valerio Schiavoni 
valerio.schiav...@gmail.com wrote:

 Dear Javier,
 thanks for the pointer to the scheduled actions support.
 True, this goes already in the direction of what I was asking, I was not
 aware of this feature.

 Is there an easy way to list all the VMs which do not have a scheduled
 shutdown (so that we can send reminders to those users) ?

 Then, it would be awesome to have a calendar-view that shows, according to
 the scheduled actions, how many virtual machines are going to be running in
 a given period of time, etc. That is, to make the open-nebula provisioning
 system aware of the scheduled action.

 Best regards,
 Valerio

 ___
 Users mailing list
 Users@lists.opennebula.org
 http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] [feature-request] Time-based deployment of virtual machines?

2014-06-12 Thread Javier Fontan
Maybe is not exactly what you want but I think this can be
accomplished with scheduled actions:

http://docs.opennebula.org/4.6/user/virtual_resource_management/vm_guide_2.html#scheduling-actions



On Wed, Jun 11, 2014 at 4:18 PM, Valerio Schiavoni
valerio.schiav...@gmail.com wrote:
 Hello,
 one of the features we'd like for OpenNebula is to allow for time-based
 deployments of virtual machines.

 We'd love ON to support the following two scenarios:
 - upon a new deployment alongside the number of virtual machines to deploy,
 the template, etc,  the user also specifies for how long (in terms of time -
 days/minutes/hours/seconds ) it is going to need  the given virtual
 machine(s);

 - similarly, the user could alternatively specify from when (the starting
 time, from now to the future) to when (anytime after the start time);

 Optionally, sunstone should offer a nice calendar-view with the
 current/future deployments.

 Do you know if such features are scheduled for a future release of
 OpenNebula ?


 Thanks,
 Valerio

 ___
 Users mailing list
 Users@lists.opennebula.org
 http://lists.opennebula.org/listinfo.cgi/users-opennebula.org




-- 
Javier Fontán Muiños
Developer
OpenNebula - Flexible Enterprise Cloud Made Simple
www.OpenNebula.org | @OpenNebula | github.com/jfontan
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] [feature-request] Time-based deployment of virtual machines?

2014-06-12 Thread Valerio Schiavoni
Dear Javier,
thanks for the pointer to the scheduled actions support.
True, this goes already in the direction of what I was asking, I was not
aware of this feature.

Is there an easy way to list all the VMs which do not have a scheduled
shutdown (so that we can send reminders to those users) ?

Then, it would be awesome to have a calendar-view that shows, according to
the scheduled actions, how many virtual machines are going to be running in
a given period of time, etc. That is, to make the open-nebula provisioning
system aware of the scheduled action.

Best regards,
Valerio
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org