DIRACGrid/VMDIRAC — pull request #46 by vmendez (2013-06-19 11:18:43+00:00)
Title: Merging ubeda VMConfigUpdater with OcciImage and Occi09 using Utilities context & config

I have text new Occiimage and Occi09

Previous PR with new agent WorkloadManagement/VirtualMachineConfigUpdater was with some typos, so it has not been propelly tested before the previous PR. I have correct this typos, but....

Additionally the VirtualMachineConfigUpdater is clearly not working as expected, it is writing stop_agent file when it is not necessary, furthermore it is very CPU demanding because it is intensive looping which it is not necesary, disabling the VMMonitor stopoing feautures by twist VM CPU load

please, @ubeda, would you debug this agent in a real scenareo ? then submitting a new pull request.
see this VM log's

2013-06-19 10:53:49 UTC WorkloadManagement/VirtualMachineConfigUpdater INFO: Loading WorkloadManagement/VirtualMachineConfigUpdater
2013-06-19 10:53:49 UTC WorkloadManagement/VirtualMachineConfigUpdater NOTICE: Loaded module WorkloadManagement/VirtualMachineConfigUpdater
2013-06-19 10:53:49 UTC WorkloadManagement/VirtualMachineConfigUpdater INFO: Instance path: /opt/dirac
2013-06-19 10:53:49 UTC WorkloadManagement/VirtualMachineConfigUpdater INFO: Control path: /opt/dirac/control/*/*
2013-06-19 10:53:49 UTC WorkloadManagement/VirtualMachineConfigUpdater INFO: Stop Agent path: /opt/dirac/control/*/*/stop_agent
2013-06-19 10:53:49 UTC WorkloadManagement/VirtualMachineConfigUpdater NOTICE: ========================================
2013-06-19 10:53:49 UTC WorkloadManagement/VirtualMachineConfigUpdater NOTICE: Loaded agent module WorkloadManagement/VirtualMachineConfigUpdater
2013-06-19 10:53:49 UTC WorkloadManagement/VirtualMachineConfigUpdater NOTICE: Site: Cloud.pic.es
2013-06-19 10:53:49 UTC WorkloadManagement/VirtualMachineConfigUpdater NOTICE: Setup: VMDIRAC-Production
2013-06-19 10:53:49 UTC WorkloadManagement/VirtualMachineConfigUpdater NOTICE: Base Module version: 919bc48 (2012-04-19 18:51:40 +0200) Adri Casajs
2013-06-19 10:53:49 UTC WorkloadManagement/VirtualMachineConfigUpdater NOTICE: Agent version: $Id: $
2013-06-19 10:53:49 UTC WorkloadManagement/VirtualMachineConfigUpdater NOTICE: DIRAC version: v6r7p20
2013-06-19 10:53:49 UTC WorkloadManagement/VirtualMachineConfigUpdater NOTICE: DIRAC platform: Linux_x86_64_glibc-2.5
2013-06-19 10:53:49 UTC WorkloadManagement/VirtualMachineConfigUpdater NOTICE: Polling time: 120 seconds
2013-06-19 10:53:49 UTC WorkloadManagement/VirtualMachineConfigUpdater NOTICE: Control dir: /opt/dirac/control/WorkloadManagement/VirtualMachineConfigUpdater
2013-06-19 10:53:49 UTC WorkloadManagement/VirtualMachineConfigUpdater NOTICE: Work dir: /opt/dirac/work/WorkloadManagement/VirtualMachineConfigUpdater
2013-06-19 10:53:49 UTC WorkloadManagement/VirtualMachineConfigUpdater NOTICE: Cycles: 500
2013-06-19 10:53:49 UTC WorkloadManagement/VirtualMachineConfigUpdater NOTICE: ========================================
2013-06-19 10:53:50 UTC WorkloadManagement/VirtualMachineConfigUpdater NOTICE: ----------------------------------------
2013-06-19 10:53:50 UTC WorkloadManagement/VirtualMachineConfigUpdater NOTICE: Starting cycle for module WorkloadManagement/VirtualMachineConfigUpdater
2013-06-19 10:53:50 UTC WorkloadManagement/VirtualMachineConfigUpdater NOTICE: Remaining 500 of 500 cycles
2013-06-19 10:53:50 UTC WorkloadManagement/VirtualMachineConfigUpdater NOTICE: ----------------------------------------
2013-06-19 10:53:50 UTC WorkloadManagement/VirtualMachineConfigUpdater INFO: UPDATING > {'comment': '', 'value': 'v6r7p20', 'key': 'ReleaseVersion', 'levelsBelow': ''}
2013-06-19 10:53:50 UTC WorkloadManagement/VirtualMachineConfigUpdater INFO: Written stop_agent in: /opt/dirac/control/WorkloadManagement/VirtualMachineConfigUpdater/stop_agent
2013-06-19 10:53:50 UTC WorkloadManagement/VirtualMachineConfigUpdater INFO: Written stop_agent in: /opt/dirac/control/WorkloadManagement/JobAgent/stop_agent
2013-06-19 10:53:50 UTC WorkloadManagement/VirtualMachineConfigUpdater INFO: Written stop_agent in: /opt/dirac/control/WorkloadManagement/VirtualMachineMonitorAgent/stop_agent
2013-06-19 10:53:50 UTC WorkloadManagement/VirtualMachineConfigUpdater NOTICE: ----------------------------------------
2013-06-19 10:53:50 UTC WorkloadManagement/VirtualMachineConfigUpdater NOTICE: Agent module WorkloadManagement/VirtualMachineConfigUpdater run summary
2013-06-19 10:53:50 UTC WorkloadManagement/VirtualMachineConfigUpdater NOTICE: Executed 1 times previously
2013-06-19 10:53:50 UTC WorkloadManagement/VirtualMachineConfigUpdater NOTICE: Cycle took 0.00 seconds
2013-06-19 10:53:50 UTC WorkloadManagement/VirtualMachineConfigUpdater NOTICE: Average execution time: 0.00 seconds
2013-06-19 10:53:50 UTC WorkloadManagement/VirtualMachineConfigUpdater NOTICE: Polling time: 120 seconds
2013-06-19 10:53:50 UTC WorkloadManagement/VirtualMachineConfigUpdater NOTICE: Average execution/polling time: 0.00%
2013-06-19 10:53:50 UTC WorkloadManagement/VirtualMachineConfigUpdater NOTICE: Cycle was successful
2013-06-19 10:53:50 UTC WorkloadManagement/VirtualMachineConfigUpdater NOTICE: ----------------------------------------
2013-06-19 10:53:55 UTC WorkloadManagement/VirtualMachineConfigUpdater INFO: Found StopAgent file for agent WorkloadManagement/VirtualMachineConfigUpdater
2013-06-19 10:53:55 UTC WorkloadManagement/VirtualMachineConfigUpdater INFO: Stopping agent module WorkloadManagement/VirtualMachineConfigUpdater
2013-06-19 10:53:55 UTC WorkloadManagement/VirtualMachineConfigUpdater INFO: No more agent modules to execute. Exiting
28617: old priority 0, new priority 19
2013-06-19 10:53:58 UTC WorkloadManagement/VirtualMachineConfigUpdater INFO: Loading WorkloadManagement/VirtualMachineConfigUpdater
2013-06-19 10:53:58 UTC WorkloadManagement/VirtualMachineConfigUpdater NOTICE: Loaded module WorkloadManagement/VirtualMachineConfigUpdater
2013-06-19 10:53:58 UTC WorkloadManagement/VirtualMachineConfigUpdater INFO: Instance path: /opt/dirac
2013-06-19 10:53:58 UTC WorkloadManagement/VirtualMachineConfigUpdater INFO: Control path: /opt/dirac/control/*/*
2013-06-19 10:53:58 UTC WorkloadManagement/VirtualMachineConfigUpdater INFO: Stop Agent path: /opt/dirac/control/*/*/stop_agent
2013-06-19 10:53:58 UTC WorkloadManagement/VirtualMachineConfigUpdater NOTICE: ========================================
2013-06-19 10:53:58 UTC WorkloadManagement/VirtualMachineConfigUpdater NOTICE: Loaded agent module WorkloadManagement/VirtualMachineConfigUpdater
2013-06-19 10:53:58 UTC WorkloadManagement/VirtualMachineConfigUpdater NOTICE: Site: Cloud.pic.es
2013-06-19 10:53:58 UTC WorkloadManagement/VirtualMachineConfigUpdater NOTICE: Setup: VMDIRAC-Production
2013-06-19 10:53:58 UTC WorkloadManagement/VirtualMachineConfigUpdater NOTICE: Base Module version: 919bc48 (2012-04-19 18:51:40 +0200) Adri Casajs
2013-06-19 10:53:58 UTC WorkloadManagement/VirtualMachineConfigUpdater NOTICE: Agent version: $Id: $
2013-06-19 10:53:58 UTC WorkloadManagement/VirtualMachineConfigUpdater NOTICE: DIRAC version: v6r7p20
2013-06-19 10:53:58 UTC WorkloadManagement/VirtualMachineConfigUpdater NOTICE: DIRAC platform: Linux_x86_64_glibc-2.5
2013-06-19 10:53:58 UTC WorkloadManagement/VirtualMachineConfigUpdater NOTICE: Polling time: 120 seconds
2013-06-19 10:53:58 UTC WorkloadManagement/VirtualMachineConfigUpdater NOTICE: Control dir: /opt/dirac/control/WorkloadManagement/VirtualMachineConfigUpdater
2013-06-19 10:53:58 UTC WorkloadManagement/VirtualMachineConfigUpdater NOTICE: Work dir: /opt/dirac/work/WorkloadManagement/VirtualMachineConfigUpdater
2013-06-19 10:53:58 UTC WorkloadManagement/VirtualMachineConfigUpdater NOTICE: Cycles: 500
2013-06-19 10:53:58 UTC WorkloadManagement/VirtualMachineConfigUpdater NOTICE: ========================================
2013-06-19 10:53:59 UTC WorkloadManagement/VirtualMachineConfigUpdater NOTICE: ----------------------------------------
2013-06-19 10:53:59 UTC WorkloadManagement/VirtualMachineConfigUpdater NOTICE: Starting cycle for module WorkloadManagement/VirtualMachineConfigUpdater
2013-06-19 10:53:59 UTC WorkloadManagement/VirtualMachineConfigUpdater NOTICE: Remaining 500 of 500 cycles
2013-06-19 10:53:59 UTC WorkloadManagement/VirtualMachineConfigUpdater NOTICE: ----------------------------------------
2013-06-19 10:53:59 UTC WorkloadManagement/VirtualMachineConfigUpdater INFO: UPDATING > {'comment': '', 'value': '', 'key': 'ReleaseVersion', 'levelsBelow': ''}
2013-06-19 10:53:59 UTC WorkloadManagement/VirtualMachineConfigUpdater INFO: Written stop_agent in: /opt/dirac/control/WorkloadManagement/VirtualMachineConfigUpdater/stop_agent
2013-06-19 10:53:59 UTC WorkloadManagement/VirtualMachineConfigUpdater INFO: Written stop_agent in: /opt/dirac/control/WorkloadManagement/JobAgent/stop_agent
2013-06-19 10:53:59 UTC WorkloadManagement/VirtualMachineConfigUpdater INFO: Written stop_agent in: /opt/dirac/control/WorkloadManagement/VirtualMachineMonitorAgent/stop_agent
2013-06-19 10:53:59 UTC WorkloadManagement/VirtualMachineConfigUpdater NOTICE: ----------------------------------------
2013-06-19 10:53:59 UTC WorkloadManagement/VirtualMachineConfigUpdater NOTICE: Agent module WorkloadManagement/VirtualMachineConfigUpdater run summary
2013-06-19 10:53:59 UTC WorkloadManagement/VirtualMachineConfigUpdater NOTICE: Executed 1 times previously
2013-06-19 10:53:59 UTC WorkloadManagement/VirtualMachineConfigUpdater NOTICE: Cycle took 0.00 seconds
2013-06-19 10:53:59 UTC WorkloadManagement/VirtualMachineConfigUpdater NOTICE: Average execution time: 0.00 seconds
2013-06-19 10:53:59 UTC WorkloadManagement/VirtualMachineConfigUpdater NOTICE: Polling time: 120 seconds
2013-06-19 10:53:59 UTC WorkloadManagement/VirtualMachineConfigUpdater NOTICE: Average execution/polling time: 0.00%
2013-06-19 10:53:59 UTC WorkloadManagement/VirtualMachineConfigUpdater NOTICE: Cycle was successful