Bug 1523520
| Summary: | interface with ipv6 protocol but no static IP fails to start | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux Advanced Virtualization | Reporter: | Fangge Jin <fjin> |
| Component: | libvirt | Assignee: | Virtualization Maintenance <virt-maint> |
| Status: | CLOSED DEFERRED | QA Contact: | Luyao Huang <lhuang> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 8.0 | CC: | fjin, jsuchane, juzhou, laine, rbalakri, xuzhang, yalzhang |
| Target Milestone: | rc | Keywords: | Reopened |
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2020-02-18 13:48:20 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: | |||
Might be the same problem as is described in bug 1311862. *** This bug has been marked as a duplicate of bug 1311862 *** A couple of questions: 1) what is the contents of /etc/sysconfig/network-scripts/ifcfg-eno1 ? 2) Does "ncftool -d ifup eno1" work? 3) Does "ifup eno1" work? 4) Are there other machines on your network that have IPv6 autoconf (with no IPv4) working? If so, can you compare those machines' ifcfg files to the one that isn't working? (In reply to Laine Stump from comment #5) > A couple of questions: > > 1) what is the contents of /etc/sysconfig/network-scripts/ifcfg-eno1 ? > DEVICE="eno1" ONBOOT="yes" MTU="1500" IPV6INIT="yes" IPV6_AUTOCONF="no" DHCPV6C="no" > 2) Does "ncftool -d ifup eno1" work? "ncftool -d ifup eno1" works and the command returned immediately > > 3) Does "ifup eno1" work? "ifup eno1" works and also the command returned immediately > > 4) Are there other machines on your network that have IPv6 autoconf (with no > IPv4) working? If so, can you compare those machines' ifcfg files to the one > that isn't working? All the machines don't work. I try this scenario on several servers, I found that the result in Description can be reproduced on the interface with e1000e driver, and can not be reproduced with ixgbe or igb dirver. As the comment show https://bugzilla.redhat.com/show_bug.cgi?id=1311857#c3 Additional info, It also can be reproduced with bnx2 driver. But I‘m not sure this issue really has relation ship with the driver of interface, just put the summary of my test. ixgbe: good igb : good tg3 : good bnx2 : bad e1000e : bad This bug was closed deferred as a result of bug triage. Please reopen if you disagree and provide justification why this bug should get enough priority. Most important would be information about impact on customer or layered product. Please indicate requested target release. |
Description of problem: Interface fails to start when only ipv6 protocol without static ip address is configured Version-Release number of selected component: libvirt-3.9.0-5.el7.x86_64 initscripts-9.49.40-2.el7.x86_64 How reproducible: 100% Steps to Reproduce: 1. Destroy interface on host: # virsh iface-destroy eno1 2. Prepare a xml that contains only ipv6 configuraiton for interface eno1: # cat eno1-ipv6.xml <interface type='ethernet' name='eno1'> <start mode='onboot'/> <mtu size='1500'/> <protocol family='ipv6'> </protocol> <mac address='10:60:4b:78:2a:74'/> </interface> 3. Define and start interface eno1: # virsh iface-define eno1-ipv6.xml Interface eno1 defined from eno1-ipv6.xml # virsh iface-start eno1 error: Failed to start interface eno1 error: internal error: failed to create (start) interface eno1: unspecified error - interface eno1 failed to become active - possible disconnected cable. 4. Check the status of eno1: # virsh iface-list Name State MAC Address --------------------------------------------------- eno1 active 10:60:4b:78:2a:74 lo active 00:00:00:00:00:00 # virsh iface-dumpxml eno1 <interface type='ethernet' name='eno1'> <protocol family='ipv6'> <ip address='fe80::1260:4bff:fe78:2a74' prefix='64'/> </protocol> <link speed='1000' state='up'/> <mac address='10:60:4b:78:2a:74'/> </interface> # ip a show eno1 2: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 link/ether 10:60:4b:78:2a:74 brd ff:ff:ff:ff:ff:ff inet6 fe80::1260:4bff:fe78:2a74/64 scope link valid_lft forever preferred_lft forever # ifconfig eno1 eno1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet6 fe80::1260:4bff:fe78:2a74 prefixlen 64 scopeid 0x20<link> ether 10:60:4b:78:2a:74 txqueuelen 1000 (Ethernet) RX packets 15678793 bytes 21812764932 (20.3 GiB) RX errors 0 dropped 5 overruns 0 frame 0 TX packets 3061555 bytes 1591052399 (1.4 GiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 device interrupt 20 memory 0xf7f00000-f7f20000 Actual results: iface-start reports error Expected results: No error because interface starts successfully Additional info: 1. Interface can be started by "#ifup eno1" successfully 2. This bug can be reproduced on both a host located in ipv6 network and a host located in ipv4 network 3. This bug can be reproduced when enable ipv6 autoconf and host is located in ipv6 network: # cat eno1-ipv6-autoconf.xml <interface type='ethernet' name='eno1'> <start mode='onboot'/> <mtu size='1500'/> <protocol family='ipv6'> <autoconf/> </protocol> <mac address='10:60:4b:78:2a:74'/> </interface> # virsh iface-start eno1 error: Failed to start interface eno1 error: internal error: failed to create (start) interface eno1: unspecified error - interface eno1 failed to become active - possible disconnected cable. # virsh iface-dumpxml eno1 <interface type='ethernet' name='eno1'> <protocol family='ipv6'> <ip address='2620:52:0:4246:1260:4bff:fe78:2a74' prefix='64'/> <ip address='fe80::1260:4bff:fe78:2a74' prefix='64'/> </protocol> <link speed='1000' state='up'/> <mac address='10:60:4b:78:2a:74'/> </interface> 4. When ipv4 is configured together with ipv6, iface-start can succeed: <interface type='ethernet' name='eno1'> <start mode='onboot'/> <protocol family='ipv4'> <dhcp/> </protocol> <protocol family='ipv6'> </protocol> </interface> 5.When static ipv6 address is configured, iface-start can succeed: <interface type='ethernet' name='eno1'> <start mode='onboot'/> <protocol family='ipv6'> <ip address='2002::200' prefix='64'/> <ip address='2002::201' prefix='64'/> <ip address='2002::203' prefix='64'/> </protocol> </interface>