-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jeff Schroeder wrote:
| On Thu, Apr 2, 2009 at 11:04 AM, Scott Henson <[email protected]> wrote:
|> -----BEGIN PGP SIGNED MESSAGE-----
|> Hash: SHA1
|>
|> Jeff Schroeder wrote:
|> | On Thu, Apr 2, 2009 at 11:00 AM, Scott Henson <[email protected]> 
wrote:
|> |> -----BEGIN PGP SIGNED MESSAGE-----
|> |> Hash: SHA1
|> |>
|> |> Christopher Johnston wrote:
|> |> | I am getting entries in my dhcpd.conf that look like this below 
where
|> |> each host entry is ending with all of the interfaces with an 
_<int>.  I
|> |> am using what looks to be a sane dhcpd.template (copied from the 
latest
|> |> template).
|> |> |
|> |> |     host somehost.domain.com_eth0 {
|> |> |
|> |> |     host somehost.domain.com_eth2 {
|> |> |
|> |> |     host somehost.domain.com_eth1 {
|> |>
|> |> This is normal and expected.  Basically it is because with bonded
|> |> interfaces you get two entries with different mac addresses pointed at
|> |> the same ip address.  Is this some how causing problems for you?
|> |
|> | And when the interfaces are not bonded but this shows up?
|> |
|>
|> Yes, it shouldn't hurt anything in either case.  Is it causing a problem
|> of some sort or does it just look weird?
|
| Yes this causes a problem in our environment. This appears to be a bug
| in cobbler 1.6.x. Lets just say the nodes are not stateful and we'd
| rather not do more cobbler api magic when we can get the hostnames
| from the dhcp server.
|

I think I see the problem.  But in actuality, you are depending on 
something that isn't strictly true.  The hostname of the system record 
was never getting used to create the host record's name in the 
dhcpd.conf, it was the interface's dns name that was being used.  A 
quick and easy fix would be to set the hostname paramater with the 
dns_name in the template.  I've not tested this, but I believe it should 
work.  Your dhcp.template file should look something along the lines of 
the following.

~    host $iface.name {
~        hardware ethernet $mac;
~        hostname $iface.dns_name;
...
~    }

That should get you back the old behavior.  Really, this should be using 
the system hostname, but your old behavior was depending on the dns name 
as well.

- --
Scott Henson
Red Hat CIS Operator
WVU Alum BSAE/BSME
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iEYEARECAAYFAknVCH4ACgkQZ+CEIfzQ+EpvNQCePxntLE9MJI0Zzspg46z10t1j
joYAni8o14rd+5CuMgA/FI1OtLQmkkPE
=K/Yv
-----END PGP SIGNATURE-----

_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler

Reply via email to