Bug verified with the following script: ---------------------------------------------- series=$1 name=test-$series UA_TOKEN=<UA_TOKEN>
lxc launch ubuntu-daily:$series $name lxc exec $name -- ua version lxc exec $name -- cloud-init status --wait lxc exec $name -- mv /usr/bin/cloud-id /usr/bin/cloud-id.old lxc exec $name -- mv /var/lib/cloud/data/result.json /var/lib/cloud/data/result.json.old lxc exec $name -- touch /var/lib/cloud/data/result.json # verify failure to attach lxc exec $name -- ua attach $UA_TOKEN lxc delete --force $name lxc launch ubuntu-daily:$series $name lxc exec $name -- cloud-init status --wait lxc exec $name -- sh -c "cat <<EOF >/etc/apt/sources.list.d/ubuntu-$series-proposed.list # Enable Ubuntu proposed archive deb http://archive.ubuntu.com/ubuntu/ $series-proposed restricted main multiverse universe EOF" lxc exec $name -- apt update lxc exec $name -- apt install ubuntu-advantage-tools lxc exec $name -- ua version lxc exec $name -- mv /usr/bin/cloud-id /usr/bin/cloud-id.old lxc exec $name -- mv /var/lib/cloud/data/result.json /var/lib/cloud/data/result.json.old lxc exec $name -- touch /var/lib/cloud/data/result.json # verify attach works as expected lxc exec $name -- ua attach $UA_TOKEN lxc delete --force $name ----------------------------------------------------------------------------- Test for xenial, bionic, focal, hirsute and impish are working as expected ** Tags removed: verification-needed verification-needed-bionic verification-needed-focal verification-needed-hirsute verification-needed-impish verification-needed-xenial ** Tags added: verification-done verification-done-bionic verification-done-focal verification-done-hirsute verification-done-impish verification-done-xenial -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1940131 Title: sudo ua attach is not working To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/1940131/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
