Project

General

Profile

Actions

Bug #10938

closed

Crash during the provisioning when trying to overwrite the interface IP

Added by Anthony Lapenna almost 9 years ago. Updated almost 9 years ago.

Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
Compute resources - VMware
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Foreman is not able to provision a machine using an IP address already registered in the DNS.

Scenario:

  • Create a host using network provisioning
  • Use DCHP to attribute an IP address to the machine's interface
  • Submit the creation

Now, Foreman may warn about a conflict for the DNS entry, something like "A PTR entry already exists for IP_ADDRESS/HOSTNAME.DOMAIN" (translation).

Now go back to the interface tab, push the overwrite button and foreman crashes with the following exception:

Net::Validations::Error
Invalid MAC
lib/net/validations.rb:40:in `validate_mac'
lib/net/dhcp/record.rb:7:in `initialize'
app/models/concerns/orchestration/dhcp.rb:19:in `new'
app/models/concerns/orchestration/dhcp.rb:19:in `dhcp_record'
app/models/concerns/orchestration/dhcp.rb:131:in `queue_remove_dhcp_conflicts'
app/models/concerns/orchestration/dhcp.rb:85:in `queue_dhcp'
app/models/concerns/orchestration.rb:48:in `valid?'
app/models/concerns/orchestration.rb:48:in `valid?'
app/models/concerns/foreman/sti.rb:29:in `save_with_type'
app/controllers/hosts_controller.rb:84:in `create'
app/controllers/concerns/application_shared.rb:13:in `set_timezone'
app/models/concerns/foreman/thread_session.rb:32:in `clear_thread'
lib/middleware/catch_json_parse_errors.rb:9:in `call' 

Related issues 1 (0 open1 closed)

Is duplicate of Foreman - Bug #5859: VM creation fails after IP conflictClosedIvan Necas05/21/2014Actions
Actions #1

Updated by Dominic Cleal almost 9 years ago

  • Is duplicate of Bug #5859: VM creation fails after IP conflict added
Actions #2

Updated by Dominic Cleal almost 9 years ago

  • Status changed from New to Duplicate

Thanks for the report, this is tracked as #5859 and is a bug in the compute orchestration code. It's skipping the VM creation when "Override" is used when it shouldn't be.

Actions

Also available in: Atom PDF