Hi All,
I recently updated from Foreman Discovery 1.4 to Foreman Discovery 2.0,
following the instructions at
Foreman :: Plugin Manuals .
I was able to boot one host successfully and load facts to Foreman, but
then something happened and now the host cannot communicate with the
Foreman Proxy.
The host will load the fdi-image fine. When the image tries to register
itself, it hits the URL http://foreman.example.org/discovery/create but it
gets a 404 response.
When I look on my Foreman host at /var/log/httpd/foreman_access.log , I see
the following errors:
192.168.20.221 - - [28/Jan/2015:17:38:22 -0800] "POST /discovery/create
HTTP/1.1" 404 431 "-" "Ruby"
192.168.20.222 - - [28/Jan/2015:17:38:43 -0800] "POST /discovery/create
HTTP/1.1" 404 431 "-" "Ruby"
192.168.20.220 - - [28/Jan/2015:17:38:52 -0800] "POST /discovery/create
HTTP/1.1" 404 431 "-" "Ruby"
192.168.20.221 - - [28/Jan/2015:17:38:53 -0800] "POST /discovery/create
HTTP/1.1" 404 431 "-" "Ruby"
I am using the following APPEND line:
APPEND initrd=boot/fdi-image/initrd0.img rootflags=loop root=live:/fdi.iso
rootfstype=auto ro rd.live.image acpi=force rd.luks=0 rd.md=0 rd.dm=0
rd.lvm=0 rd.bootif=0 rd.neednet=0 nomodeset
proxy.url=http://foreman.example.org proxy.type=proxy
From what I see at
, if the proxy_type is set to 'proxy', then the FDI should contact
/discovery/create :
facts_url = if proxy_type == 'proxy'
"#{uri.path}/discovery/create"
else
"#{uri.path}/api/v2/discovered_hosts/facts"
end
It looks to me like Foreman is no longer serving /discovery/create? Any
idea why?
I'm uncertain if this behavior is a bug, or if I broke something. If it's a
bug, I can file a bug report.
Thanks for the help,
-= Stefan