ERF50-9294 [Foreman::WrappedException]: Unable to find IP address for .. When I submit New Host

Hello friends,

When I New Host, It disaplay an error at the moment I click the Submit
button.

[root@foreman bruce]# foreman-debug

HOSTNAME: foreman.beijing.com
OS: redhat
RELEASE: CentOS Linux release 7.1.1503 (Core)
FOREMAN: 1.8.2
RUBY: ruby 2.0.0p598 (2014-11-13) [x86_64-linux]
PUPPET: 3.8.1
DENIALS: 4

A debug file has been created: /tmp/foreman-debug-SAFFl.tar.xz (349360
bytes)

You may want to upload the tarball to our public server via rsync. There is
a
write only directory (readable only by Foreman core developers) for that.
Note
the rsync transmission is UNENCRYPTED:

rsync /tmp/foreman-debug-SAFFl.tar.xz
rsync://theforeman.org/debug-incoming

Do you want to do this now? [y/N] y
Uploading…
The tarball has been uploaded, please contact us on mailing list or IRC.

<https://lh3.googleusercontent.com/-gW4vVEt3nNI/VYkRRFB0mNI/AAAAAAAAACY/jVeWvQkFxrk/s1600/CentOS7-2015-06-23-15-51-28.png>

Could somebody give me some advice?

Thank you!

Xudong

Make sure your DNS is setup correctly and the names resolves, including
"foreman.bejing.com"…

LZ

··· -- Later, Lukas #lzap Zapletal

In your foreman proxy, in /etc/foreman-proxy/settings.d/tftp.yml

try to add :tftp_servername: 10.102.11.51

with 10.102.11.51 being the IP of the foreman proxy. Then restart the
proxy and try again.

··· On Tue, Jun 23, 2015 at 12:57:49AM -0700, Xudong Li wrote: > Hello friends, > > When I New Host, It disaplay an error at the moment I click the Submit > button.


(o- Julien Pivotto
//\ Open-Source Consultant
V_/_ Inuits - https://www.inuits.eu

Thanks for your support, The TFTP config file contents is this:

[root@foreman ~]# cat /etc/foreman-proxy/settings.d/tftp.yml

··· --- # TFTP management :enabled: http :tftproot: /var/lib/tftpboot/ # Defines the TFTP Servername to use, overrides the name in the subnet declaration :tftp_servername: 192.168.80.128

I have restart foreman-proxy, even more I restart the machine, However it
still give this error.

I have already enable the DNS service in foreman-proxy!

Thx

在 2015年6月23日星期二 UTC+8下午8:18:09,Julien Pivotto写道:

On Tue, Jun 23, 2015 at 12:57:49AM -0700, Xudong Li wrote:

Hello friends,

When I New Host, It disaplay an error at the moment I click the Submit
button.

In your foreman proxy, in /etc/foreman-proxy/settings.d/tftp.yml

try to add :tftp_servername: 10.102.11.51

with 10.102.11.51 being the IP of the foreman proxy. Then restart the
proxy and try again.


(o- Julien Pivotto
//\ Open-Source Consultant
V_/_ Inuits - https://www.inuits.eu

Hey

> :enabled: http

This is invalid syntax, enabled expects "true" or "false". You had to
make an error when running installer and looks like some parameters (if
not most) are wrong.

Doublecheck what you provided and fix this. I'd suggest you to start
over and be more careful.

··· -- Later, Lukas #lzap Zapletal

Hi

Thanks for your suggestion, I Have started over and It works well now.

BR

在 2015年6月24日星期三 UTC+8下午7:34:00,Lukas Zapletal写道:

··· > > Hey > > > :enabled: http > > This is invalid syntax, enabled expects "true" or "false". You had to > make an error when running installer and looks like some parameters (if > not most) are wrong. > > Doublecheck what you provided and fix this. I'd suggest you to start > over and be more careful. > > -- > Later, > Lukas #lzap Zapletal >

Lucas and all, is this planned to be actually fixed and tftp_server could
be specified as FQDN instead of an IP?

Thanks!

> Lucas and all, is this planned to be actually fixed and tftp_server could
> be specified as FQDN instead of an IP?

Sorry, what is the context here?

··· -- Later, Lukas #lzap Zapletal