** Description changed: + == Begin SRU Template == + [Impact] + Ubuntu-advantage-tools package version 19 introduced a new command line client that is backwards incompatible with previous ubuntu-advantage-tools releases. + + Changes in cloud-init 19.1 support only the new ubuntu-advantage-tools + CLI. + + To avoid breaking the cc_ubuntu_advantage cloud-config module, we need + to revert changes in cloud-init tip to avoid tracebacks for customers in + Xenial, Bionic and Cosmic using ubuntu-advantage: declarating in their + cloud-config. + + + Once ubuntu-advantage-tools >= 19 is SRU'd to Xenial, Bionic and Cosmic. This debian patch can be dropped. + + [Test Case] + # Use old ubuntu-advantage cloud-config syntax to enable livepatch on a kvm instance to enable livepatch + + cat > ua.yaml <<EOF + #cloud-config + # old version CLI syntax + ubuntu-advantage: + commands: + 00: ['enable-livepatch', '<redacted_token>'] + EOF + for series in xenial bionic cosmic do; + + multipass launch daily:$series -n sru-$series --cloud-init ua.yaml + + done + + == End SRU Template == + + + === Original description === + Xenial Bionic and Cosmic are currently running earlier versions of ubuntu-advantage-tools (10 for xenial and 17 for bionic/cosmic). ubuntu-advantage-tools 19 and later is a completely rewritten CLI that is backwards incompatible. Until ubuntu-advantage-tools >= 19.1 is released into Xenial, Bionic and Cosmic. Carry a debian patch file to revert upstream cloud-init config module changes for cc_ubuntu_advantage.py.
** Description changed: == Begin SRU Template == [Impact] Ubuntu-advantage-tools package version 19 introduced a new command line client that is backwards incompatible with previous ubuntu-advantage-tools releases. Changes in cloud-init 19.1 support only the new ubuntu-advantage-tools CLI. To avoid breaking the cc_ubuntu_advantage cloud-config module, we need to revert changes in cloud-init tip to avoid tracebacks for customers in Xenial, Bionic and Cosmic using ubuntu-advantage: declarating in their cloud-config. - - Once ubuntu-advantage-tools >= 19 is SRU'd to Xenial, Bionic and Cosmic. This debian patch can be dropped. + Once ubuntu-advantage-tools >= 19 is SRU'd to Xenial, Bionic and Cosmic. + This debian patch can be dropped. [Test Case] # Use old ubuntu-advantage cloud-config syntax to enable livepatch on a kvm instance to enable livepatch cat > ua.yaml <<EOF #cloud-config - # old version CLI syntax - ubuntu-advantage: - commands: - 00: ['enable-livepatch', '<redacted_token>'] + # old version CLI syntax + ubuntu-advantage: + commands: + 00: ['enable-livepatch', '<redacted_token>'] EOF for series in xenial bionic cosmic do; - multipass launch daily:$series -n sru-$series --cloud-init ua.yaml - + multipass launch daily:$series -n sru-$series --cloud-init ua.yaml + # Check for no errors + multipass exec sru-$series -- cloud-init status --long done == End SRU Template == - === Original description === Xenial Bionic and Cosmic are currently running earlier versions of ubuntu-advantage-tools (10 for xenial and 17 for bionic/cosmic). ubuntu-advantage-tools 19 and later is a completely rewritten CLI that is backwards incompatible. Until ubuntu-advantage-tools >= 19.1 is released into Xenial, Bionic and Cosmic. Carry a debian patch file to revert upstream cloud-init config module changes for cc_ubuntu_advantage.py. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1828641 Title: Xenial, Bionic, Cosmic revert ubuntu-advantage-tools config module changes from tip To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-init/+bug/1828641/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs