I rebuilt it with makedhcp -n, didn’t lose any leases.  The  change I made to 
dhcpinterfaces
worked, and got rid of all the subnets I didn’t want to offer addresses on.

[root@mgt5 ~]# grep cumulus /etc/dhcp/dhcpd.conf
option cumulus-provision-url code 239 = text;
    option cumulus-provision-url 
"http://172.20.0.6:80/install/postscripts/cumulusztp";;
    } else if substring (option vendor-class-identifier,0,11) = "onie_vendor" { 
#for onie on cumulus switch
    option cumulus-provision-url 
"http://172.29.128.6:80/install/postscripts/cumulusztp";;
    } else if substring (option vendor-class-identifier,0,11) = "onie_vendor" { 
#for onie on cumulus switch
[root@mgt5 ~]# 

I noticed the lines in /var/log/messages were missing the trailing 
double-quote, which might have been my typo,
might have caused the original issue.

So I think everything is good now.

Thanks,
 — ddj

> On Aug 7, 2019, at 3:30 PM, Casandra H Qiu <[email protected]> wrote:
> 
> you can run "makedhcp -a", it will add all the nodes have mac address back to 
> lease file.
> 
> 
> ...................................................................
> Casandra Hong Qiu
> Phone: (845) 433-9291, t/l 293-9291
> Office: Building 8, 3-B-04
> [email protected]
> 
> 
> 
> <graycol.gif>David Johnson ---08/07/2019 03:19:01 PM---Will I lose any of my 
> existing leases? > On Aug 7, 2019, at 2:46 PM, Casandra H Qiu <[email protected]
> 
> From: David Johnson <[email protected]>
> To: xCAT Users Mailing list <[email protected]>
> Date: 08/07/2019 03:19 PM
> Subject: [EXTERNAL] Re: [xcat-user] dhcpd failed due to unrecognized directive
> 
> 
> 
> 
> Will I lose any of my existing leases?
> On Aug 7, 2019, at 2:46 PM, Casandra H Qiu <[email protected] 
> <mailto:[email protected]>> wrote:
> the /etc/dhcp/dhcpd.conf file will be recreated after ran 'makedhcp -n` 
> command. those lines:
> 
> option cumulus-provision-url code 239 = text;
> option cumulus-provision-url 
> "http://10.3.17.7:80/install/postscripts/cumulusztp 
> <http://10.3.17.7/install/postscripts/cumulusztp>";
> option cumulus-provision-url 
> "http://50.3.17.7:80/install/postscripts/cumulusztp 
> <http://50.3.17.7/install/postscripts/cumulusztp>";
> 
> will be shown again in the files. 
> 
> when this happens again, can u grep this option from dhcpd.conf file?
> 
> 
> Thanks,
> Casandra
> ...................................................................
> Casandra Hong Qiu
> Phone: (845) 433-9291, t/l 293-9291
> Office: Building 8, 3-B-04
> [email protected] <mailto:[email protected]>
> 
> 
> 
> <graycol.gif>David Johnson ---08/07/2019 02:10:49 PM---My bad for typing the 
> error message by hand. The remote desktop has broken cut/paste. The original
> 
> From: David Johnson <[email protected] <mailto:[email protected]>>
> To: xCAT Users Mailing list <[email protected] 
> <mailto:[email protected]>>
> Date: 08/07/2019 02:10 PM
> Subject: [EXTERNAL] Re: [xcat-user] dhcpd failed due to unrecognized directive
> 
> 
> 
> 
> 
> My bad for typing the error message by hand. The remote desktop has broken 
> cut/paste.
> The original error messages were:
> Aug 7 13:03:20 mgt5 dhcpd: /etc/dhcp/dhcpd.conf line 1004: unknown option 
> dhcp.cumulus-provision-url
> Aug 7 13:03:20 mgt5 dhcpd: option cumulus-provision-url 
> "http://192.168.181.166:80/install/postscripts/ 
> <http://192.168.181.166/install/postscripts/>
> Aug 7 13:14:10 mgt5 dhcpd: /etc/dhcp/dhcpd.conf line 1004: unknown option 
> dhcp.cumulus-provision-url
> Aug 7 13:14:10 mgt5 dhcpd: option cumulus-provision-url 
> "http://192.168.181.166:80/install/postscripts/ 
> <http://192.168.181.166/install/postscripts/>
> 
> The versions for dhcpd are:
> dhcp-libs-4.2.5-47.el7.x86_64
> dhcp-4.2.5-47.el7.x86_64
> dhcp-common-4.2.5-47.el7.x86_64
> 
> xCAT is xCAT-2.14.6-snap201903290319.x86_64
> 
> I already deleted the offending line from /etc/dhcp/dhcpd.conf, but I’m 
> worried it might come back.
> 
> — ddj
> On Aug 7, 2019, at 2:03 PM, Casandra H Qiu <[email protected] 
> <mailto:[email protected]>> wrote:
> looks like someone manually edit this file, there are typo 
> dhcp.cumuulus-provision-url (should be cumulus)
> Can u run grep command as below? 
> 
> # grep cumulus-prov /etc/dhcp/dhcpd.conf
> option cumulus-provision-url code 239 = text;
> option cumulus-provision-url 
> "http://10.3.17.7:80/install/postscripts/cumulusztp 
> <http://10.3.17.7/install/postscripts/cumulusztp>";
> option cumulus-provision-url 
> "http://50.3.17.7:80/install/postscripts/cumulusztp 
> <http://50.3.17.7/install/postscripts/cumulusztp>";
> 
> 
> which xcatd release do u have on the system?
> 
> 
> Thanks,
> Casandra
> 
> ...................................................................
> Casandra Hong Qiu
> Phone: (845) 433-9291, t/l 293-9291
> Office: Building 8, 3-B-04
> [email protected] <mailto:[email protected]>
> 
> 
> 
> <graycol.gif>David Johnson ---08/07/2019 01:53:15 PM---Things were fine until 
> I did a nodeset, and dhcpd tried to restart. This is what I found in the /var
> 
> From: David Johnson <[email protected] <mailto:[email protected]>>
> To: xCAT Users Mailing list <[email protected] 
> <mailto:[email protected]>>
> Date: 08/07/2019 01:53 PM
> Subject: [EXTERNAL] [xcat-user] dhcpd failed due to unrecognized directive
> 
> 
> 
> 
> 
> 
> Things were fine until I did a nodeset, and dhcpd tried to restart.
> This is what I found in the /var/log/messages:
> /etc/dhcp/dhcpd.conf line 1004: unknown option dhcp.cumuulus-provision-url
> Removed the line by hand, which allowed dhcpd to start again, but I’m sure it 
> will come
> back unless I root it out.
> 
> I may have put this in at some point, but can’t recall where in the xcat 
> database this would live.
> 
> Actually I would like tor xcat’s dhcpd to NOT listen on certain networks 
> (IPoIB sub interface on private
> partion), but not sure how to configure tabedit networks to get it to ignore 
> the subnet.
> 
> Any suggestions where I should look?
> 
> Thanks,
> — ddj
> 
> _______________________________________________
> xCAT-user mailing list
> [email protected] <mailto:[email protected]>
> https://lists.sourceforge.net/lists/listinfo/xcat-user 
> <https://lists.sourceforge.net/lists/listinfo/xcat-user> 
> 
> 
> 
> 
> _______________________________________________
> xCAT-user mailing list
> [email protected] <mailto:[email protected]>
> https://lists.sourceforge.net/lists/listinfo/xcat-user 
> <https://lists.sourceforge.net/lists/listinfo/xcat-user>_______________________________________________
> xCAT-user mailing list
> [email protected] <mailto:[email protected]>
> https://lists.sourceforge.net/lists/listinfo/xcat-user 
> <https://lists.sourceforge.net/lists/listinfo/xcat-user> 
> 
> 
> 
> _______________________________________________
> xCAT-user mailing list
> [email protected] <mailto:[email protected]>
> https://lists.sourceforge.net/lists/listinfo/xcat-user 
> <https://lists.sourceforge.net/lists/listinfo/xcat-user>_______________________________________________
> xCAT-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/xcat-user 
> <https://lists.sourceforge.net/lists/listinfo/xcat-user> 
> 
> 
> 
> _______________________________________________
> xCAT-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/xcat-user

_______________________________________________
xCAT-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xcat-user

Reply via email to