"Prefer-IPv6" does not recognize IPv6 address
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Incomplete
|
Low
|
Unassigned | ||
Charm Helpers |
New
|
Undecided
|
Unassigned |
Bug Description
I'm trying to build an openstack cloud based on IPv6 instead of IPv4 for better scalability.
Every charm being deployed is failing with the following error (directly from the logs).
Output of Unit Charm Log (In this particular case it's nova-compute):
2018-04-27 23:30:23 DEBUG juju-log Hardening function 'upgrade_charm'
2018-04-27 23:30:23 DEBUG juju-log Hardening function 'update_status'
2018-04-27 23:30:24 DEBUG juju-log No hardening applied to 'install'
2018-04-27 23:30:24 INFO juju-log DEPRECATION WARNING: Function configure_
2018-04-27 23:30:24 DEBUG install Get:1 http://
2018-04-27 23:30:25 DEBUG install Hit:2 http://
2018-04-27 23:30:25 DEBUG install Hit:3 http://
2018-04-27 23:30:25 DEBUG install Hit:4 http://
2018-04-27 23:30:25 DEBUG install Fetched 242 kB in 1s (247 kB/s)
2018-04-27 23:30:26 DEBUG install Reading package lists...
2018-04-27 23:30:26 INFO juju-log Installing ['nova-compute', 'genisoimage', 'librbd1', 'python-six', 'python-psutil', 'nova-compute-kvm'] with options: ['--option=
2018-04-27 23:30:27 DEBUG install Reading package lists...
2018-04-27 23:30:27 DEBUG install Building dependency tree...
2018-04-27 23:30:27 DEBUG install Reading state information...
2018-04-27 23:30:27 DEBUG install genisoimage is already the newest version (9:1.1.
2018-04-27 23:30:27 DEBUG install librbd1 is already the newest version (12.2.4-0ubuntu1).
2018-04-27 23:30:27 DEBUG install nova-compute is already the newest version (2:17.0.
2018-04-27 23:30:27 DEBUG install nova-compute-kvm is already the newest version (2:17.0.
2018-04-27 23:30:27 DEBUG install python-psutil is already the newest version (5.4.2-1).
2018-04-27 23:30:27 DEBUG install python-six is already the newest version (1.11.0-2).
2018-04-27 23:30:27 DEBUG install 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2018-04-27 23:30:30 DEBUG juju-log Generating template context for amqp
2018-04-27 23:30:31 DEBUG install ERROR no relation id specified
2018-04-27 23:30:31 DEBUG juju-log Generating template context for image-service.
2018-04-27 23:30:31 DEBUG juju-log 0 section(s) found
2018-04-27 23:30:32 INFO juju-log Address '10.0.0.51' is configured on iface 'br-eno1'
2018-04-27 23:30:32 DEBUG install Traceback (most recent call last):
2018-04-27 23:30:32 DEBUG install File "/var/lib/
2018-04-27 23:30:32 DEBUG install main()
2018-04-27 23:30:32 DEBUG install File "/var/lib/
2018-04-27 23:30:32 DEBUG install assess_
2018-04-27 23:30:32 DEBUG install File "/var/lib/
2018-04-27 23:30:32 DEBUG install assess_
2018-04-27 23:30:32 DEBUG install File "/var/lib/
2018-04-27 23:30:32 DEBUG install state, message = _determine_
2018-04-27 23:30:32 DEBUG install File "/var/lib/
2018-04-27 23:30:32 DEBUG install configs, required_
2018-04-27 23:30:32 DEBUG install File "/var/lib/
2018-04-27 23:30:32 DEBUG install required_
2018-04-27 23:30:32 DEBUG install File "/var/lib/
2018-04-27 23:30:32 DEBUG install complete_ctxts = configs.
2018-04-27 23:30:32 DEBUG install File "/var/lib/
2018-04-27 23:30:32 DEBUG install for i in six.itervalues(
2018-04-27 23:30:32 DEBUG install File "/var/lib/
2018-04-27 23:30:32 DEBUG install for i in six.itervalues(
2018-04-27 23:30:32 DEBUG install File "/var/lib/
2018-04-27 23:30:32 DEBUG install self.context()
2018-04-27 23:30:32 DEBUG install File "/var/lib/
2018-04-27 23:30:32 DEBUG install _ctxt = context()
2018-04-27 23:30:32 DEBUG install File "/var/lib/
2018-04-27 23:30:32 DEBUG install ctxt['console_
2018-04-27 23:30:32 DEBUG install File "/var/lib/
2018-04-27 23:30:32 DEBUG install fallback_addr = get_ipv6_
2018-04-27 23:30:32 DEBUG install File "/var/lib/
2018-04-27 23:30:32 DEBUG install return f(*args, **kwargs)
2018-04-27 23:30:32 DEBUG install File "/var/lib/
2018-04-27 23:30:32 DEBUG install "non-temporary ipv6 address." % iface)
2018-04-27 23:30:32 DEBUG install Exception: Interface 'br-eno1' does not have a scope global non-temporary ipv6 address.
2018-04-27 23:30:32 ERROR juju.worker.
My IPv6 is a static setting using ULA (equivalent to a 192.168.0.0) address:
Output of ifconfig:
br-eno1: flags=4163<
inet 10.0.0.51 netmask 255.255.255.0 broadcast 10.0.0.255
inet6 fd00::1:0:4 prefixlen 64 scopeid 0x0<global>
inet6 fe80::7cea:
ether 7e:ea:d7:95:03:1c txqueuelen 1000 (Ethernet)
RX packets 5578 bytes 3104832 (3.1 MB)
RX errors 0 dropped 1 overruns 0 frame 0
TX packets 3863 bytes 696147 (696.1 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
Output of /etc/netplan:
network:
version: 2
ethernets:
eno1:
match:
macaddress: 00:25:90:4c:79:58
set-name: eno1
mtu: 1500
eno2:
match:
macaddress: 00:25:90:4c:79:59
set-name: eno2
mtu: 1500
bridges:
br-eno1:
interfaces: [eno1]
addresses:
- 10.0.0.51/24
- fd00::1:0:4/64
gateway4: 10.0.0.1
gateway6: fd00::1
nameservers:
addresses: [10.0.0.2, 'fd00::2']
mtu: 1500
I'm well aware that Bionic LTS was just released, but this is as far as I have gotten on xenial LTS as well. Same exact issues.
I have yet to tackle the configuration issue of LXCs, this is just the bare metal level to start.
The device in question indeed does not have a 'scope global' address: /en.wikipedia. org/wiki/ Unique_ local_address
https:/
says that fd00::/8 is a 'unique local address'.
I'm not sure why charmhelpers isn't happy to use them.
Note, though that the description there says you probably shouldn't use
fd00::/8 directly, but should use a randomly-generated prefix.
Generally it seems like it is a charmhelpers issue, rather than a Juju
issue.
On Sat, Apr 28, 2018 at 3:39 AM, Michael Quiniola <
<email address hidden>> wrote:
> Public bug reported: installation_ source is being removed on/around 2017-07 : use fetch.add_ source( ) instead. archive. ubuntu. com/ubuntu archive. ubuntu. com/ubuntu archive. ubuntu. com/ubuntu archive. ubuntu. com/ubuntu Dpkg::Options: :=-- 11-3ubuntu2) . 1-0ubuntu1) . 1-0ubuntu1) .
>
> I'm trying to build an openstack cloud based on IPv6 instead of IPv4 for
> better scalability.
> Every charm being deployed is failing with the following error (directly
> from the logs).
>
>
> Output of Unit Charm Log (In this particular case it's nova-compute):
>
> 2018-04-27 23:30:23 DEBUG juju-log Hardening function 'upgrade_charm'
> 2018-04-27 23:30:23 DEBUG juju-log Hardening function 'update_status'
> 2018-04-27 23:30:24 DEBUG juju-log No hardening applied to 'install'
> 2018-04-27 23:30:24 INFO juju-log DEPRECATION WARNING: Function
> configure_
> charmhelpers.
> 2018-04-27 23:30:24 DEBUG install Get:1 http://
> bionic InRelease [242 kB]
> 2018-04-27 23:30:25 DEBUG install Hit:2 http://
> bionic-updates InRelease
> 2018-04-27 23:30:25 DEBUG install Hit:3 http://
> bionic-backports InRelease
> 2018-04-27 23:30:25 DEBUG install Hit:4 http://
> bionic-security InRelease
> 2018-04-27 23:30:25 DEBUG install Fetched 242 kB in 1s (247 kB/s)
> 2018-04-27 23:30:26 DEBUG install Reading package lists...
> 2018-04-27 23:30:26 INFO juju-log Installing ['nova-compute',
> 'genisoimage', 'librbd1', 'python-six', 'python-psutil',
> 'nova-compute-kvm'] with options: ['--option=
> force-confold']
> 2018-04-27 23:30:27 DEBUG install Reading package lists...
> 2018-04-27 23:30:27 DEBUG install Building dependency tree...
> 2018-04-27 23:30:27 DEBUG install Reading state information...
> 2018-04-27 23:30:27 DEBUG install genisoimage is already the newest
> version (9:1.1.
> 2018-04-27 23:30:27 DEBUG install librbd1 is already the newest version
> (12.2.4-0ubuntu1).
> 2018-04-27 23:30:27 DEBUG install nova-compute is already the newest
> version (2:17.0.
> 2018-04-27 23:30:27 DEBUG install nova-compute-kvm is already the newest
> version (2:17.0.
> 2018-04-27 23:30:27 DEBUG install python-psutil is already the newest
> version (5.4.2-1).
> 2018-04-27 23:30:27 DEBUG install python-six is already the newest version
> (1.11.0-2).
> 2018-04-27 23:30:27 DEBUG install 0 upgraded, 0 newly installed, 0 to
> remove and 0 not upgraded.
> 2018-04-27 23:30:30 DEBUG juju-log Generating template context for amqp
> 2018-04-27 23:30:31 DEBUG install ERROR no relation id specified
> 2018-04-27 23:30:31 DEBUG juju-log Generating template context for
> image-service.
> 2018-04-27 23:30:31 DEBUG juju-log 0 section(s) found
> 2018-04-27 23:30:32 INFO juju-log Address '10.0.0.51' is configured...