Bug 754086

Summary: Patch NM to do a Prefix delegation query
Product: [Fedora] Fedora Reporter: Tomasz Torcz <tomek>
Component: NetworkManagerAssignee: Dan Williams <dcbw>
Status: CLOSED UPSTREAM QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: dcbw, jpopelka, pbrobinson, psimerda
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-01-16 20:26:59 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Tomasz Torcz 2011-11-15 11:41:33 UTC
Description of problem:
dhclient as run by NM only does normal query for IPv6. It should also ask for Prefix Delegation.
Information obtained from PD can be utilised by dispatcher scripts, do not need to be handled in NM.


Version-Release number of selected component (if applicable):
NetworkManager-0.9.1.90-5.git20110927.fc16.x86_64

Something like this is needed:
--- a/src/dhcp-manager/nm-dhcp-dhclient.c
+++ b/src/dhcp-manager/nm-dhcp-dhclient.c
@@ -479,7 +479,7 @@ dhclient_start (NMDHCPClient *client,
 
 #if !defined(DHCLIENT_V3)
        if (ipv6) {
-               g_ptr_array_add (argv, (gpointer) "-6");
+               g_ptr_array_add (argv, (gpointer) "-6 -NP"); /* do a normal + Prefix Delegation query */
                if (mode_opt)
                        g_ptr_array_add (argv, (gpointer) mode_opt);
        } else {

Comment 1 Jiri Popelka 2011-12-08 12:55:47 UTC
Hi Tomasz,

I'm  not quite fond of this idea of mixing 'IP assignment' and 'prefix delegation mechanism'.
They both serve to other purposes and I'm not sure they can be *safely* used together.

For example RFC 3633 (IPv6 Prefix Options) says that when the delegating router (DHCPv6 server in our case) has no available prefixes it MUST send NoPrefixAvail status code in Advertise message.
That means that when you try (dhclient -N -P) to obtain IP address AND prefix from server that's not configured to delegate prefixes you will probably fail in getting IP address at all because of the NoPrefixAvail status.

--
Jiri

Comment 2 Jiri Popelka 2012-06-08 11:12:15 UTC
See also bug #830040.

Comment 3 Pavel Šimerda (pavlix) 2013-01-03 16:33:57 UTC
See upstream:

https://bugzilla.gnome.org/show_bug.cgi?id=593815

Comment 4 Fedora End Of Life 2013-01-16 13:07:51 UTC
This message is a reminder that Fedora 16 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 16. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '16'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 16's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 16 is end of life. If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora, you are encouraged to click on 
"Clone This Bug" and open it against that version of Fedora.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 5 Pavel Šimerda (pavlix) 2013-01-16 20:26:59 UTC
This is a rather complex feature request for NetworkManager. Will be more suitable to track upstream:

https://bugzilla.gnome.org/show_bug.cgi?id=593815