2017-06-28 22:08:37 |
Ryan Harper |
bug |
|
|
added bug |
2017-06-28 22:09:20 |
Ryan Harper |
attachment added |
|
eni-fix-ipv6-route-gateway.patch3 https://bugs.launchpad.net/cloud-init/+bug/1701097/+attachment/4904963/+files/eni-fix-ipv6-route-gateway.patch3 |
|
2017-07-03 14:55:48 |
Scott Moser |
cloud-init: status |
New |
Confirmed |
|
2017-07-03 14:55:50 |
Scott Moser |
cloud-init: importance |
Undecided |
Medium |
|
2017-07-18 18:25:24 |
Launchpad Janitor |
merge proposal linked |
|
https://code.launchpad.net/~raharper/cloud-init/+git/cloud-init/+merge/327648 |
|
2017-07-18 18:44:23 |
Scott Moser |
cloud-init: assignee |
|
Ryan Harper (raharper) |
|
2017-07-19 18:08:10 |
Scott Moser |
bug task added |
|
cloud-init (Ubuntu) |
|
2017-07-19 18:08:19 |
Scott Moser |
cloud-init (Ubuntu): status |
New |
Confirmed |
|
2017-07-19 18:08:24 |
Scott Moser |
cloud-init (Ubuntu): importance |
Undecided |
Medium |
|
2017-07-19 18:08:44 |
Scott Moser |
nominated for series |
|
Ubuntu Artful |
|
2017-07-19 18:08:44 |
Scott Moser |
bug task added |
|
cloud-init (Ubuntu Artful) |
|
2017-07-19 18:08:44 |
Scott Moser |
nominated for series |
|
Ubuntu Xenial |
|
2017-07-19 18:08:44 |
Scott Moser |
bug task added |
|
cloud-init (Ubuntu Xenial) |
|
2017-07-19 18:08:44 |
Scott Moser |
nominated for series |
|
Ubuntu Zesty |
|
2017-07-19 18:08:44 |
Scott Moser |
bug task added |
|
cloud-init (Ubuntu Zesty) |
|
2017-07-19 18:08:44 |
Scott Moser |
nominated for series |
|
Ubuntu Yakkety |
|
2017-07-19 18:08:44 |
Scott Moser |
bug task added |
|
cloud-init (Ubuntu Yakkety) |
|
2017-07-19 18:08:51 |
Scott Moser |
cloud-init (Ubuntu Xenial): status |
New |
Confirmed |
|
2017-07-19 18:08:53 |
Scott Moser |
cloud-init (Ubuntu Yakkety): status |
New |
Confirmed |
|
2017-07-19 18:08:55 |
Scott Moser |
cloud-init (Ubuntu Zesty): status |
New |
Confirmed |
|
2017-07-19 18:08:57 |
Scott Moser |
cloud-init (Ubuntu Xenial): importance |
Undecided |
Medium |
|
2017-07-19 18:09:00 |
Scott Moser |
cloud-init (Ubuntu Yakkety): importance |
Undecided |
Medium |
|
2017-07-19 18:09:02 |
Scott Moser |
cloud-init (Ubuntu Zesty): importance |
Undecided |
Medium |
|
2017-07-19 20:21:03 |
Ubuntu Foundations Team Bug Bot |
tags |
|
patch |
|
2017-07-19 20:21:09 |
Ubuntu Foundations Team Bug Bot |
bug |
|
|
added subscriber Ubuntu Review Team |
2017-07-20 20:29:06 |
Launchpad Janitor |
merge proposal linked |
|
https://code.launchpad.net/~smoser/cloud-init/+git/cloud-init/+merge/327836 |
|
2017-07-21 02:51:41 |
Launchpad Janitor |
cloud-init (Ubuntu Artful): status |
Confirmed |
Fix Released |
|
2017-07-21 13:41:15 |
Scott Moser |
cloud-init: status |
Confirmed |
Fix Committed |
|
2017-07-31 20:22:43 |
Scott Moser |
cloud-init (Ubuntu Yakkety): status |
Confirmed |
Won't Fix |
|
2017-07-31 20:22:50 |
Scott Moser |
bug task deleted |
cloud-init (Ubuntu Yakkety) |
|
|
2017-08-04 01:03:01 |
Brian Murray |
cloud-init: status |
Fix Committed |
Fix Released |
|
2017-08-04 13:48:08 |
Scott Moser |
cloud-init: status |
Fix Released |
Fix Committed |
|
2017-08-04 14:16:44 |
Scott Moser |
description |
cloud-init trunk and xenial, yakkety, zesty and artful all fail
A network config with a ipv6 gateway route like:
subnets:
- type: static
address: 2001:4800:78ff:1b:be76:4eff:fe06:96b3
netmask: 'ffff:ffff:ffff:ffff::'
routes:
- gateway: 2001:4800:78ff:1b::1
netmask: '::'
network: '::'
For eni rendering, this should create a post-up/post-down route command that generates a default ipv6 route entry, like this:
post-up route add -A inet6 default gw 2001:4800:78ff:1b::1 || true
pre-down route del -A inet6 default gw 2001:4800:78ff:1b::1 || true
However, what is currently generated is this:
post-up route add -net :: netmask :: gw 2001:4800:78ff:1b::1 || true
pre-down route del -net :: netmask :: gw 2001:4800:78ff:1b::1 || true
That does not install the route correctly as a default gateway route.
This is fallout from commit d00da2d5b0d45db5670622a66d833d2abb907388
net: normalize data in network_state object
This commit removed ipv6 route 'netmask' values, and converted them to
prefix length values, but failed to update the eni renderer's check for
ipv6 default gateway. |
=== Begin SRU Template ===
[Impact]
Network configuration provided to cloud-init that has an ipv6 address
and additional manual default route will fail to bring up the routes
correctly.
[Test Case]
The basic idea below is:
a.) launch an instance with proposed version of cloud-init.
b.) inside instance, get cloud-init's network rendering tool from trunk
c.) run the rendering tool against a config that failed before.
d.) check rendered ENI config to verify it looks correct.
## launch an instance.
$ release=xenial
$ ref=$release-proposed
$ lxc-proposed-snapshot --proposed --publish $release $ref
$ lxc launch $ref $name
$ lxc exec $ref $name /bin/bash
## get render tool
% wget https://git.launchpad.net/~cloud-init-dev/cloud-init/plain/tools/net-convert.py -O net-convert.py
% cat > net-config.yaml <<"EOF"
version: 1
config:
- type: physical
name: eth0
mac_address: "c0:d6:9f:2c:e8:80"
subnets:
- type: static
address: "2001:1::2/64"
routes:
- gateway: "2001:4800:78ff:1b::1"
netmask: "::"
network: "::"
EOF
$ python3 ./net-convert.py \
--network-data=net-config.yaml --kind=yaml \
--output-kind=eni \
--mac=eth0,c0:d6:9f:2c:e8:80 \
--directory=out.d
% cat out.d/etc/network/interfaces
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet6 static
address 2001:1::2/64
post-up route add -A inet6 default gw 2001:4800:78ff:1b::1 || true
pre-down route del -A inet6 default gw 2001:4800:78ff:1b::1 || true
## The output above is the expected output. The failure path
## would have post-up and pre-down like:
post-up route add -net :: netmask :: gw 2001:4800:78ff:1b::1 || true
pre-down route del -net :: netmask :: gw 2001:4800:78ff:1b::1 || true
[Regression Potential]
Regressions for this change are almost certainly limited to
rendering of ipv6 networking configuration and most likely limited
to routing.
[Other Info]
Upstream commit at
https://git.launchpad.net/cloud-init/commit/?id=811ce49d74af
=== End SRU Template ===
cloud-init trunk and xenial, yakkety, zesty and artful all fail
A network config with a ipv6 gateway route like:
subnets:
- type: static
address: 2001:4800:78ff:1b:be76:4eff:fe06:96b3
netmask: 'ffff:ffff:ffff:ffff::'
routes:
- gateway: 2001:4800:78ff:1b::1
netmask: '::'
network: '::'
For eni rendering, this should create a post-up/post-down route command that generates a default ipv6 route entry, like this:
post-up route add -A inet6 default gw 2001:4800:78ff:1b::1 || true
pre-down route del -A inet6 default gw 2001:4800:78ff:1b::1 || true
However, what is currently generated is this:
post-up route add -net :: netmask :: gw 2001:4800:78ff:1b::1 || true
pre-down route del -net :: netmask :: gw 2001:4800:78ff:1b::1 || true
That does not install the route correctly as a default gateway route.
This is fallout from commit d00da2d5b0d45db5670622a66d833d2abb907388
net: normalize data in network_state object
This commit removed ipv6 route 'netmask' values, and converted them to
prefix length values, but failed to update the eni renderer's check for
ipv6 default gateway. |
|
2017-08-23 12:28:27 |
Chris J Arges |
cloud-init (Ubuntu Xenial): status |
Confirmed |
Fix Committed |
|
2017-08-23 12:28:29 |
Chris J Arges |
bug |
|
|
added subscriber Ubuntu Stable Release Updates Team |
2017-08-23 12:28:30 |
Chris J Arges |
bug |
|
|
added subscriber SRU Verification |
2017-08-23 12:28:38 |
Chris J Arges |
tags |
patch |
patch verification-needed verification-needed-xenial |
|
2017-08-23 12:31:43 |
Chris J Arges |
cloud-init (Ubuntu Zesty): status |
Confirmed |
Fix Committed |
|
2017-08-23 12:31:49 |
Chris J Arges |
tags |
patch verification-needed verification-needed-xenial |
patch verification-needed verification-needed-xenial verification-needed-zesty |
|
2017-08-28 21:21:50 |
Chad Smith |
tags |
patch verification-needed verification-needed-xenial verification-needed-zesty |
patch verification-done-xenial verification-done-zesty |
|
2017-09-01 05:21:14 |
David Britton |
tags |
patch verification-done-xenial verification-done-zesty |
patch verification-needed-xenial verification-needed-zesty |
|
2017-09-12 20:53:18 |
Chad Smith |
tags |
patch verification-needed-xenial verification-needed-zesty |
patch verification-done-xenial verification-done-zesty |
|
2017-09-13 01:26:05 |
Launchpad Janitor |
cloud-init (Ubuntu Xenial): status |
Fix Committed |
Fix Released |
|
2017-09-13 01:26:50 |
Chris Halse Rogers |
removed subscriber Ubuntu Stable Release Updates Team |
|
|
|
2017-09-13 01:27:27 |
Launchpad Janitor |
cloud-init (Ubuntu Zesty): status |
Fix Committed |
Fix Released |
|
2017-09-23 02:34:13 |
Scott Moser |
cloud-init: status |
Fix Committed |
Fix Released |
|
2023-05-11 02:56:01 |
James Falcon |
bug watch added |
|
https://github.com/canonical/cloud-init/issues/2934 |
|