Juju renders invalid netplan YAML for nameservers in IPv4/IPv6 dual-stack environment

Bug #1883701 reported by Frode Nordahl
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
High
Joseph Phillips

Bug Description

I have a MAAS server exposed to a dual-stack IPv4/IPv6 network set up to consume LXD as a pod for virtual machines.

To simplify things I have bound all charms in my deployment to an IPv4-only space.

However, I still have issues deploying due to Juju rendering invalid netplan YAML for nameservers.

Example YAML:
network:
  version: 2
  ethernets:
    eth0:
      match:
        macaddress: 00:16:3e:e0:cd:e6
      addresses:
      - 172.16.122.48/24
      gateway4: 172.16.122.1
      nameservers:
        search: [maas]
        addresses: [10.75.217.187, '2001:464f:c282:8::1', 'fe80::6057:26ff:fee2:2e0f%2']

# netplan apply
/etc/netplan/99-juju.yaml:12:20: Error in network definition: malformed address 'fe80::6057:26ff:fee2:2e0f%2', must be X.X.X.X or X:X:X:X:X:X:X:X
        addresses: [10.75.217.187, '2001:464f:c282:8::1', 'fe80::6057:26ff:fee2:2e0f%2']

# deployed host version
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04 LTS
Release: 20.04
Codename: focal

$ juju --version
2.9-beta1-groovy-amd64

MAAS version: 2.9.0~alpha1 (8587-g.7e9f618b4)

$ lxd --version
4.2

Frode Nordahl (fnordahl)
description: updated
Pen Gale (pengale)
Changed in juju:
status: New → Triaged
importance: Undecided → High
milestone: none → 3.0.0
Revision history for this message
Simon Déziel (sdeziel) wrote :

Since the nameservers is defined under the eth0 device, having the "%2" is redundant IMHO. Dropping it makes it work.

Revision history for this message
Joseph Phillips (manadart) wrote :

Addressed by https://github.com/juju/juju/pull/13895.
Credit to Stéphane.

Changed in juju:
milestone: 3.0.0 → 2.9.28
assignee: nobody → Joseph Phillips (manadart)
status: Triaged → In Progress
Ian Booth (wallyworld)
Changed in juju:
status: In Progress → Fix Committed
Changed in juju:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.