ec2 server create fails (instance name not found)


#1

Has anyone else see and/or worked around the following error:

knife ec2 server create The instance ID does
not exist (Fog::Compute::AWS::NotFound)

I see this:

http://tickets.opscode.com/browse/KNIFE-207

We’re hitting that exact thing.

Any suggestions?


#2

Full error is here:

00:38:30.897 /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/excon-0.16.10/lib/excon/connection.rb:292:in
request_kernel': The instance ID 'i-7783871c' does not exist (Fog::Compute::AWS::NotFound) 00:38:30.897 from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/excon-0.16.10/lib/excon/connection.rb:103:inrequest’
00:38:30.898 from
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/fog-1.9.0/lib/fog/core/connection.rb:21:in
request' 00:38:30.898 from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/fog-1.9.0/lib/fog/aws/compute.rb:384:in_request’
00:38:30.898 from
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/fog-1.9.0/lib/fog/aws/compute.rb:379:in
request' 00:38:30.898 from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/fog-1.9.0/lib/fog/aws/requests/compute/create_tags.rb:36:increate_tags’
00:38:33.454 from
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/fog-1.9.0/lib/fog/aws/models/compute/tag.rb:27:in
save' 00:38:35.782 from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/fog-1.9.0/lib/fog/core/collection.rb:52:increate’
00:38:35.853 from
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/knife-ec2-0.6.2/lib/chef/knife/ec2_server_create.rb:239:in
block in run' 00:38:35.853 from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/knife-ec2-0.6.2/lib/chef/knife/ec2_server_create.rb:238:ineach_pair’
00:38:35.854 from
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/knife-ec2-0.6.2/lib/chef/knife/ec2_server_create.rb:238:in
run' 00:38:35.854 from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/knife.rb:408:inrun_with_pretty_exceptions’
00:38:35.854 from
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/knife.rb:168:in
run' 00:38:35.854 from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/application/knife.rb:123:inrun’
00:38:35.854 from
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.16.2/bin/knife:25:in
<top (required)>' 00:38:35.854 from /usr/bin/knife:23:inload’
00:38:35.854 from /usr/bin/knife:23:in `'
00:38:35.854 Had an issue with razor-ui - exiting

On Mon, Mar 18, 2013 at 7:31 PM, Maven User maven.2.user@gmail.com wrote:

Has anyone else see and/or worked around the following error:

knife ec2 server create The instance ID does
not exist (Fog::Compute::AWS::NotFound)

I see this:

http://tickets.opscode.com/browse/KNIFE-207

We’re hitting that exact thing.

Any suggestions?


#3

I have seen this from time to time. It seems to be an annoying race condition where Fog tries to exec against an instance that hasn’t become available yet. Try running it again and see how it goes.

On Mar 18, 2013, at 8:13 PM, Maven User maven.2.user@gmail.com wrote:

Full error is here:

00:38:30.897 /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/excon-0.16.10/lib/excon/connection.rb:292:in
request_kernel': The instance ID 'i-7783871c' does not exist (Fog::Compute::AWS::NotFound) 00:38:30.897 from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/excon-0.16.10/lib/excon/connection.rb:103:inrequest’
00:38:30.898 from
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/fog-1.9.0/lib/fog/core/connection.rb:21:in
request' 00:38:30.898 from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/fog-1.9.0/lib/fog/aws/compute.rb:384:in_request’
00:38:30.898 from
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/fog-1.9.0/lib/fog/aws/compute.rb:379:in
request' 00:38:30.898 from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/fog-1.9.0/lib/fog/aws/requests/compute/create_tags.rb:36:increate_tags’
00:38:33.454 from
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/fog-1.9.0/lib/fog/aws/models/compute/tag.rb:27:in
save' 00:38:35.782 from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/fog-1.9.0/lib/fog/core/collection.rb:52:increate’
00:38:35.853 from
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/knife-ec2-0.6.2/lib/chef/knife/ec2_server_create.rb:239:in
block in run' 00:38:35.853 from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/knife-ec2-0.6.2/lib/chef/knife/ec2_server_create.rb:238:ineach_pair’
00:38:35.854 from
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/knife-ec2-0.6.2/lib/chef/knife/ec2_server_create.rb:238:in
run' 00:38:35.854 from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/knife.rb:408:inrun_with_pretty_exceptions’
00:38:35.854 from
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/knife.rb:168:in
run' 00:38:35.854 from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/application/knife.rb:123:inrun’
00:38:35.854 from
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.16.2/bin/knife:25:in
<top (required)>' 00:38:35.854 from /usr/bin/knife:23:inload’
00:38:35.854 from /usr/bin/knife:23:in `'
00:38:35.854 Had an issue with razor-ui - exiting

On Mon, Mar 18, 2013 at 7:31 PM, Maven User maven.2.user@gmail.com wrote:

Has anyone else see and/or worked around the following error:

knife ec2 server create The instance ID does
not exist (Fog::Compute::AWS::NotFound)

I see this:

http://tickets.opscode.com/browse/KNIFE-207

We’re hitting that exact thing.

Any suggestions?


#4

Yeah, fails randomly, I’ve adjusted my local knife ec2 plugin to make
it wait and am testing now…

If it works, and I get no errors, I’ll submit a pull request…

On Mon, Mar 18, 2013 at 8:24 PM, Adam Ochonicki adam@fromonesrc.com wrote:

I have seen this from time to time. It seems to be an annoying race condition where Fog tries to exec against an instance that hasn’t become available yet. Try running it again and see how it goes.

On Mar 18, 2013, at 8:13 PM, Maven User maven.2.user@gmail.com wrote:

Full error is here:

00:38:30.897 /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/excon-0.16.10/lib/excon/connection.rb:292:in
request_kernel': The instance ID 'i-7783871c' does not exist (Fog::Compute::AWS::NotFound) 00:38:30.897 from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/excon-0.16.10/lib/excon/connection.rb:103:inrequest’
00:38:30.898 from
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/fog-1.9.0/lib/fog/core/connection.rb:21:in
request' 00:38:30.898 from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/fog-1.9.0/lib/fog/aws/compute.rb:384:in_request’
00:38:30.898 from
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/fog-1.9.0/lib/fog/aws/compute.rb:379:in
request' 00:38:30.898 from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/fog-1.9.0/lib/fog/aws/requests/compute/create_tags.rb:36:increate_tags’
00:38:33.454 from
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/fog-1.9.0/lib/fog/aws/models/compute/tag.rb:27:in
save' 00:38:35.782 from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/fog-1.9.0/lib/fog/core/collection.rb:52:increate’
00:38:35.853 from
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/knife-ec2-0.6.2/lib/chef/knife/ec2_server_create.rb:239:in
block in run' 00:38:35.853 from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/knife-ec2-0.6.2/lib/chef/knife/ec2_server_create.rb:238:ineach_pair’
00:38:35.854 from
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/knife-ec2-0.6.2/lib/chef/knife/ec2_server_create.rb:238:in
run' 00:38:35.854 from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/knife.rb:408:inrun_with_pretty_exceptions’
00:38:35.854 from
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/knife.rb:168:in
run' 00:38:35.854 from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/application/knife.rb:123:inrun’
00:38:35.854 from
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.16.2/bin/knife:25:in
<top (required)>' 00:38:35.854 from /usr/bin/knife:23:inload’
00:38:35.854 from /usr/bin/knife:23:in `'
00:38:35.854 Had an issue with razor-ui - exiting

On Mon, Mar 18, 2013 at 7:31 PM, Maven User maven.2.user@gmail.com wrote:

Has anyone else see and/or worked around the following error:

knife ec2 server create The instance ID does
not exist (Fog::Compute::AWS::NotFound)

I see this:

http://tickets.opscode.com/browse/KNIFE-207

We’re hitting that exact thing.

Any suggestions?