Bug 1177984
| Summary: | Anaconda does not use IPv6 gateway from kernel boot line during PXE | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Paul Wayper <pwayper> | ||||||
| Component: | anaconda | Assignee: | Radek Vykydal <rvykydal> | ||||||
| Status: | CLOSED ERRATA | QA Contact: | Release Test Team <release-test-team-automation> | ||||||
| Severity: | high | Docs Contact: | Clayton Spicer <cspicer> | ||||||
| Priority: | high | ||||||||
| Version: | 6.6 | CC: | cww, jstodola, mhruscak, mmatsuya, rvykydal, salmy, sbueno | ||||||
| Target Milestone: | rc | ||||||||
| Target Release: | --- | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Whiteboard: | |||||||||
| Fixed In Version: | anaconda-13.21.255-1 | Doc Type: | Bug Fix | ||||||
| Doc Text: |
The "gateway" installation boot option now handles *IPv6* addresses
Previously, the "gateway" boot option in the installation system supported only *IPv4* addresses. With this update, it is possible to configure an *IPv6* gateway, using the "gateway" boot option, during installation.
|
Story Points: | --- | ||||||
| Clone Of: | |||||||||
| : | 1285857 (view as bug list) | Environment: | |||||||
| Last Closed: | 2017-03-21 11:08:44 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: | |||||||||
| Bug Depends On: | |||||||||
| Bug Blocks: | 1269194, 1361708 | ||||||||
| Attachments: |
|
||||||||
|
Description
Paul Wayper
2015-01-01 01:05:50 UTC
(In reply to Paul Wayper from comment #0) > > Additional info: > > Masahiro Matsuya has produced an initrd file that fixed this issue. I'm > cc'ing him on this bug so he can add his notes on what he fixed. Hi Masahiro, any chance you can provide the details Paul mentioned to help us debug this? Hello Samantha, Unfortunately, I lost the exact patch used to create the test initrd.img. I backported from https://git.fedorahosted.org/cgit/anaconda.git/commit/?h=f15-branch&id=659e027775ef81b5656e987ec648cf2b5454c688. This patch enables gateway= boot parameter to be used with IPv6 gateway IP address. This is one of the related patches for bz#677609 in https://git.fedorahosted.org/cgit/anaconda.git/log/?h=f15-branch&qt=grep&q=677609. But, 52cd3fc045429f5f271fb8b6970457b7dea4aef8 has already been included in RHEL6, and 528046666bfb6e4e0ba7f88044736a8bbcf1c897 is not must. But, with initrd.img with the above patch, it failed to download a kickstart file. But, it could proceed the installation with selecting 'OK' button to retry downloading it. So, they still have some timing issue. I wanted to check the network configuration with another initrd.img with a *debug* code to retry downloading kickstart 10 times automatically and to output the network status on the failure. If I remember correctly, I added the change into urlinstTransfer() of urls.c. It's not to confirm the fix with it, but it's to collect the debug information. But, the problem didn't happen with it and the requested data was not provided unfortunately. Basically, I don't think it's good idea to add the retry code for it. It's better to investigate how the first download of kickstart failed and make a patch for it, but the case was closed already and we don't have reproducer. At least, 659e027775ef81b5656e987ec648cf2b5454c688 should be fixed on this bugzilla. But, I don't think we should add the retry code, though it's just my opinion. Thanks, Masahiro So from Masahiro's analysis it seems the issue is caused by not setting the ipv6 gateway via boot options. We should either port the patch, or maybe rather add dedicated ipv6gateway boot option (as used in the descritption). (In reply to Masahiro Matsuya from comment #3) > At least, 659e027775ef81b5656e987ec648cf2b5454c688 should be fixed on this > bugzilla. But, I don't think we should add the retry code, though it's just > my opinion. Agreed, sent port of the patch from f15-branch for review. Radek,
I have a problem downloading install.img when using IPv6. Anaconda says it couldn't download it, but when I retry it, the file is downloaded successfully and the installation continues. Network settings look OK to me when this happens:
# ip -6 a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qlen 1000
inet6 fd00:dead:beef:56::20/64 scope global
valid_lft forever preferred_lft forever
inet6 fe80::5054:ff:fe60:e1b0/64 scope link
valid_lft forever preferred_lft forever
# ip -6 r
fd00:dead:beef:56::/64 dev eth0 proto kernel metric 256 mtu 1500
fe80::/64 dev eth0 proto kernel metric 256 mtu 1500
default via fd00:dead:beef:56::10 dev eth0 proto static metric 1 mtu 1500
The kernel cmdline options: repo=http://[fd00:dead:beef:55::20]/68 ipv6=fd00:dead:beef:56::20/64 gateway=fd00:dead:beef:56::10
Tested with anaconda-13.21.247-1.el6. Logs will be attached, moving to ASSIGNED.
Created attachment 1136237 [details]
anaconda.log
Created attachment 1136238 [details]
syslog
Dropped from the errata due to FailedQA status. We're out of time for 6.8 and this is a non-blocking issue. We'll re-visit this for 6.9, so I'll set the flags for that release. According to comment #7, the patch/fix that was intended to be included in 6.8 really resolves what was originally aimed to be fixed in scope of this bug (comment #3): fixing the support of ipv6 for gateway installer boot option. I will investigate the further issue - install.img being downloaded only after retry in UI. I was able to reproduce it locally. (In reply to Radek Vykydal from comment #13) > ... I will investigate the further issue - install.img being downloaded > only after retry in UI. I was able to reproduce it locally. Adding NM debug logging reveals that we are missing /bin/ping6 in installer image: 14:47:02,619 INFO NetworkManager: <debug> [1476370022.619350] [nm-system.c:317] sync_addresses(): (eth1): adding address '2001:cafe:cafe:8::4/0' 14:47:03,620 INFO NetworkManager: <debug> [1476370023.620009] [nm-device.c:3859] spawn_ping(): (eth1): running '/bin/ping6 -I eth1 -c 1 -w 3 2001:cafe:cafe:8::3' 14:47:03,623 WARNING NetworkManager: <warn> could not spawn /bin/ping6: Failed to execute child process "/bin/ping6" (No such file or directory) which is causing the first http request failing to reach the the server: 15:42:56.958091 IP6 :: > ff02::16: HBH ICMP6, multicast listener report v2, 1 group record(s), length 28 15:42:57.768124 IP6 :: > ff02::1:fff3:dc4e: ICMP6, neighbor solicitation, who has fe80::5054:ff:fef3:dc4e, length 24 15:42:58.926068 IP6 fe80::5054:ff:fef3:dc4e > ff02::16: HBH ICMP6, multicast listener report v2, 2 group record(s), length 48 15:42:59.225184 IP6 :: > ff02::1:ff00:4: ICMP6, neighbor solicitation, who has 2001:cafe:cafe:8::4, length 24 15:42:59.935118 IP6 fe80::5054:ff:fef3:dc4e > ff02::1:ff00:3: ICMP6, neighbor solicitation, who has 2001:cafe:cafe:8::3, length 32 15:42:59.935179 IP6 2001:cafe:cafe:8::3 > fe80::5054:ff:fef3:dc4e: ICMP6, neighbor advertisement, tgt is 2001:cafe:cafe:8::3, length 32 15:42:59.936117 IP6 fe80::5054:ff:fef3:dc4e.52188 > 2001:cafe:cafe:7::1.http: Flags [S], seq 2736847660, win 14400, options [mss 1440,sackOK,TS val 4294685315 ecr 0,nop,wscale 7], length 0 15:42:59.936193 IP6 fe80::5054:ff:fea9:b08f > fe80::5054:ff:fef3:dc4e: ICMP6, destination unreachable, beyond scope 2001:cafe:cafe:7::1, source address fe80::5054:ff:fef3:dc4e, length 88 15:42:59.940079 IP6 fe80::5054:ff:fef3:dc4e.52189 > 2001:cafe:cafe:7::1.http: Flags [S], seq 450115356, win 14400, options [mss 1440,sackOK,TS val 4294685321 ecr 0,nop,wscale 7], length 0 15:42:59.940113 IP6 fe80::5054:ff:fea9:b08f > fe80::5054:ff:fef3:dc4e: ICMP6, destination unreachable, beyond scope 2001:cafe:cafe:7::1, source address fe80::5054:ff:fef3:dc4e, length 88 15:42:59.946094 IP6 fe80::5054:ff:fef3:dc4e.52190 > 2001:cafe:cafe:7::1.http: Flags [S], seq 1979673574, win 14400, options [mss 1440,sackOK,TS val 4294685327 ecr 0,nop,wscale 7], length 0 15:42:59.946109 IP6 fe80::5054:ff:fea9:b08f > fe80::5054:ff:fef3:dc4e: ICMP6, destination unreachable, beyond scope 2001:cafe:cafe:7::1, source address fe80::5054:ff:fef3:dc4e, length 88 15:43:04.948467 IP6 fe80::5054:ff:fea9:b08f > fe80::5054:ff:fef3:dc4e: ICMP6, neighbor solicitation, who has fe80::5054:ff:fef3:dc4e, length 32 15:43:04.949056 IP6 fe80::5054:ff:fef3:dc4e > fe80::5054:ff:fea9:b08f: ICMP6, neighbor advertisement, tgt is fe80::5054:ff:fef3:dc4e, length 24 15:43:08.293169 IP6 fe80::5054:ff:fef3:dc4e > ff02::16: HBH ICMP6, multicast listener report v2, 2 group record(s), length 48 15:43:09.948069 IP6 fe80::5054:ff:fef3:dc4e > fe80::5054:ff:fea9:b08f: ICMP6, neighbor solicitation, who has fe80::5054:ff:fea9:b08f, length 32 15:43:09.948108 IP6 fe80::5054:ff:fea9:b08f > fe80::5054:ff:fef3:dc4e: ICMP6, neighbor advertisement, tgt is fe80::5054:ff:fea9:b08f, length 24 Summary: - support for ipv6 in gateway boot option has been added already in 6.8 - http request fail (dropping to loader tui) should be fixed in the next build of 6.9 (anaconda-13.21.255-1) Looks okay to me. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2017-0720.html |