Menu

#4030 [DEV]"makedhcp -n" failed to add subnet info to dhcpd.conf on rhels7.0 x86_64 mn

2.8.5
pending
yangsong
makedhcp (5)
RHEL7
5
2014-04-29
2014-03-19
yangsong
No

The NIC info:
[root@x3550m4n07 ~]# ifconfig
eno1: flags=4163<up,broadcast,running,multicast> mtu 1500
inet 10.1.5.187 netmask 255.255.0.0 broadcast 10.1.255.255
inet6 fe80::42f2:e9ff:fe0a:8c64 prefixlen 64 scopeid 0x20<link>
ether 40:f2:e9:0a:8c:64 txqueuelen 1000 (Ethernet)
RX packets 111842 bytes 77863096 (74.2 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 22376 bytes 1722863 (1.6 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device memory 0xa9a60000-a9a80000 </up,broadcast,running,multicast>

eno2: flags=4163<up,broadcast,running,multicast> mtu 1500
inet 9.114.34.187 netmask 255.255.0.0 broadcast 9.114.255.255
inet6 fd55:faaf:e1ab:336:42f2:e9ff:fe0a:8c65 prefixlen 64 scopeid 0x0<global>
inet6 fe80::42f2:e9ff:fe0a:8c65 prefixlen 64 scopeid 0x20<link>
ether 40:f2:e9:0a:8c:65 txqueuelen 1000 (Ethernet)
RX packets 3116669 bytes 4367946494 (4.0 GiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 273991 bytes 22708332 (21.6 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device memory 0xa9a40000-a9a60000 </global></up,broadcast,running,multicast>

eno3: flags=4099<up,broadcast,multicast> mtu 1500
ether 40:f2:e9:0a:8c:66 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device memory 0xa9a20000-a9a40000 </up,broadcast,multicast>

eno4: flags=4099<up,broadcast,multicast> mtu 1500
ether 40:f2:e9:0a:8c:67 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device memory 0xa9a00000-a9a20000 </up,broadcast,multicast>

enp0s29u1u1u5: flags=4163<up,broadcast,running,multicast> mtu 1500
ether 42:f2:e9:0a:8c:63 txqueuelen 1000 (Ethernet)
RX packets 15162 bytes 427476 (417.4 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0</up,broadcast,running,multicast>

enp134s0f0: flags=4099<up,broadcast,multicast> mtu 1500
ether 00:0a:f7:13:10:54 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 56 </up,broadcast,multicast>

enp134s0f1: flags=4099<up,broadcast,multicast> mtu 1500
ether 00:0a:f7:13:10:55 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 60 </up,broadcast,multicast>

enp134s0f2: flags=4099<up,broadcast,multicast> mtu 1500
ether 00:0a:f7:13:10:56 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 56 </up,broadcast,multicast>

enp134s0f3: flags=4099<up,broadcast,multicast> mtu 1500
ether 00:0a:f7:13:10:57 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 60 </up,broadcast,multicast>

enp17s0f0: flags=4099<up,broadcast,multicast> mtu 1500
ether 00:00:00:00:37:9e txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 32 memory 0xfb000000-fb7fffff </up,broadcast,multicast>

enp17s0f1: flags=4099<up,broadcast,multicast> mtu 1500
ether 00:00:00:00:37:be txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 36 memory 0xfa000000-fa7fffff </up,broadcast,multicast>

lo: flags=73<up,loopback,running> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 0 (Local Loopback)
RX packets 6152 bytes 2733698 (2.6 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 6152 bytes 2733698 (2.6 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0</host></up,loopback,running>

The result /etc/dhcpd/dhcpd.conf is:
[root@x3550m4n07 ~]# cat /etc/dhcp/dhcpd.conf

xCAT generated dhcp configuration

authoritative;
option space isan;
option isan-encap-opts code 43 = encapsulate isan;
option isan.iqn code 203 = string;
option isan.root-path code 201 = string;
option space gpxe;
option gpxe-encap-opts code 175 = encapsulate gpxe;
option gpxe.bus-id code 177 = string;
option user-class-identifier code 77 = string;
option gpxe.no-pxedhcp code 176 = unsigned integer 8;
option tcode code 101 = text;
option iscsi-initiator-iqn code 203 = string;
ddns-update-style interim;
ignore client-updates;
option client-architecture code 93 = unsigned integer 16;
option tcode "US/EASTERN";
option gpxe.no-pxedhcp 1;

omapi-port 7911;
key xcat_key {
algorithm hmac-md5;
secret "cmNXd0dPUE84UVVTN3d0Qno1RWExdzhkeHlnTEJnRDI=";
};
omapi-key xcat_key;
class "pxe" {
match if substring (option vendor-class-identifier, 0, 9) = "PXEClient";
ddns-updates off;
max-lease-time 600;
}

Discussion

  • yangsong

    yangsong - 2014-03-19
    • status: open --> pending
     
  • yangsong

    yangsong - 2014-03-19

    fixed in 2.8.4:
    commit 36690a8671e5111895db37e3c84f447880218a19
    Author: immarvin yangsbj@cn.ibm.comq
    Date: Wed Mar 19 08:14:00 2014 -0700

    fix defect #4030 [DEV]'makedhcp -n' failed to add subnet info to dhcpd.conf on rhels7.0 x86_64 mn
    

    diff --git a/xCAT-server/lib/xcat/plugins/dhcp.pm b/xCAT-server/lib/xcat/plugins/dhcp.pm
    index 617f455..7f36d81 100755
    --- a/xCAT-server/lib/xcat/plugins/dhcp.pm
    +++ b/xCAT-server/lib/xcat/plugins/dhcp.pm
    @@ -1442,7 +1442,7 @@ sub process_request
    next;
    }
    }
    - if ($ent[1] =~ m/(remote|ipoib|ib|vlan|bond|eth|myri|man|wlan|en\d+|em\d+)/)
    + if ($ent[1] =~ m/(remote|ipoib|ib|vlan|bond|eth|myri|man|wlan|en\S\d+|em\S\d+)/)
    { #Mask out many types of interfaces, like xCAT 1.x
    $activenics{$ent[1]} = 1;
    }

    fixed in 2.9:
    commit 9c3ed358b490d0db83bb1e1cf74d74f2faba04d1
    Author: immarvin yangsbj@cn.ibm.comq
    Date: Wed Mar 19 08:14:00 2014 -0700

    fix defect #4030 [DEV]'makedhcp -n' failed to add subnet info to dhcpd.conf on rhels7.0 x86_64 mn
    

    diff --git a/xCAT-server/lib/xcat/plugins/dhcp.pm b/xCAT-server/lib/xcat/plugins/dhcp.pm
    index 617f455..7f36d81 100755
    --- a/xCAT-server/lib/xcat/plugins/dhcp.pm
    +++ b/xCAT-server/lib/xcat/plugins/dhcp.pm
    @@ -1442,7 +1442,7 @@ sub process_request
    next;
    }
    }
    - if ($ent[1] =~ m/(remote|ipoib|ib|vlan|bond|eth|myri|man|wlan|en\d+|em\d+)/)
    + if ($ent[1] =~ m/(remote|ipoib|ib|vlan|bond|eth|myri|man|wlan|en\S\d+|em\S\d+)/)
    { #Mask out many types of interfaces, like xCAT 1.x
    $activenics{$ent[1]} = 1;
    }

     
  • yangsong

    yangsong - 2014-04-29
    • Milestones: 2.8.4 --> 2.8.5
     
MongoDB Logo MongoDB