Details
Description
ubuntu@ec2:~$ sudo knife ec2 server create "role[store]" -Z eu-west-1a -i ami-a54d67d1 -G default -x ubuntu
/var/lib/gems/1.8/gems/excon-0.2.0/lib/excon/connection.rb:69:in `request': The AMI ID 'ami-a54d67d1' does not exist (Fog::AWS::EC2::NotFound)
from /var/lib/gems/1.8/gems/fog-0.2.24/lib/fog/connection.rb:20:in `request'
from /var/lib/gems/1.8/gems/fog-0.2.24/lib/fog/aws/ec2.rb:193:in `request'
from /var/lib/gems/1.8/gems/fog-0.2.24/lib/fog/aws/requests/ec2/run_instances.rb:101:in `run_instances'
from /var/lib/gems/1.8/gems/fog-0.2.24/lib/fog/aws/models/ec2/server.rb:141:in `save'
from /var/lib/gems/1.8/gems/fog-0.2.24/lib/fog/collection.rb:47:in `create'
from /usr/lib/ruby/1.8/chef/knife/ec2_server_create.rb:124:in `run'
from /usr/lib/ruby/1.8/chef/knife.rb:127:in `run'
from /usr/lib/ruby/1.8/chef/application/knife.rb:118:in `run'
from /usr/bin/knife:25
But if you look at http://uec-images.ubuntu.com/releases/10.04/release/ you see that ami-a54d67d1 is valid AMI ID for the region eu-west-1.
Btw, I've tried several other AMI IDs, the only one command that worked for me was
> knife ec2 server create "role[store]" -i ami-2d4aa444 -G default -x ubuntu
The workaround is to create an instance
> ec2-run-instances ami-a54d67d1 --instance-type m1.large --region eu-west-1 --key pstam-keypair
and then bootstrap it
> knife bootstrap ec2-.....eu-west-1.compute.amazonaws.com -r "role[store]" -x ubuntu -i /home/ubuntu/.ssh/ec2_ssh_key --sudo
Issue Links
- relates to
-
KNIFE-119
Mixlib/CLI is overwriting values defined in knife.rb with DEFAULT values
-
Activity
- All
- Comments
- History
- Activity
- Transitions Summary
| Field | Original Value | New Value |
|---|---|---|
| Project | Chef [ 10000 ] | Knife EC2 Plugin [ 10020 ] |
| Key | CHEF-1602 | KNIFE_EC2-9 |
| Affects Version/s | 0.9.8 [ 10079 ] | |
| Component/s | Knife [ 10070 ] |
| Status | Open [ 1 ] | Closed [ 6 ] |
| Resolution | Cannot Reproduce [ 5 ] |
| Resolution | Cannot Reproduce [ 5 ] | |
| Status | Closed [ 6 ] | Reopened [ 4 ] |
| Comment | [ Unable to get this working in non-us-east instances regardless of arguments, changing defaults in knife.rb to simplify the command, etc. At a minimum more verbose logging needs to be added to expose the real issue. ] |
| Link | This issue relates to KNIFE_EC2-80 [ KNIFE_EC2-80 ] |
| Status | Reopened [ 4 ] | Closed [ 6 ] |
| Resolution | Fixed [ 1 ] |
| Resolution | Fixed [ 1 ] | |
| Status | Closed [ 6 ] | Reopened [ 4 ] |
| Status | Reopened [ 4 ] | Closed [ 6 ] |
| Fix Version/s | 0.6.0 [ 10902 ] | |
| Resolution | Fixed [ 1 ] |
| Project | Knife EC2 Plugin [ 10020 ] | Knife Plugins [ 10228 ] |
| Key | KNIFE_EC2-9 |
|
| Workflow | jira [ 12229 ] | New OSS [ 22690 ] |
| Reporter | Christian Pesch [ cpesch ] | Bryan McLellan [ btm ] |
| Component/s | knife-ec2 [ 11093 ] | |
| Fix Version/s | ec2-0.6.0 [ 11140 ] | |
| Fix Version/s | 0.6.0 [ 10902 ] |