Bug #4710
closedProblems provisioning hosts in Rackspace with 1.4.1-2
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
Updated by Dominic Cleal almost 11 years ago
- Category set to Compute resources
- Status changed from New to Assigned
- Assignee set to Greg Sutcliffe
- Target version set to 1.9.0
- Translation missing: en.field_release set to 7
Updated by Artur Martins almost 11 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...
Updated by Artur Martins almost 11 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)
Updated by Greg Sutcliffe almost 11 years ago
- Status changed from Assigned to Ready For Testing
Updated by Dominic Cleal almost 11 years ago
- Translation missing: en.field_release changed from 7 to 4
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.
Updated by Greg Sutcliffe almost 11 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
Updated by Dominic Cleal almost 11 years ago
- Status changed from Assigned to Ready For Testing
Updated by Dominic Cleal almost 11 years ago
- Target version changed from 1.9.0 to 1.8.4
Updated by Dominic Cleal almost 11 years ago
- Related to Bug #2270: Unable to create instances on OpenStack without floating IPs added
Updated by Greg Sutcliffe almost 11 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 70 to 100
Applied in changeset 346b20ee4b7ffa6c4c929c7716c46775f3339705.