Commit Graph
79 Commits
Author SHA1 Message Date
Javi Fontan 8974940f1b feature #595: added tests to OpenNebulaDriver 2011-06-01 18:17:19 +02:00
Javi Fontan a0853526a2 feature #595: added documentation 2011-06-01 18:15:47 +02:00
Javi Fontan 2891715205 feature #595: changed initializers to use options hash 2011-06-01 18:15:24 +02:00
Javi Fontan 48c20f57a2 feature #595: moved read_configuration to OpenNebulaDriver 2011-06-01 18:12:26 +02:00
Javi Fontan c2ec359873 feature #595: scripts always get id and host as parameters 2011-05-30 16:53:48 +02:00
Javi Fontan 06aff6c8d5 feature #595: do_actions now accepts default script name 2011-05-27 19:10:25 +02:00
Javi Fontan 856089c30a feature #595: refactored code to eliminate duplicate functionality 2011-05-27 13:05:08 +02:00
Javi Fontan 89ac12ebcd feature #595: changed comments and formating 2011-05-27 12:46:37 +02:00
Javi Fontan e5734fbc74 feature #595: vmm changes to support local exec
Added support code to driver libraries so they support both local and remote scripts execution. one_vmm_ssh driver was modified to test these changes.
2011-05-27 00:14:58 +02:00
Javi Fontan 3f0b0b75e8 feature #575: added scripts_common for ruby 2011-05-10 16:08:05 +02:00
Javi Fontan bcbcadd9e1 feature #575: added severities to log messages 2011-04-15 19:56:54 +02:00
Javi Fontan a931140e9d feature #575: bug in local_command 2011-04-15 18:39:25 +02:00
Ruben S. Montero e246af0fe5 feature #575: Some refactor of opennebula drivers code. Command execution wrappers moved to base class 2011-04-14 01:10:20 +02:00
Javi Fontan 5a3408a64b Log everything that comes from stderr(cherry picked from commit ba954f3bb3458d2439b5ea853fb18b8b74de91d7) 2011-04-13 00:16:36 +02:00
Javi Fontan e23cf14f33 Added error message parsing to im and vmm
(cherry picked from commit ca5c0f09f0a7ce68d8c32dfe85731d11751d43d4)
2011-04-13 00:15:52 +02:00
Javi Fontan da63aaadd4 Moved get_error_message from TM to CommandManager
(cherry picked from commit f038c2c36afd3b899da428698e7d5cd29d281747)
2011-04-13 00:15:40 +02:00
Jaime Melis 4980255942 Update copyright year to 2011 2011-02-25 14:34:44 +01:00
Javi Fontan 41423417c0 Ganglia probes more reliable and bug fixes 2011-02-15 22:22:19 +01:00
Carlos Martín b98c4d8cee Various bug-fixes for MAD subsystem:
* install.sh: 2 unneeded files were copied and then replaced by the generic poll_xen_kvm.rb file.
* CommandManager.rb: Fix for retry condition.
* poll_xen_kvm.rb:
    STATUS changed to STATE. The core couldn't identify the current state before.
    Deletion of quotes for values. This prevented the core from parsing correctly the monitoring values.
    Fix for hypervisor auto-detection.
2011-02-14 18:45:54 +01:00
Ruben S. Montero 2acd334aec added license header to files 2011-02-10 23:36:58 +01:00
Javi Fontan ff8e45daf3 New probes and ganglia readers (from branch feature-446)
Feature #244: Network interface statistics for KVM
Feature #446: Probe to get monitoring info from ganglia
Feature #472: Get cpu consumption from KVM VMs

poll_xen_kvm.rb - This new probe gets information from XEN and KVM vms.
If it is called with the name of a VM then its monitoring information
is written in standard poll probe way. If called without parameters
a base64-encoded yaml-representation of a hash containing the information
about all the VMs running in the host is returned.

poll_ganglia.rb - This probe gets information from ganglia pushed by gmetric.
Consumes the information generated by poll_xen_kvm.rb

ganglia_probe - Gets host monitoring information from ganglia. It pushes all
metrics that start by OPENNEBULA_

Ganglia.rb - library that holds ganglia reading code
2011-02-10 11:43:04 +01:00
Ruben S. Montero 73b13ff4a8 feature #466: SSH VMM driver can execute polls locally. Also VMM drivers get options for the number of threads and retries 2011-02-02 23:19:05 +01:00
Ruben S. Montero 6fdc67f6bd feature #457: retries is now an option for IMs. Also the number of retries defaults to 0 for all drivers 2011-01-20 18:36:37 +01:00
Tino Vázquez fd2fe9c9e3 feature #457: making execution of remote commands tolerant to network errors by adding retry 2011-01-20 17:15:02 +01:00
Daniel Molina 2b1f217033 Fix bug in RemotesCommand class
(cherry picked from commit 55596e2c41)
2010-11-29 19:04:51 +01:00
Ruben S. Montero 9422a293a5 bug #412: Re-use Command object to handle errors 2010-11-19 16:08:21 +01:00
Ruben S. Montero d687c966dd bug #412: Remotes update 2010-11-19 15:11:09 +01:00
Ruben S. Montero 52974fe883 bug #412: RemoteCommand update 2010-11-19 15:05:49 +01:00
Ruben S. Montero c4dbdf53ef bug #412: Fix remotes location for RemoteCommand. Checks info string to be returned to the core. Includes std output for local_actions 2010-11-19 14:43:40 +01:00
Daniel Molina 8d6573b3ed Fix bash syntax error 2010-11-17 18:36:52 +01:00
Daniel Molina ffce3651c0 Add RemotesCommand to check remote files existence in worker nodes 2010-11-17 15:33:39 +01:00
Jaime Melis eb3bd9e6df bug #380: Fixed correct path for read_configuration method 2010-10-28 20:50:17 +02:00
Tino Vázquez c1e52597ae Local_action definition 2010-10-04 19:27:55 +02:00
Javi Fontan 64f1b7e459 Stopped using Array#index as it is not compatible with ruby 1.8.5 2010-09-15 16:48:36 +02:00
Javi Fontan 6bb52aeaec bug #339: remote scripts directory is defined in oned.conf 2010-09-10 16:44:45 +02:00
Javi Fontan 002f81b050 VMM driver now uses indices to select actions 2010-09-02 14:29:22 +02:00
Javi Fontan 5f563d3953 Optimized getting new actions in VirtualMachineDriver 2010-09-01 14:56:02 +02:00
Javi Fontan adb44a051c Bug in VirtialMachineDriver initialization 2010-09-01 11:52:52 +02:00
Javi Fontan 4bc49760cf VMM now sends only one action per host at the same time 2010-08-31 18:37:00 +02:00
Javi Fontan 93e8a6bea4 ActionManager supports custom get and delete actions 2010-08-31 18:37:00 +02:00
Ruben S. Montero 3462215fa9 Removed unused files 2010-08-31 17:02:13 +02:00
Ruben S. Montero 5e083026af Bug #260 wrong delete_at method, removed kill! 2010-07-19 18:53:20 +02:00
Javi Fontan e7ee28a91d ActionManager calls a finalize function if defined 2010-07-01 11:54:14 +02:00
Javier Fontán Muiños fdfe10407e Changed copyright notice 2010-02-22 18:00:30 +01:00
Javier Fontán Muiños 156f463624 Bug in Driver action manager
git-svn-id: http://svn.opennebula.org/one/trunk@859 3034c82b-c49b-4eb3-8279-a7acafdc01c0
2009-10-14 17:49:02 +00:00
Javier Fontán Muiños e9017be87a Kill threads with the safer version so any opened pipes are closed.
git-svn-id: http://svn.opennebula.org/one/trunk@670 3034c82b-c49b-4eb3-8279-a7acafdc01c0
2009-07-10 13:49:57 +00:00
Rubén S. Montero d965eb44aa Merge of the OpenNebulaXML branch (-r535:HEAD)
git-svn-id: http://svn.opennebula.org/one/trunk@667 3034c82b-c49b-4eb3-8279-a7acafdc01c0
2009-07-09 14:34:34 +00:00
Rubén S. Montero 8a547d4d7e #104: Adds the VM name (deploy id) to the RESTORE Action. KVM & XEN driver
has been updated.


git-svn-id: http://svn.opennebula.org/one/trunk@517 3034c82b-c49b-4eb3-8279-a7acafdc01c0
2009-05-08 21:26:42 +00:00
Javier Fontán Muiños 2497bb9ff2 Added support for variable message length to ActionManager
git-svn-id: http://svn.opennebula.org/one/trunk@440 3034c82b-c49b-4eb3-8279-a7acafdc01c0
2009-04-01 12:07:03 +00:00
Javier Fontán Muiños 18347958b4 Callbacks are no longer needed for command execution
git-svn-id: http://svn.opennebula.org/one/trunk@424 3034c82b-c49b-4eb3-8279-a7acafdc01c0
2009-03-18 16:02:15 +00:00