EC2 Error monitoring host

Hello Everyone,
I’m trying to setup ec2 integration and am seeing an error monitoring the host:

Fri Aug 21 15:41:15 2015 [Z0][InM][D]: Monitoring host ec2 (1)
Fri Aug 21 15:41:15 2015 [Z0][InM][I]: Command execution fail: /var/lib/one/remotes/im/run_probes ec2 /var/lib/one//datastores 4124 20 1 ec2
Fri Aug 21 15:41:15 2015 [Z0][InM][I]: /var/lib/one/remotes/vmm/ec2/ec2_driver.rb:220:in `initialize': uninitialized constant EC2Driver::AWS (NameError)
Fri Aug 21 15:41:15 2015 [Z0][InM][I]: from ./poll:24:in `new'
Fri Aug 21 15:41:15 2015 [Z0][InM][I]: from ./poll:24:in `<main>'
Fri Aug 21 15:41:15 2015 [Z0][InM][E]: Error executing poll
Fri Aug 21 15:41:15 2015 [Z0][InM][I]: ExitCode: 1
Fri Aug 21 15:41:15 2015 [Z0][ONE][E]: Error monitoring Host ec2 (1): Error executing poll

I was able to locate and resolve this issue.

Based on google searches it seems the ruby aws was upgraded to v2. The fix was to require version one in /var/lib/one/remotes/vmm/ec2/ec2_driver.rb by changing

require 'aws-sdk’
to
require ‘aws-sdk-v1’

Hi,

Thanks for the feedback.

The install_gems script shipped with OpenNebula installs v1.33 of the gem, did you install the gem manually?