Is there any update to this issue? I'm working on upgrading to 1.15.3 and 
this problem still exists. I have about 20 DHCP servers with smart proxies 
and many of them are multi-homed because we do a lot of building on 
non-routable admin networks.

I see Bug #1221 http://projects.theforeman.org/issues/1221 that was "Ready 
For Testing" but got moved back to "New" (!)

There is also http://projects.theforeman.org/issues/9169 that appears 
related.

In 1.15.3 I just commented out line 120 of 
/usr/share/foreman/app/models/concerns/orchestration/dhcp.rb to do the same 
workaround I did way back in 1.3, but this is obviously not ideal.

Thanks

Bill


On Monday, February 24, 2014 at 5:49:26 AM UTC-5, Александр Костырев wrote:
>
> Hello!
>
> I've got two subnet definitions in my /etc/dhcp/dhcpd.conf
>
> #################################
> # example.org
> #################################
> subnet 10.0.1.0 netmask 255.255.255.0 {
>
>   range 10.0.1.93 10.0.1.131;
>   option subnet-mask 255.255.255.0;
>   option routers 10.0.1.254;
>   option domain-name "example.org";
>   next-server 10.0.1.92;
>   option domain-name-servers 10.0.1.1, 10.0.1.2;
> }
> #################################
> # anothernet.com
> #################################
>
> subnet 192.168.5.0 netmask 255.255.255.0 {
>
>   range 192.168.5.162 192.168.5.199;
>   option subnet-mask 255.255.255.0;
>   option routers 192.168.5.4;
>   option domain-name "anothernet.com";
>   next-server 192.168.5.45;
>   option domain-name-servers 192.168.5.14, 192.168.5.15;
> }
>
> and this in /etc/foreman-proxy/settings.yml
>
> # Enable TFTP management
> :tftp: true
> :tftproot: /var/lib/tftpboot/
> # Defines the TFTP Servername to use, overrides the name in the subnet 
> declaration
> #:tftp_servername: tftp.domain.com
>
>
> BUT
> when I create new host in domain anothernet.com Foreman puts this in 
> dhcpd.leases
>
> host test1.anothernet.com {
>   dynamic;
>   hardware ethernet 00:0c:29:1b:50:5e;
>   fixed-address 192.168.5.162;
>         supersede server.filename = "pxelinux.0";
>         supersede server.next-server = *0a:00:01:5c*;
>         supersede host-name = "test1.anothernet.com";
> }
>
>
> 0x0A:00:01:5C 10.0.1.92 
> 0xC0:A8:05:2D 192.168.5.45 
>
> so it says that next-server for this host is one from subnet 10.0.1.0 and 
> it is quite a big problem for my installation.
>
> How can I achieve what I want?
>
> Thanks in advance
>
>
>
>   RELEASE: CentOS release 6.5 (Final)
>   FOREMAN: 1.4.0
>      RUBY: ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]
>    PUPPET: 3.4.3
>
>
>

-- 
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