Comment 4 for bug 1669860

Revision history for this message
Ryan Harper (raharper) wrote : Re: [Bug 1669860] Re: cloud-init attempts to rename bonds

On Fri, Mar 17, 2017 at 8:59 PM, Scott Moser <email address hidden> wrote:

> I expected to be able to recreate this in a lxc container like below,
> but that didnt show any errors at all in /var/log/cloud-init.log.
>

Try using non-knames, like interface0 and interface1.

>
> #!/bin/sh
> name=$1
> [ -n "$name" ] || { echo "must give name"; exit 1; }
> set -ex
> lxc init ubuntu-daily:zesty $name
> lxc network attach lxdbr0 $name eth1
> # pastebinit `which lxc-chroot`
> # http://paste.ubuntu.com/24198752/
> lxc-chroot "$name" sh -c 'cat > /var/lib/cloud/seed/nocloud-
> net/network-config'
> <<EOF
> version: 1
> config:
> - type: physical
> name: eth0
> - type: physical
> name: eth1
> - type: bond
> name: bond0
> bond_interfaces: [eth0, eth1]
> params:
> bond-mode: active-backup
> EOF
> lxc start "$name"
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1669860
>
> Title:
> cloud-init attempts to rename bonds
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/cloud-init/+bug/1669860/+subscriptions
>