← Back to team overview

yahoo-eng-team team mailing list archive

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

 

This bug was fixed in

This bug was fixed in the package cloud-init - 18.4-0ubuntu1
---------------
  
cloud-init (18.4-0ubuntu1) cosmic; urgency=medium
    
  * New upstream release.
    - release 18.4 (LP: #1795741)
    - tests: allow skipping an entire cloud_test without running.
    - tests: disable lxd tests on cosmic
    - cii-tests: use unittest2.SkipTest in ntp_chrony due to new deps
    - lxd: adjust to snap installed lxd. 
    - docs: surface experimental doc in instance-data.json
    - tests: fix ec2 integration tests. process meta_data instead of meta-data
    - Add support for Infiniband network interfaces (IPoIB). [Mark Goddard]
    - cli: add cloud-init query subcommand to query instance metadata
    - tools/tox-venv: update for new features.
    - pylint: ignore warning assignment-from-no-return for _write_network
    - stages: Fix bug causing datasource to have incorrect sys_cfg.
      (LP: #1787459)
    - Remove dead-code _write_network distro implementations.
    - net_util: ensure static configs have netmask in translate_network result
      [Thomas Berger] (LP: #1792454)
    - Fall back to root:root on syslog permissions if other options fail.
      [Robert Schweikert]
    - tests: Add mock for util.get_hostname. [Robert Schweikert] (LP: #1792799)

 -- Chad Smith <chad.smith@xxxxxxxxxxxxx>  Tue, 02 Oct 2018 19:55:23
-0600


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

-- 
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:
  Fix Released
Status in cloud-init package in Ubuntu:
  Fix Released

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