← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1768547] Re: OpenNebula DataSource adds null gateway6 to netplan config

 

Hi Corey,

Thanks for finding this bug, reporting it and even finding the fix.

If you'd like to have your name in the cloud-init changelog for the fix,
please:
a.) sign the merge canonical contributors agreement
b.) submit a merge proposal

there is information on how to do each at
 http://cloudinit.readthedocs.io/en/latest/topics/hacking.html

If you aren't interested in following through with that, just let me know
and I'll work out a fix and submit a merge proposal.

If you have any questions, please feel free to ask here or in FreeNode IRC
#cloud-init.

Thanks,
Scott


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

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

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

** Changed in: cloud-init
   Importance: Undecided => Medium

** Changed in: cloud-init (Ubuntu)
   Importance: Undecided => Medium

-- 
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/1768547

Title:
  OpenNebula DataSource adds null gateway6 to netplan config

Status in cloud-init:
  Confirmed
Status in cloud-init package in Ubuntu:
  Confirmed

Bug description:
  Hello,

  In Ubuntu 18.04 with cloud-init 18.2-14-g6d48d265-0ubuntu1, the OpenNebula data source generates an invalid netplan yaml file if the IPv6 gateway is not defined in context.sh:
  network:
      ethernets:
          eth0:
              addresses:
              - 10.22.33.44/22
              gateway4: 10.22.33.1
              gateway6: null
              match:
                  macaddress: 02:00:00:00:aa:bb
              nameservers:
                  addresses:
                  - 10.22.22.22
                  - 10.33.33.33
      version: 2

  Netplan will not apply this config:
  # netplan try
  Error in network definition //etc/netplan/50-cloud-init.yaml line 11 column 22: invalid IPv6 address 'null'

  This is due to a typo in DataSourceOpenNebula.py, attached is a patch
  which fixes it.

  Cheers,
  Corey Melanson

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1768547/+subscriptions