Bug #2821
onehost create EC2-zone results in "Command execution fail" if capacity is not filled in for all instance types
Status: | Closed | Start date: | 03/31/2014 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | Ruben S. Montero | % Done: | 0% | |
Category: | Drivers - VM | |||
Target version: | Release 4.6 | |||
Resolution: | fixed | Pull request: | ||
Affected Versions: | OpenNebula 4.6 |
Description
Add a EC2 host:
onehost create eu-west-1 --im ec2 --vm ec2 --net dummy
Resulting in:
Mon Mar 31 14:56:06 2014 [InM][D]: Monitoring host eu-west-1 (4)
Mon Mar 31 14:56:07 2014 [InM][I]: Command execution fail:
/var/lib/one/remotes/im/run_probes ec2 /var/lib/one//datastores 4124 20
4 eu-west-1
Mon Mar 31 14:56:07 2014 [InM][I]:
/var/lib/one/remotes/vmm/ec2/ec2_driver.rb:304:in `*': nil can't be
coerced into Float (TypeError)
Mon Mar 31 14:56:07 2014 [InM][I]: from
/var/lib/one/remotes/vmm/ec2/ec2_driver.rb:304:in `block in
monitor_all_vms'
Mon Mar 31 14:56:07 2014 [InM][I]: from
/var/lib/one/remotes/vmm/ec2/ec2_driver.rb:303:in `each'
Mon Mar 31 14:56:07 2014 [InM][I]: from
/var/lib/one/remotes/vmm/ec2/ec2_driver.rb:303:in `monitor_all_vms'
Mon Mar 31 14:56:07 2014 [InM][I]: from ./poll:26:in `<main>'
Mon Mar 31 14:56:07 2014 [InM][E]: Error executing poll
Relevant info in ec2_driver.conf:
eu-west-1:
region_name: eu-west-1
access_key_id: STRING
secret_access_key: ANOTHER_STRING
capacity:
t1.micro: 1
m1.small:
m1.large:
m1.xlarge:
If a "0" is defined for instances that should not be used (or erased completely) the host is correctly monitored. Expected behaviour: If instance type is not defined assume "0" as default.
Associated revisions
bug #2821: Check configuration file data for regions and instance types
History
#1 Updated by Ruben S. Montero over 7 years ago
- Category set to Drivers - VM
- Status changed from Pending to New
- Target version set to Release 4.6
#2 Updated by Ruben S. Montero about 7 years ago
- Assignee set to Ruben S. Montero
#3 Updated by Ruben S. Montero about 7 years ago
- Status changed from New to Closed
- Resolution set to fixed