← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1459042] Re: Cirros should report IPv6 connectivity when booting

 

The output in question comes from cloud-init, so added that package.
After doing a bit of debugging, there seem to be two issues here:

1. The output is created too early when the IPv6 network is using slaac,
so this means that there is no IPv6 address listed because it takes a
bit longer to show up. If I call cloudinit.netinfo.debug_info() on a
running system after booting has finished, the IPv6 address information
is shown correctly.

2. Routes for IPv6 are never shown correctly. cloud-init uses a call to
"netstat -rn", which only outputs IPv4 routes at least on Xenial.
Running "netstat -rn46" shows routes for both address families, but that
output doesn't seem to get parsed properly.

** Also affects: cloud-init
   Importance: Undecided
       Status: New

** Summary changed:

- Cirros should report IPv6 connectivity when booting
+ cloud-init fails to report IPv6 connectivity when booting

** Changed in: cloud-init
       Status: New => Confirmed

** Changed in: cirros
       Status: Confirmed => Invalid

** Description changed:

  It would be convenient to see the IPv6 networking information printed at
  boot, similar to the IPv4 networking information currently is.
+ 
+ Output from the boot log:
+ [   15.621085] cloud-init[1058]: Cloud-init v. 0.7.7 running 'init' at Tue, 14 Jun 2016 13:48:14 +0000. Up 6.71 seconds.
+ [   15.622670] cloud-init[1058]: ci-info: ++++++++++++++++++++++++++++Net device info+++++++++++++++++++++++++++++
+ [   15.624106] cloud-init[1058]: ci-info: +--------+------+------------+-------------+-------+-------------------+
+ [   15.625516] cloud-init[1058]: ci-info: | Device |  Up  |  Address   |     Mask    | Scope |     Hw-Address    |
+ [   15.627058] cloud-init[1058]: ci-info: +--------+------+------------+-------------+-------+-------------------+
+ [   15.628504] cloud-init[1058]: ci-info: | ens3:  | True | 10.42.0.48 | 255.255.0.0 |   .   | fa:16:3e:f9:86:07 |
+ [   15.629930] cloud-init[1058]: ci-info: | ens3:  | True |     .      |      .      |   d   | fa:16:3e:f9:86:07 |
+ [   15.631334] cloud-init[1058]: ci-info: |  lo:   | True | 127.0.0.1  |  255.0.0.0  |   .   |         .         |
+ [   15.632765] cloud-init[1058]: ci-info: |  lo:   | True |     .      |      .      |   d   |         .         |
+ [   15.634221] cloud-init[1058]: ci-info: +--------+------+------------+-------------+-------+-------------------+
+ [   15.635671] cloud-init[1058]: ci-info: +++++++++++++++++++++++++++++++Route IPv4 info+++++++++++++++++++++++++++++++
+ [   15.637186] cloud-init[1058]: ci-info: +-------+-----------------+-----------+-----------------+-----------+-------+
+ [   15.638682] cloud-init[1058]: ci-info: | Route |   Destination   |  Gateway  |     Genmask     | Interface | Flags |
+ [   15.640182] cloud-init[1058]: ci-info: +-------+-----------------+-----------+-----------------+-----------+-------+
+ [   15.641657] cloud-init[1058]: ci-info: |   0   |     0.0.0.0     | 10.42.0.1 |     0.0.0.0     |    ens3   |   UG  |
+ [   15.643149] cloud-init[1058]: ci-info: |   1   |    10.42.0.0    |  0.0.0.0  |   255.255.0.0   |    ens3   |   U   |
+ [   15.644661] cloud-init[1058]: ci-info: |   2   | 169.254.169.254 | 10.42.0.1 | 255.255.255.255 |    ens3   |  UGH  |
+ [   15.646175] cloud-init[1058]: ci-info: +-------+-----------------+-----------+-----------------+-----------+-------+
+ 
+ Output from running system:
+ ci-info: +++++++++++++++++++++++++++++++++++++++++++++++Net device info+++++++++++++++++++++++++++++++++++++++++++++++
+ ci-info: +------------+-------+-----------------------------------------+---------------+--------+-------------------+
+ ci-info: |   Device   |   Up  |                 Address                 |      Mask     | Scope  |     Hw-Address    |
+ ci-info: +------------+-------+-----------------------------------------+---------------+--------+-------------------+
+ ci-info: |    ens3    |  True |                10.42.0.44               |  255.255.0.0  |   .    | fa:16:3e:90:11:e0 |
+ ci-info: |    ens3    |  True | 2a04:3b40:8010:1:f816:3eff:fe90:11e0/64 |       .       | global | fa:16:3e:90:11:e0 |
+ ci-info: |     lo     |  True |                127.0.0.1                |   255.0.0.0   |   .    |         .         |
+ ci-info: |     lo     |  True |                 ::1/128                 |       .       |  host  |         .         |
+ ci-info: +------------+-------+-----------------------------------------+---------------+--------+-------------------+
+ ci-info: +++++++++++++++++++++++++++++++Route IPv4 info+++++++++++++++++++++++++++++++
+ ci-info: +-------+-----------------+-----------+-----------------+-----------+-------+
+ ci-info: | Route |   Destination   |  Gateway  |     Genmask     | Interface | Flags |
+ ci-info: +-------+-----------------+-----------+-----------------+-----------+-------+
+ ci-info: |   0   |     0.0.0.0     | 10.42.0.1 |     0.0.0.0     |    ens3   |   UG  |
+ ci-info: |   1   |    10.42.0.0    |  0.0.0.0  |   255.255.0.0   |    ens3   |   U   |
+ ci-info: |   2   | 169.254.169.254 | 10.42.0.1 | 255.255.255.255 |    ens3   |  UGH  |
+ ci-info: +-------+-----------------+-----------+-----------------+-----------+-------+
+ 
+ $ netstat -rn46
+ Kernel IP routing table
+ Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
+ 0.0.0.0         10.42.0.1       0.0.0.0         UG        0 0          0 ens3
+ 10.42.0.0       0.0.0.0         255.255.0.0     U         0 0          0 ens3
+ 169.254.169.254 10.42.0.1       255.255.255.255 UGH       0 0          0 ens3
+ 192.168.122.0   0.0.0.0         255.255.255.0   U         0 0          0 virbr0
+ Kernel IPv6 routing table
+ Destination                    Next Hop                   Flag Met Ref Use If
+ 2a04:3b40:8010:1::/64          ::                         UAe  256 0     0 ens3
+ fe80::/64                      ::                         U    256 0     0 ens3
+ ::/0                           fe80::f816:3eff:fed0:2be5  UGDAe 1024 4   119 ens3
+ ::/0                           ::                         !n   -1  1   789 lo
+ ::1/128                        ::                         Un   0   9  7428 lo
+ 2a04:3b40:8010:1:f816:3eff:fe90:11e0/128 ::                         Un   0   2   444 lo
+ fe80::f816:3eff:fe90:11e0/128  ::                         Un   0   2   167 lo
+ ff00::/8                       ::                         U    256 2 29412 ens3
+ ::/0                           ::                         !n   -1  1   789 lo

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to cloud-init.
https://bugs.launchpad.net/bugs/1459042

Title:
  cloud-init fails to report IPv6 connectivity when booting

Status in CirrOS:
  Invalid
Status in cloud-init:
  Confirmed

Bug description:
  It would be convenient to see the IPv6 networking information printed
  at boot, similar to the IPv4 networking information currently is.

  Output from the boot log:
  [   15.621085] cloud-init[1058]: Cloud-init v. 0.7.7 running 'init' at Tue, 14 Jun 2016 13:48:14 +0000. Up 6.71 seconds.
  [   15.622670] cloud-init[1058]: ci-info: ++++++++++++++++++++++++++++Net device info+++++++++++++++++++++++++++++
  [   15.624106] cloud-init[1058]: ci-info: +--------+------+------------+-------------+-------+-------------------+
  [   15.625516] cloud-init[1058]: ci-info: | Device |  Up  |  Address   |     Mask    | Scope |     Hw-Address    |
  [   15.627058] cloud-init[1058]: ci-info: +--------+------+------------+-------------+-------+-------------------+
  [   15.628504] cloud-init[1058]: ci-info: | ens3:  | True | 10.42.0.48 | 255.255.0.0 |   .   | fa:16:3e:f9:86:07 |
  [   15.629930] cloud-init[1058]: ci-info: | ens3:  | True |     .      |      .      |   d   | fa:16:3e:f9:86:07 |
  [   15.631334] cloud-init[1058]: ci-info: |  lo:   | True | 127.0.0.1  |  255.0.0.0  |   .   |         .         |
  [   15.632765] cloud-init[1058]: ci-info: |  lo:   | True |     .      |      .      |   d   |         .         |
  [   15.634221] cloud-init[1058]: ci-info: +--------+------+------------+-------------+-------+-------------------+
  [   15.635671] cloud-init[1058]: ci-info: +++++++++++++++++++++++++++++++Route IPv4 info+++++++++++++++++++++++++++++++
  [   15.637186] cloud-init[1058]: ci-info: +-------+-----------------+-----------+-----------------+-----------+-------+
  [   15.638682] cloud-init[1058]: ci-info: | Route |   Destination   |  Gateway  |     Genmask     | Interface | Flags |
  [   15.640182] cloud-init[1058]: ci-info: +-------+-----------------+-----------+-----------------+-----------+-------+
  [   15.641657] cloud-init[1058]: ci-info: |   0   |     0.0.0.0     | 10.42.0.1 |     0.0.0.0     |    ens3   |   UG  |
  [   15.643149] cloud-init[1058]: ci-info: |   1   |    10.42.0.0    |  0.0.0.0  |   255.255.0.0   |    ens3   |   U   |
  [   15.644661] cloud-init[1058]: ci-info: |   2   | 169.254.169.254 | 10.42.0.1 | 255.255.255.255 |    ens3   |  UGH  |
  [   15.646175] cloud-init[1058]: ci-info: +-------+-----------------+-----------+-----------------+-----------+-------+

  Output from running system:
  ci-info: +++++++++++++++++++++++++++++++++++++++++++++++Net device info+++++++++++++++++++++++++++++++++++++++++++++++
  ci-info: +------------+-------+-----------------------------------------+---------------+--------+-------------------+
  ci-info: |   Device   |   Up  |                 Address                 |      Mask     | Scope  |     Hw-Address    |
  ci-info: +------------+-------+-----------------------------------------+---------------+--------+-------------------+
  ci-info: |    ens3    |  True |                10.42.0.44               |  255.255.0.0  |   .    | fa:16:3e:90:11:e0 |
  ci-info: |    ens3    |  True | 2a04:3b40:8010:1:f816:3eff:fe90:11e0/64 |       .       | global | fa:16:3e:90:11:e0 |
  ci-info: |     lo     |  True |                127.0.0.1                |   255.0.0.0   |   .    |         .         |
  ci-info: |     lo     |  True |                 ::1/128                 |       .       |  host  |         .         |
  ci-info: +------------+-------+-----------------------------------------+---------------+--------+-------------------+
  ci-info: +++++++++++++++++++++++++++++++Route IPv4 info+++++++++++++++++++++++++++++++
  ci-info: +-------+-----------------+-----------+-----------------+-----------+-------+
  ci-info: | Route |   Destination   |  Gateway  |     Genmask     | Interface | Flags |
  ci-info: +-------+-----------------+-----------+-----------------+-----------+-------+
  ci-info: |   0   |     0.0.0.0     | 10.42.0.1 |     0.0.0.0     |    ens3   |   UG  |
  ci-info: |   1   |    10.42.0.0    |  0.0.0.0  |   255.255.0.0   |    ens3   |   U   |
  ci-info: |   2   | 169.254.169.254 | 10.42.0.1 | 255.255.255.255 |    ens3   |  UGH  |
  ci-info: +-------+-----------------+-----------+-----------------+-----------+-------+

  $ netstat -rn46
  Kernel IP routing table
  Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
  0.0.0.0         10.42.0.1       0.0.0.0         UG        0 0          0 ens3
  10.42.0.0       0.0.0.0         255.255.0.0     U         0 0          0 ens3
  169.254.169.254 10.42.0.1       255.255.255.255 UGH       0 0          0 ens3
  192.168.122.0   0.0.0.0         255.255.255.0   U         0 0          0 virbr0
  Kernel IPv6 routing table
  Destination                    Next Hop                   Flag Met Ref Use If
  2a04:3b40:8010:1::/64          ::                         UAe  256 0     0 ens3
  fe80::/64                      ::                         U    256 0     0 ens3
  ::/0                           fe80::f816:3eff:fed0:2be5  UGDAe 1024 4   119 ens3
  ::/0                           ::                         !n   -1  1   789 lo
  ::1/128                        ::                         Un   0   9  7428 lo
  2a04:3b40:8010:1:f816:3eff:fe90:11e0/128 ::                         Un   0   2   444 lo
  fe80::f816:3eff:fe90:11e0/128  ::                         Un   0   2   167 lo
  ff00::/8                       ::                         U    256 2 29412 ens3
  ::/0                           ::                         !n   -1  1   789 lo

To manage notifications about this bug go to:
https://bugs.launchpad.net/cirros/+bug/1459042/+subscriptions