Bug #4710

Problems provisioning hosts in Rackspace with 1.4.1-2

Added by Artur Martins over 3 years ago. Updated over 3 years ago.

Status:Closed
Priority:Normal
Assigned To:Greg Sutcliffe
Category:Compute resources
Target version:Sprint 22
Difficulty: Bugzilla link:
Found in release: Pull request:
Story points-
Velocity based estimate-
Release1.5.0Release relationshipAuto

Description

Unable to save host in Rackspace

From logs:

waiting for instance to acquire ip address
Failed to get IP for [server_name.domain]: undefined method `public_ip_addresses' for #
<Fog::Compute::RackspaceV2::Server:[server_id_hash]>/usr/share/foreman/app/models/concerns/orchestration/compute.rb:121:in `setComputeIP'
/usr/share/foreman/vendor/ruby/1.8/gems/fog-1.19.0/lib/fog/core/model.rb:67:in `instance_eval'
/usr/share/foreman/vendor/ruby/1.8/gems/fog-1.19.0/lib/fog/core/model.rb:67:in `wait_for'
/usr/share/foreman/vendor/ruby/1.8/gems/fog-1.19.0/lib/fog/core/wait_for.rb:5:in `wait_for'
/usr/share/foreman/vendor/ruby/1.8/gems/fog-1.19.0/lib/fog/core/model.rb:64:in `wait_for'
/usr/share/foreman/app/models/concerns/orchestration/compute.rb:120:in `setComputeIP'
/usr/share/foreman/app/models/concerns/orchestration.rb:148:in `send'
...

It seems to be related to #4616


Related issues

Related to Foreman - Bug #2270: Unable to create instances on OpenStack without floating IPs Closed 03/01/2013

Associated revisions

Revision 346b20ee
Added by Greg Sutcliffe over 3 years ago

Fixes #4710, #2270 - Wait for VM to become ready before looking for IPs

History

#1 Updated by Dominic Cleal over 3 years ago

  • Category set to Compute resources
  • Status changed from New to Assigned
  • Assigned To set to Greg Sutcliffe
  • Target version set to Sprint 21
  • Release set to 1.4.2

#2 Updated by Artur Martins over 3 years ago

Sorry,incorrect version: 1.4.1-1

Nevertheless I I changed the files,
  • app/models/concerns/orchestration/compute.rb
  • app/models/concerns/fog_extensions/rackspace_v2/server.rb

to match the patch http://projects.theforeman.org/projects/foreman/repository/revisions/4963a970e3ee2a91835f4ab5a493179d96cdeedf

Unfortunately I get a new error: "Unable to save - ip value is blank!".
I do not know if it helps...

#3 Updated by Artur Martins over 3 years ago

Started GET "/tasks/d8966770-534f-4f09-9ef7-d196f0658fb9" for 87.198.179.238 at Wed Mar 19 15:24:20 +0000 2014
Processing by TasksController#show as */*
  Parameters: {"id"=>"d8966770-534f-4f09-9ef7-d196f0658fb9"}
  Rendered tasks/_list.html.erb (0.6ms)
Completed 200 OK in 3.5ms (Views: 1.2ms | ActiveRecord: 0.3ms)
Failed to save: ip value is blank!
  Rendered hosts/_progress.html.erb (0.2ms)
  Rendered puppetclasses/_selectedClasses.html.erb (0.0ms)

#4 Updated by Greg Sutcliffe over 3 years ago

  • Status changed from Assigned to Ready For Testing

#5 Updated by Dominic Cleal over 3 years ago

  • Release changed from 1.4.2 to 1.5.0

Although I'm bumping this particular fix to 1.5.0, I'm reverting the one that caused it (#2270) for Foreman 1.4.2 so this issue should become resolved.

#6 Updated by Greg Sutcliffe over 3 years ago

  • Status changed from Ready For Testing to Assigned
  • % Done changed from 0 to 70

#2270 was reverted due to problems, I'm currently working on a better solution where we use Fog's ready?() function to wait a bit before asking for IPs

#7 Updated by Dominic Cleal over 3 years ago

  • Status changed from Assigned to Ready For Testing

#8 Updated by Dominic Cleal over 3 years ago

  • Target version changed from Sprint 21 to Sprint 22

#9 Updated by Dominic Cleal over 3 years ago

  • Related to Bug #2270: Unable to create instances on OpenStack without floating IPs added

#10 Updated by Greg Sutcliffe over 3 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 70 to 100

Also available in: Atom PDF