Bug 852808 - Omits "IPV6INIT=yes" from the generated ifcfg-* file
Summary: Omits "IPV6INIT=yes" from the generated ifcfg-* file
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: dracut
Version: 18
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: dracut-maint
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: AcceptedBlocker
Depends On: 830434
Blocks: F18Blocker, F18FinalBlocker
TreeView+ depends on / blocked
 
Reported: 2012-08-29 16:07 UTC by Will Woods
Modified: 2013-01-10 06:53 UTC (History)
10 users (show)

Fixed In Version:
Clone Of: 830434
Environment:
Last Closed: 2012-11-29 09:57:54 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Screenshot of default F18 Beta network immediately after installation (268.54 KB, image/png)
2012-11-24 23:16 UTC, Tore Anderson
no flags Details

Description Will Woods 2012-08-29 16:07:49 UTC
In short: when using ifcfg files, ipv6 will not be configured unless "IPV6INIT=yes" is present. The ifcfg module needs to add that to the file(s) it generates.

+++ This bug was initially created as a clone of Bug #830434 +++

[edited for relevance. -ww]

Description of problem:

During the installation of Fedora 17, Anaconda generates an ifcfg-* file that contains the default settings for the network interface, and copies it into the installed system. This file does not contain the essential line "IPV6INIT=yes", which in turn causes NetworkManager *not* to automatically enable IPv6.

Steps to Reproduce:
1. Connect a computer to an IPv6-only wired ethernet network.
2. Install Fedora 17, either using a LiveCD/LiveUSB, or the DVD.
3. Reboot into the installed system.
  
Actual results:

The network connection fails to activate, becuase the absense of IPV6INIT=yes causes NetworkManager to only attempt to activate IPv4, which is not available.

Expected results:

The network connection should successfully activate.

Additional info:

This bug would actually be a F17 blocker, as it prevents connection to to IPv6-only networks "out of the box". See
<http://lists.fedoraproject.org/pipermail/test/2012-March/106054.html>. Unfortunately, it slipped through my testing. I'm marking it as a F18 blocker for now.

Curiously enough, this does not prevent *installation* on the IPv6-only network (including retrieving the software from mirror servers, in the case of DVD installation). This happens because during installation, NetworkManager brings up the connection automatically before the Anaconda-generated ifcfg-* files appear. When NetworkManager activates a device for which there is no ifcfg-* file, it also automatically enables IPv6. It is only after rebooting into the installed system that the network connectivity does not work any more.

--- Additional comment from wwoods on 2012-08-28 17:21:24 EDT ---

Anyway, my reading of the initscripts / NetworkManager source and docs seemed to indicate that IPV6INIT=yes was the default, so it was intentionally left out. I guess that's not the case. Luckily that's pretty easy to fix.

--- Additional comment from tore on 2012-08-29 02:46:43 EDT ---

When there's a ifcfg file present, NetworkManager's ifcfg-rh reader plugin steps in with defaults of its own. Its goal is to be as compatible with initscripts' defaults as much as possible, so that enabling/disabling NM on an interface does not change the actual behaviour. See bug #830436, comment #2.

Comment 1 Radek Vykydal 2012-09-03 13:36:11 UTC
As per bug 830434 comment 5
Will created this clone for dracut's ifcfg module, so reassigning to dracut.

Comment 2 Harald Hoyer 2012-09-06 09:40:23 UTC
upstream commit 32ec0a762d1dce36f20857ffd222863a3d550ed7

Comment 3 Harald Hoyer 2012-10-17 14:39:06 UTC
I guess this should be Fedora 18...

Comment 4 Fedora Update System 2012-10-17 14:41:40 UTC
dracut-024-1.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/FEDORA-2012-16223/dracut-024-1.fc18

Comment 5 Fedora Update System 2012-10-19 10:09:06 UTC
dracut-024-5.git20121019.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/dracut-024-5.git20121019.fc18

Comment 6 Fedora Update System 2012-10-19 15:43:31 UTC
Package dracut-024-5.git20121019.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing dracut-024-5.git20121019.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-16448/dracut-024-5.git20121019.fc18
then log in and leave karma (feedback).

Comment 7 Adam Williamson 2012-11-22 19:31:11 UTC
The relevant update has been pushed stable. Can we close this now? Has the change been cloned into anaconda or wherever it needs to go?

Comment 8 Tore Anderson 2012-11-22 21:56:21 UTC
If someone can confirm that the fix is included in the latest F18 prereleases (LiveCD and DVD), I'll be happy to verify it.

Tore

Comment 9 Adam Williamson 2012-11-22 23:01:04 UTC
The Beta RC1 DVD contains dracut-024-5.git20121019.fc18.x86_64.rpm , so yes, the fix is in Beta RC1: https://dl.fedoraproject.org/pub/alt/stage/18-Beta-RC1/

Comment 10 Tore Anderson 2012-11-24 23:16:56 UTC
Created attachment 651298 [details]
Screenshot of default F18 Beta network immediately after installation

I tried installing both from the Live CD and the DVD in a VM with IPv6-only network connectivity (DHCPv6 only, no SLAAC). In both cases, when booting from the install media, the system connected successfully to the network. When NetworkManager started, there was not ifcfg files (except ifcfg-lo), which caused it to use its own built-in defaults, which do IPv6 just fine. So far, so good.

However,  during the installation, an ifcfg-eth0 file appeared that did *not* contain IPV6INIT=yes. In the Live CD case, it did not appear until I pressed the big "install to hard drive" button.

This file was then copied to the installation target, so after finishing the installation and rebooting into the installed system, the VM was no longer able to connect to the network. The attached screenshot shows this.

Tore

Comment 11 Adam Williamson 2012-11-28 17:39:26 UTC
Setting back to ASSIGNED, then. Will!

Comment 12 Adam Williamson 2012-11-28 17:50:32 UTC
Discussed at 2012-11-28 blocker review meeting: http://meetbot.fedoraproject.org/fedora-qa/2012-11-28/f18final-blocker-review-1.2012-11-28-16.59.log.txt . Accepted as a blocker per criterion "The installed system must be able to download and install updates with yum and the default graphical package manager in all release-blocking desktops". In general we are accepting showstoppers for IPV6-OOTB as blockers since F17.

Comment 13 Harald Hoyer 2012-11-29 09:57:54 UTC
(In reply to comment #10)
> Created attachment 651298 [details]
> Screenshot of default F18 Beta network immediately after installation
> 
> I tried installing both from the Live CD and the DVD in a VM with IPv6-only
> network connectivity (DHCPv6 only, no SLAAC). In both cases, when booting
> from the install media, the system connected successfully to the network.
> When NetworkManager started, there was not ifcfg files (except ifcfg-lo),
> which caused it to use its own built-in defaults, which do IPv6 just fine.
> So far, so good.
> 
> However,  during the installation, an ifcfg-eth0 file appeared that did
> *not* contain IPV6INIT=yes. In the Live CD case, it did not appear until I
> pressed the big "install to hard drive" button.
> 
> This file was then copied to the installation target, so after finishing the
> installation and rebooting into the installed system, the VM was no longer
> able to connect to the network. The attached screenshot shows this.
> 
> Tore

Well, if dracut was not told to use IPV6 via a kernel command line interface, because you have an install medium (which does not need network), then there will be no ifcfg-* file generated (because no network was used in the initramfs).

anaconda should have created the IPv6 ifcfg configuration by itsself.

You should open a bug against anaconda not doing this.

Comment 14 Tore Anderson 2012-11-29 10:33:49 UTC
(In reply to comment #13)

> Well, if dracut was not told to use IPV6 via a kernel command line
> interface, because you have an install medium (which does not need network),
> then there will be no ifcfg-* file generated (because no network was used in
> the initramfs).

I did not specify any kernel options. I just booted the DVD/LiveCD with the default settings. An ifcfg-eth0 file was generated, but it did not contain the necessary IPV6INIT=yes.

> anaconda should have created the IPv6 ifcfg configuration by itsself.

Well, it didn't.

> You should open a bug against anaconda not doing this.

Uh, now I'm confused. That's exactly what I did.

Tore

Comment 15 Harald Hoyer 2012-11-29 11:00:35 UTC
(In reply to comment #14)
> 
> Uh, now I'm confused. That's exactly what I did.
> 
> Tore

Well, this bug is a clone for the dracut part, which can be started with a network configuration in F18, if the anaconda stage2 is on the network. And because if anaconda then runs from stage2 it must not alter the current network connection, when it starts NetworkManager. NetworkManager has to know to use IPv6 in stage2. This is _this_ bug.

The other bugzilla would be about anaconda (or NetworkManager) putting IPV6INIT in the ifcfg-* file, if it started the network all by itsself (root/stage2 not on network, therefore no dracut network) running on a LiveCD or DVD.

Comment 16 Adam Williamson 2012-11-29 23:32:03 UTC
Tore: does https://bugzilla.redhat.com/show_bug.cgi?id=830434 sufficiently cover the outstanding issues here, or are you still concerned about the dracut side? thanks!

Comment 17 Tore Anderson 2012-11-30 08:24:05 UTC
Adam, before reading comment #15 I hadn't really realised that there was two distinct bugs. The only way I've come across the bug is through regular installs from DVD/LiveCD media.

I never tried network install, so I don't think I came across the dracut bug at all. I'm not sure if I could try to reproduce it, either, since I don't have any computers that supports IPv6 PXE booting. So as far as I'm concerned this bug can be left closed.


Note You need to log in before you can comment on or make changes to this bug.