Bug 997106

Summary: Static IPv6 address doesn't assigned to interface on service network restart
Product: [Fedora] Fedora Reporter: Konstantin Volkov <wolf>
Component: NetworkManagerAssignee: Dan Williams <dcbw>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 19CC: dcbw
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: 2015-02-17 16:46:02 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Log for ifdown->ifup
none
Log for network restart none

Description Konstantin Volkov 2013-08-14 16:55:32 UTC
Description of problem:

Static IPv6 address doesn't assigned to interface on service network restart

Version-Release number of selected component (if applicable):
NetworkManager-0.9.8.2-8.git20130709.fc19.i686

How reproducible:
100%

Steps to Reproduce:
1. Create next network device config:

---
[root@localhost ~]# cat /etc/sysconfig/network-scripts/ifcfg-enp0s6 
DHCPV6C="no"
IPV6_AUTOCONF="no"
DEVICE="enp0s6"
ONBOOT="yes"
BOOTPROTO="dhcp"
HWADDR="00:1c:42:42:b9:b8"
IPV6INIT="yes"
IPV6ADDR="2001:AAAD::A1D:3789/64"
---
2. Run "service network restart"

Actual results:

---
[root@localhost ~]# service network restart
Restarting network (via systemctl):                        [  OK  ]
[root@localhost ~]# ip a l enp0s6
3: enp0s6: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 00:1c:42:42:b9:b8 brd ff:ff:ff:ff:ff:ff
    inet 10.29.26.118/16 brd 10.29.255.255 scope global enp0s6
       valid_lft forever preferred_lft forever
    inet6 fe80::21c:42ff:fe42:b9b8/64 scope link 
       valid_lft forever preferred_lft forever
---

e.g. no static IPv6

Expected results:
Static IPv6 address assigned to interface

Additional info:

It's strage, but

---
[root@localhost ~]# ifdown enp0s6; ifup enp0s6
[root@localhost ~]# ip a l enp0s6
3: enp0s6: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 00:1c:42:42:b9:b8 brd ff:ff:ff:ff:ff:ff
    inet 10.29.26.118/16 brd 10.29.255.255 scope global enp0s6
       valid_lft forever preferred_lft forever
    inet6 2001:aaad::a1d:3789/64 scope global 
       valid_lft forever preferred_lft forever
    inet6 fe80::21c:42ff:fe42:b9b8/64 scope link 
       valid_lft forever preferred_lft forever
---

ifdown ...; ifup ...
works as expected.

Comment 1 Konstantin Volkov 2013-08-14 16:56:15 UTC
Created attachment 786616 [details]
Log for ifdown->ifup

Comment 2 Konstantin Volkov 2013-08-14 16:56:46 UTC
Created attachment 786617 [details]
Log for network restart

Comment 3 Konstantin Volkov 2013-08-15 13:43:44 UTC
The same situation without DHCP:

---
[root@localhost ~]# cat /etc/sysconfig/network-scripts/ifcfg-enp0s6 
DEVICE="enp0s6"
ONBOOT="yes"
BOOTPROTO="none"
HWADDR="00:1c:42:92:14:4c"
IPADDR0="10.29.151.68"
NETMASK0="255.255.0.0"
GATEWAY="10.29.151.69"
[root@localhost ~]# ip a l enp0s6
3: enp0s6: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 00:1c:42:92:14:4c brd ff:ff:ff:ff:ff:ff
    inet 10.29.26.52/16 brd 10.29.255.255 scope global enp0s6
       valid_lft forever preferred_lft forever
    inet6 fe80::21c:42ff:fe92:144c/64 scope link 
       valid_lft forever preferred_lft forever
[root@localhost ~]# ip r l
default via 10.29.0.1 dev enp0s6  proto static 
10.29.0.0/16 dev enp0s6  proto kernel  scope link  src 10.29.26.52  metric 1 
10.37.130.0/24 dev enp0s5  proto kernel  scope link  src 10.37.130.1  metric 1
---

in log:

---
Aug 15 17:27:23 localhost.localdomain NetworkManager[16268]: <info> (enp0s6): DHCPv4 state changed nbi -> preinit
Aug 15 17:27:23 localhost.localdomain dhclient[16691]: Listening on LPF/enp0s6/00:1c:42:92:14:4c
Aug 15 17:27:23 localhost.localdomain dhclient[16691]: Sending on   LPF/enp0s6/00:1c:42:92:14:4c
Aug 15 17:27:23 localhost.localdomain dhclient[16691]: Sending on   Socket/fallback
Aug 15 17:27:23 localhost.localdomain dhclient[16691]: DHCPREQUEST on enp0s6 to 255.255.255.255 port 67 (xid=0x27fa2f6e)
Aug 15 17:27:23 localhost.localdomain dhclient[16691]: DHCPACK from 10.29.0.10 (xid=0x27fa2f6e)
Aug 15 17:27:23 localhost.localdomain NetworkManager[16268]: <info> (enp0s6): DHCPv4 state changed preinit -> reboot
Aug 15 17:27:23 localhost.localdomain NetworkManager[16268]: <info>   address 10.29.26.52
Aug 15 17:27:23 localhost.localdomain NetworkManager[16268]: <info>   prefix 16 (255.255.0.0)
Aug 15 17:27:23 localhost.localdomain NetworkManager[16268]: <info>   gateway 10.29.0.1
Aug 15 17:27:23 localhost.localdomain NetworkManager[16268]: <info>   nameserver '10.29.0.4'
Aug 15 17:27:23 localhost.localdomain NetworkManager[16268]: <info>   nameserver '10.30.0.27'
Aug 15 17:27:23 localhost.localdomain NetworkManager[16268]: <info>   domain name 'qa.sw.ru'
Aug 15 17:27:23 localhost.localdomain NetworkManager[16268]: <info> Activation (enp0s6) Stage 5 of 5 (IPv4 Configure Commit) scheduled...
Aug 15 17:27:23 localhost.localdomain NetworkManager[16268]: <info> Activation (enp0s6) Stage 5 of 5 (IPv4 Commit) started...
Aug 15 17:27:23 localhost.localdomain avahi-daemon[392]: Withdrawing address record for 10.29.151.68 on enp0s6.
---

Why NetworkManager use dhcp while it was not enabled in network device config?

Also, ifdown ...; ifup ...; works as expected.

Comment 4 Fedora End Of Life 2015-01-09 19:27:16 UTC
This message is a notice that Fedora 19 is now at end of life. Fedora 
has stopped maintaining and issuing updates for Fedora 19. It is 
Fedora's policy to close all bug reports from releases that are no 
longer maintained. Approximately 4 (four) weeks from now this bug will
be closed as EOL if it remains open with a Fedora 'version' of '19'.

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.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 19 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  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

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.

Comment 5 Fedora End Of Life 2015-02-17 16:46:02 UTC
Fedora 19 changed to end-of-life (EOL) status on 2015-01-06. Fedora 19 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.