← Back to team overview

group.of.nepali.translators team mailing list archive

[Bug 1588547] Re: Generated bonding configuration is incorrect.

 

This bug was fixed in the package curtin - 0.1.0~bzr399-0ubuntu1~16.04.1

---------------
curtin (0.1.0~bzr399-0ubuntu1~16.04.1) xenial-proposed; urgency=medium

  * debian/new-upstream-snapshot: fix for specifying revision.
  * SRU current curtin
    - curtin/net: fix inet value for subnets, don't add interface attributes
      to alias (LP: #1588547)
    - improve net-meta network configuration (LP: #1592149)
    - reporting: set webhook handler level to DEBUG, no filtering
      (LP: #1590846)
    - tests/vmtests: add yakkety, remove vivid
    - curtin/net: use post-up for interface alias, resolve 120 second time out
      on Trusty when using interface aliases
    - vmtest: provide info on images used
    - fix multipath configuration and add multipath tests (LP: #1551937)
    - tools/launch and tools/xkvm: whitespace cleanup and bash -x
    - tools/launch: boot by root=LABEL=cloudimg-rootfs
    - Initial vmtest power8 support and TestSimple test.

 -- Ryan Harper <ryan.harper@xxxxxxxxxxxxx>  Tue, 12 Jul 2016 11:29:30
-0500

** Changed in: curtin (Ubuntu Xenial)
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of नेपाली
भाषा समायोजकहरुको समूह, which is subscribed to Xenial.
Matching subscriptions: Ubuntu 16.04 Bugs
https://bugs.launchpad.net/bugs/1588547

Title:
  Generated bonding configuration is incorrect.

Status in curtin:
  Fix Committed
Status in MAAS:
  Opinion
Status in curtin package in Ubuntu:
  Fix Released
Status in curtin source package in Trusty:
  Fix Released
Status in curtin source package in Xenial:
  Fix Released

Bug description:
  [Impact]

   * Users attempting to configure nic bonding and using both ipv4 and ipv6
     encounter a misconfigured network due to a bug in curtin's handling of
     bond configuration and ipv6.  The error results in superflous 
     attributes and then broken ipv4 entries if preceeded by an ipv6
     address.

     This affects all curtin releases which support networking
     configuration.
     
   * This SRU fixes bonding and ipv6 configurations by no longer emitting
     attributes for aliased interfaces and calculating the correct
     inet type for a given interface.

  
  [Test Case]

   * On a Xenial 16.04 system
      - apt-get install curtin
      - cat >test.yaml <<EOF
  # YAML example of a simple network config
  network:
      version: 1
      config:
          # Physical interfaces.
          - type: physical
            name: eth0
            mac_address: "c0:d6:9f:2c:e8:80"
            subnets:
                - type: static
                  address: fde9:8f83:4a81:1:0:1:0:6/64
                - type: static
                  address: 192.168.0.1/24
  EOF
      - curtin apply_net -c test.yaml --target target

  PASS: both greps return zero
  FAIL: either grep returns non-zero

      - grep "^iface eth0 inet6 static" target/etc/network/interfaces
      - grep "^iface eth0:1 inet static" target/etc/network/interfaces

  
  [Regression Potential]

   * Low; users of this configuration would be broken already


  
  [Original Description]

  [Environment]

  MAAS 2.0

  [Description]

  Given the following configuration:
  http://img.ctrlv.in/img/16/06/02/5750ac35c78f8.png

  The resulting /etc/network/interfaces looks as following:

  http://paste.ubuntu.com/16931445/

  Some bad aspects of the resulting configuration are:

  1) An ipv4 address is configured on the alias, while an ipv6 address
  was expected,

  auto bond0:1
  iface bond0:1 inet6 static
      address 172.27.72.7/26

  2) It seems that there is no need to configure the bond-* options on the alias interfaces as these
  options are inherited.

  3) Could be possible to describe why and how the hwaddresses are
  selected for the aliases?

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