Commit Graph
92 Commits
Author SHA1 Message Date
Ruben S. Montero 504f0f557d feature #863: Update VirtualMachine Driver base class to new protocol 2011-11-11 00:45:08 +01:00
Ruben S. Montero d582636e47 bug: wrong access to exitstatus
(cherry picked from commit 1aad41ffe6)
2011-09-16 12:10:27 +02:00
Javi Fontan 1abd55d030 feature #715: changed tm_nfs name to tm_shared
(cherry picked from commit 67d278990b282e98f2968b204cc44b2e3e324f8d)
2011-09-15 14:57:37 +02:00
Ruben S. Montero 72008ecfb7 feature-754: New auth driver. Minor indent changes. 2011-07-27 17:50:49 +02:00
Javi Fontan 9fb107065e feature #595: changed tests as the code now is different
Old expectations are still in the test commented as I am not really
sure the code or tests are right.

TODO: revise tests and library behavior
2011-07-05 15:58:50 +02:00
Javi Fontan 6693c8e04a Changed ruby mad test to be runable from test dir 2011-06-18 18:59:35 +02:00
Ruben S. Montero 41bbe8ccb9 bug: removed unneeded command execution when remotes dir is missing 2011-06-18 02:27:23 +02:00
Ruben S. Montero 778e17eb65 bug: fixes update functionality 2011-06-18 02:11:56 +02:00
Ruben S. Montero b796817b97 bug: remote dir is not recreated if removed 2011-06-18 01:26:45 +02:00
Javi Fontan 6dfb611413 feature #595: now remotes copy is retried 2011-06-15 19:26:38 +02:00
Javi Fontan b659e39942 feature #595: tests for OpenNebulaDriver local_action and log 2011-06-03 17:16:49 +02:00
Javi Fontan 4c124e45fd feature #595: tests for OpenNebulaDriver#remotes_action 2011-06-01 23:07:44 +02:00
Javi Fontan 2fa210659e feature #595: remove whitespace 2011-06-01 18:19:20 +02:00
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