Project

General

Profile

Actions

Bug #4710

closed

Problems provisioning hosts in Rackspace with 1.4.1-2

Added by Artur Martins about 10 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Category:
Compute resources
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

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 1 (0 open1 closed)

Related to Foreman - Bug #2270: Unable to create instances on OpenStack without floating IPsClosedGreg Sutcliffe03/01/2013Actions
Actions #1

Updated by Dominic Cleal about 10 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
Actions #2

Updated by Artur Martins about 10 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...

Actions #3

Updated by Artur Martins about 10 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)
Actions #4

Updated by Greg Sutcliffe about 10 years ago

  • Status changed from Assigned to Ready For Testing
Actions #5

Updated by Dominic Cleal about 10 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.

Actions #6

Updated by Greg Sutcliffe about 10 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

Actions #7

Updated by Dominic Cleal about 10 years ago

  • Status changed from Assigned to Ready For Testing
Actions #8

Updated by Dominic Cleal about 10 years ago

  • Target version changed from 1.9.0 to 1.8.4
Actions #9

Updated by Dominic Cleal almost 10 years ago

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

Updated by Greg Sutcliffe almost 10 years ago

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

Also available in: Atom PDF