Problems setting up dhcpv6 option 59 (boot file name -- rfc5970) on bind10

Angelo Failla pallotron at fb.com
Fri Feb 7 22:07:42 UTC 2014


Thanks guys, much appreciated. I’m already pulling from your git repo.
-- 
Angelo Failla

Site Reliability Operations Dublin
Pallotron at fb.com




On 2/7/14, 6:04 PM, "Marcin Siodelski" <marcin at isc.org> wrote:

>Angelo,
>
>The ticket has been resolved and it is on master branch in our git repo.
>Until released, you need to use the latest bind10 version from git to
>have this fix.
>
>Marcin
>
>
>
>----- Original Message -----
>> From: "Angelo Failla" <pallotron at fb.com>
>> To: "Marcin Siodelski" <marcin at isc.org>
>> Cc: bind10-dhcp at lists.isc.org
>> Sent: Thursday, January 30, 2014 11:54:35 PM
>> Subject: Re: Problems setting up dhcpv6 option 59 (boot file name --
>>rfc5970) on bind10
>> 
>> That worked,
>> 
>> Thanks Marcin. Will I receive an email what that ticket will be closed?
>> --
>> Angelo Failla
>> 
>> Site Reliability Operations Dublin
>> Pallotron at fb.com
>> 
>> 
>> 
>> 
>> On 1/28/14, 10:29 AM, "Marcin Siodelski" <marcin at isc.org> wrote:
>> 
>> >Angelo,
>> >
>> >Here is a new ticket I submitted for this issue:
>> 
>>>https://urldefense.proofpoint.com/v1/url?u=http://bind10.isc.org/ticket/
>>>3309&k=ZVNjlDMF0FElm4dQtryO4A%3D%3D%0A&r=ScT1tCv0IwhfW9O3zK6EHw%3D%3D%0A
>>>&m=if51Rnq%2BHIJFfXvSGh4U%2BXqB42EQzWLXifZ6e2vchsI%3D%0A&s=c1c39ca5d9d82
>>>befbcc44c26ab5e7d774945982d7d8cfa5785bf58078d0fbec7
>> >
>> >We will work with a team to assign a proper priority for it.
>> >
>> >I am suggesting that you apply the following hack in the
>> >src/lib/dhcp/libdhcp++.cc, in function isStdOption:
>> >
>> >replace this:
>> >        if (code < 79 &&
>> >            code != 10 &&
>> >            code != 35) {
>> >            return (true);
>> >        }
>> >
>> >with this:
>> >
>> >        if (code < 49 &&
>> >            code != 10 &&
>> >            code != 35) {
>> >            return (true);
>> >        }
>> >
>> >as we currently provide definitions for standard options up to code 48.
>> >
>> >After that change you will have to rebuild bind10.
>> >
>> >With this change you'll be able to define your own definition for
>>option
>> >59 using bindctl.
>> >
>> >Let me know if it works for you.
>> >
>> >Marcin
>> >
>> >
>> >
>> >----- Original Message -----
>> >> From: "Angelo Failla" <pallotron at fb.com>
>> >> To: "Marcin Siodelski" <marcin at isc.org>
>> >> Cc: bind10-dhcp at lists.isc.org
>> >> Sent: Tuesday, January 28, 2014 7:05:17 PM
>> >> Subject: Re: Problems setting up dhcpv6 option 59 (boot file name --
>> >>rfc5970) on bind10
>> >> 
>> >> Hello Marcin,
>> >> 
>> >> Thanks for your response, I don’t have an account yet. Can you submit
>> >>the
>> >> bug report for me?
>> >> Is there any work around this in the meantime?
>> >> 
>> >> Can I define option 59 as a member of the vendor-opts-space?
>> >> --
>> >> Angelo Failla
>> >> 
>> >> Site Reliability Operations Dublin
>> >> Pallotron at fb.com
>> >> 
>> >> 
>> >> 
>> >> 
>> >> On 1/28/14, 10:01 AM, "Marcin Siodelski" <marcin at isc.org> wrote:
>> >> 
>> >> >Angelo,
>> >> >
>> >> >Many thanks for your email. Currently dhcp server provides a limited
>> >>set
>> >> >of std option definitions. The option 59 doesn't have its
>>definition in
>> >> >src/lib/dhcp/std_option_defs.h, and that's why the configuration
>> >> >mechanism complains. On the other hand, there is a function in
>> >>libdhcp++
>> >> >which you probably spotted already, that checks whether the given
>> >>option
>> >> >is a standard option or custom one. It does it to make sure that
>>nobody
>> >> >overrides the format of a standard option, which doesn't make much
>> >>sense,
>> >> >but may rather cause trouble.
>> >> >
>> >> >However, this check shouldn't be so strict as long as we don't have
>> >> >definitions for all standard options as it causes grief for someone
>> >> >trying to setup the value for such an option.
>> >> >
>> >> >If you have an account on bind10.isc.org, can you please submit a
>>bug
>> >> >ticket for your problem? Please assign it to DHCP sub-project and
>> >>libdhcp
>> >> >component. If you don't have an account, please let me know. I will
>> >>file
>> >> >a bug on my own.
>> >> >
>> >> >Thanks for your efforts and reporting this problem.
>> >> >
>> >> >Marcin
>> >> >
>> >> >
>> >> >
>> >> >----- Original Message -----
>> >> >> From: "Angelo Failla" <pallotron at fb.com>
>> >> >> To: "Angelo Failla" <pallotron at fb.com>, bind10-dhcp at lists.isc.org
>> >> >> Sent: Tuesday, January 28, 2014 6:40:22 PM
>> >> >> Subject: Re: Problems setting up dhcpv6 option 59 (boot file name
>> >> >>--	rfc5970) on bind10
>> >> >> 
>> >> >> It looks like you treat everything < 79 like standard option in
>> >> >> src/lib/dhcp/libdhcp++.cc
>> >> >> --
>> >> >> Angelo Failla
>> >> >> 
>> >> >> Site Reliability Operations Dublin
>> >> >> Pallotron at fb.com
>> >> >> 
>> >> >> 
>> >> >> 
>> >> >> 
>> >> >> On 1/28/14, 9:33 AM, "Angelo Failla" <pallotron at fb.com> wrote:
>> >> >> 
>> >> >> >Hi,
>> >> >> >
>> >> >> >I¹m testing bind10 dhcpv6 and I¹m having troubles setting up
>>option
>> >>59.
>> >> >> >
>> >> >> >Here is my config:
>> >> >> >
>> >> >> >> config show_json Dhcp6/
>> >> >> >{"option-data": [{"data": "n", "code": 144, "space": "dhcp6",
>> >> >> >"csv-format": true, "name": "tmpfs"}, {"data":
>> >>"2401:db00:eef0:a52::,
>> >> >> >2401:db00:eef0:b52::", "code": 23, "space": "dhcp6",
>>"csv-format":
>> >> >>true,
>> >> >> >"name": "dns-servers"}, {"data":
>> >> >> >"tftp://[fe80::202:c9ff:feca:f56a]:69/efi/efidefault", "code":
>>59,
>> >> >> >"space": "dhcp6", "name": "boot-file-name", "csv-format": true}],
>> >> >> >"option-def": [{"code": 144, "type": "string", "record-types":
>>"",
>> >> >> >"encapsulate": "", "space": "dhcp6", "array": false, "name":
>> >>"tmpfs"}]}
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> >When running config commit I get this:
>> >> >> >
>> >> >> >> config commit
>> >> >> >Error: Configuration parsing failed: the CSV option data format
>>can
>> >>be
>> >> >> >used to specify values for an option that has a definition. The
>> >>option
>> >> >> >with code 59 does not have a definition.
>> >> >> >Configuration not committed
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> >I tried to define option 59 like this:
>> >> >> >
>> >> >> >> config set Dhcp6/option-def[1]/name "boot-file-name"
>> >> >> >> config set Dhcp6/option-def[1]/code 59
>> >> >> >> config set Dhcp6/option-def[1]/type string
>> >> >> >> config set Dhcp6/option-def[1]/array false
>> >> >> >> config set Dhcp6/option-def[1]/record-types ""
>> >> >> >> config set Dhcp6/option-def[1]/space "dhcp6"
>> >> >> >> config set Dhcp6/option-def[1]/encapsulate ""
>> >> >> >
>> >> >> >But I get this error when committingŠ
>> >> >> >
>> >> >> >> config commit
>> >> >> >Error: Configuration parsing failed: unable to override
>>definition
>> >>of
>> >> >> >option '59' in standard option space 'dhcp6'.
>> >> >> >Configuration not committed
>> >> >> >
>> >> >> >Any idea of what I¹m doing wrong? I guess the server treats
>>option
>> >>59
>> >> >>as a
>> >> >> >standard v6 option but I can¹t find any reference of it in the
>>html
>> >> >>guide
>> >> >> 
>> 
>>>>>(https://urldefense.proofpoint.com/v1/url?u=http://bind10.isc.org/docs
>>>>>/bind10-guide.html%23dhcp6-std-options-list&k=ZVNjlDMF0FElm4dQtryO4A%3
>>>>>D%3D%0A&r=ScT1tCv0IwhfW9O3zK6EHw%3D%3D%0A&m=if51Rnq%2BHIJFfXvSGh4U%2BX
>>>>>qB42EQzWLXifZ6e2vchsI%3D%0A&s=883a33f92487752503bddeb40fd6b05af26591f7
>>>>>6e3f4b214ea45742c15fef0e)
>> >> >> >
>> >> >> >I¹m running 1.1.0 (the stable version =>
>> >> >> 
>>>https://urldefense.proofpoint.com/v1/url?u=ftp://ftp.isc.org/isc/bind10/
>>>1.1.0/&k=ZVNjlDMF0FElm4dQtryO4A%3D%3D%0A&r=ScT1tCv0IwhfW9O3zK6EHw%3D%3D%
>>>0A&m=if51Rnq%2BHIJFfXvSGh4U%2BXqB42EQzWLXifZ6e2vchsI%3D%0A&s=0242c91efb3
>>>8bb85e072a8f880e6fa3656f2954b26c9cc6d2e4d9ff0cf81b086)
>> >> >> >
>> >> >> >
>> >> >> >--
>> >> >> >Angelo Failla
>> >> >> >
>> >> >> >Site Reliability Operations Dublin
>> >> >> >Pallotron at fb.com
>> >> >> >
>> >> >> >
>> >> >> >_______________________________________________
>> >> >> >bind10-dhcp mailing list
>> >> >> >bind10-dhcp at lists.isc.org
>> >> >> 
>>>https://urldefense.proofpoint.com/v1/url?u=https://lists.isc.org/mailman
>>>/listinfo/bind10-dhcp&k=ZVNjlDMF0FElm4dQtryO4A%3D%3D%0A&r=ScT1tCv0IwhfW9
>>>O3zK6EHw%3D%3D%0A&m=if51Rnq%2BHIJFfXvSGh4U%2BXqB42EQzWLXifZ6e2vchsI%3D%0
>>>A&s=09a072fefab304dfdbc2f2b2295dcb8de85a8929bb9502f61d857e23ad4d85f3
>> >> >> 
>> >> >> _______________________________________________
>> >> >> bind10-dhcp mailing list
>> >> >> bind10-dhcp at lists.isc.org
>> >> >> 
>>https://urldefense.proofpoint.com/v1/url?u=https://lists.isc.org/mailman/
>>listinfo/bind10-dhcp&k=ZVNjlDMF0FElm4dQtryO4A%3D%3D%0A&r=ScT1tCv0IwhfW9O3
>>zK6EHw%3D%3D%0A&m=if51Rnq%2BHIJFfXvSGh4U%2BXqB42EQzWLXifZ6e2vchsI%3D%0A&s
>>=09a072fefab304dfdbc2f2b2295dcb8de85a8929bb9502f61d857e23ad4d85f3
>> >> >> 
>> >> 
>> >>
>> 
>> 



More information about the bind10-dhcp mailing list