Project

General

Profile

Actions

Support #10936

closed

unable to provision new discovered host

Added by tony zheng almost 9 years ago. Updated almost 8 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Unattended installations
Target version:
-
Triaged:
Fixed in Releases:
Found in Releases:

Description

it says
Warning!

Failed to replace interfaces because one or more of the new records could not be saved.

full trace:
ActiveRecord::RecordNotSaved
Failed to replace interfaces because one or more of the new records could not be saved.
app/models/host/base.rb:282:in `becomes'
app/models/host.rb:15:in `method_missing'
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'


Files

foreman-debug-7BOJB.tar.xz foreman-debug-7BOJB.tar.xz 2.81 MB tony zheng, 06/25/2015 05:02 PM
node2.debug.out node2.debug.out 79.3 KB tony zheng, 06/26/2015 10:42 AM
fdi.debug.out fdi.debug.out 79.8 KB tony zheng, 06/26/2015 10:42 AM
Actions #1

Updated by Marek Hulán almost 9 years ago

Could you add more info please? I don't see the error that you've mentioned anywhere in foreman-debug log, where did you find the trace? According to the message, it seems that something is wrong with networking, like discovered interfaces are invalid in Foreman.

Actions #2

Updated by tony zheng almost 9 years ago

i get this error message when i highlight the newly discovered host and then click provision.
the discover was successful so i dont know how could the network will have problem.
thx

Actions #3

Updated by tony zheng almost 9 years ago

by the way the clients have network interface names as enp7s0f0, enp7s0f1, enp14s0f0 and enp14s0f1, not using typical network naming such as eth1 and eth2. just so you know. i dont know if that might be the problem.
thx

Updated by tony zheng almost 9 years ago

my bad. i just realized i run discovery-debug on the foreman server instead of the clients. here are debug output from clients. thanks,

Actions #5

Updated by Lukas Zapletal almost 9 years ago

I discovered a host using the facts provided and it worked just fine with 1.8/3.0 discovery. The error message is weird, I cannot find it in Foreman code base. When do you see it? Does it block provisioning?

Actions #6

Updated by tony zheng almost 9 years ago

i now just find see that it has a invalid network interface there because i had an ip address change. i tried to delete that interface and it is not letting me. i tried to delete the whole proxy server and re-create and it wont let me either. i even tried to delete the whole organization all together so i can recreate it wont let me either. can you provide me a proper procedure on how to do any of that? or even to delete the whole foreman database so i can start from begining will work too.

thanks,

Actions #7

Updated by Lukas Zapletal almost 9 years ago

Another user hit this.

Can you guys describe properly how did you get there? I cannot reproduce on my systems. At what stage do you see this error?

Actions #8

Updated by larry campbell almost 9 years ago

Lukas Zapletal wrote:

Another user hit this.

Can you guys describe properly how did you get there? I cannot reproduce on my systems. At what stage do you see this error?

I am seeing this same issue as well. This is occurring on a "discovered" machine (Dell PowerEdge R320) using discovery image 2.1 and Foreman 1.8.2/discovery 3.0.0.

Actions #9

Updated by larry campbell almost 9 years ago

larry campbell wrote:

I am seeing this same issue as well. This is occurring on a "discovered" machine (Dell PowerEdge R320) using discovery image 2.1 and Foreman 1.8.2/discovery 3.0.0.

One thing to point out, if I just "Add Host" and tie the mac address into the interface, the machine deploys successfully. It seems there's some issue with the Facts that discovery is sending to Foreman that get lost / broken when the "provision" button is hit.

Actions #10

Updated by tony zheng almost 9 years ago

i got my issue resolved already. my problem was that the proxy server (also foreman server itself) was in a dual-home, so i have to edit the interface entries under the foreman host itself before it can provision other machines.

thanks for getting back to me anyway ;)

Actions #11

Updated by larry campbell almost 9 years ago

Can you elaborate on the changes you made? It might help me fix my problem (and identify where the "glitch" is)

tony zheng wrote:

i got my issue resolved already. my problem was that the proxy server (also foreman server itself) was in a dual-home, so i have to edit the interface entries under the foreman host itself before it can provision other machines.

Actions #12

Updated by tony zheng almost 9 years ago

is your foreman server (or the proxy server) dual homed? if yes, you might want to check under host properties for the NICs to make sure they have proper ip addresses assigned and correct primary and provisional interface set.

Actions #13

Updated by Anonymous almost 8 years ago

  • Status changed from New to Resolved

Seems to be fixed.

Actions

Also available in: Atom PDF