I have done all configuration 
from 
https://theforeman.org/plugins/foreman_discovery/2.0/#1.ForemanDiscovery2.0Manual,
 
but it's still not working.
I try to use the discovery proxy for this and have made the following 
configuration:

PXELInux global default:
ONTIMEOUT discovery

LABEL discovery
MENU LABEL Foreman Discovery
MENU DEFAULT
KERNEL boot/fdi-image/vmlinuz0
APPEND initrd=boot/fdi-image/initrd0.img fdi.ssh=1 fdi.rootpw=redhat 
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 
rd.debug=1 nomodeset proxy.url=https://katello.example.com:9090 
proxy.type=proxy
IPAPPEND 2

The discovery proxy is active in the smart proxy settings, but when I go 
into the Smart Proxy -> Services under Discovery I see Version 1.0.4 and 
"Data not available for Discovery". Is that right?

If I change the APPEND line to proxy_type forman, the automatic reboot is 
successfull.

I logged me into the discovered host by ssh, but there are no logfiles 
unter /var/log/foreman-proxy/.

Any idea whats going wrong with the foreman-proxy?


Am Freitag, 11. November 2016 13:49:09 UTC+1 schrieb Lukas Zapletal:
>
> What Greg said, also you can configure Smart Proxy as a http/https 
> proxy for discover calls, depending on if you have selected Discovery 
> Proxy for the Subnet the host was discovered in or not. Then the call 
> will be proxied, you need to enable Discovery Smart Proxy plugin. 
> Check our documentation, it's all there. 
>
> LZ 
>
> On Fri, Nov 11, 2016 at 12:24 PM, Greg Sutcliffe 
> <[email protected] <javascript:>> wrote: 
> > Reboot happens via an API call to a cut-down Foreman-proxy running on 
> the 
> > discovered host. It looks like that service is returning a 500 when told 
> to 
> > reboot - but you'll need to get onto the host to the logs of that. 
> > 
> > The Discovery docs cover enabling SSH on the Discovery Image, so you'll 
> want 
> > to do that and then see if you can get the proxy log when it's told to 
> > reboot. 
> > 
> > Cheers 
> > Greg 
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> Groups 
> > "Foreman users" group. 
> > To unsubscribe from this group and stop receiving emails from it, send 
> an 
> > email to [email protected] <javascript:>. 
> > To post to this group, send email to [email protected] 
> <javascript:>. 
> > Visit this group at https://groups.google.com/group/foreman-users. 
> > For more options, visit https://groups.google.com/d/optout. 
>
>
>
> -- 
> Later, 
>   Lukas @lzap Zapletal 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to