$ lxc launch "ubuntu-daily:$release" "$name" "--config=user.user-data=$(cat user-data)" $ cat >user-data <<"EOF" #cloud-config users: - default - name: foobar gecos: "My User" groups: sudo, adm - name: wark groups: [sudo, adm] EOF $ sleep 10
## show failure. $ lxc exec $name -- groups foobar groups: 'foobar': no such user $ lxc exec $name -- groups wark wark : wark adm sudo ## show info about instance $ lxc exec $name -- dpkg-query --show cloud-init cloud-init 0.7.8-49-g9e904bb-0ubuntu1~16.10.1 $ lxc file pull $name/etc/cloud/build.info - build_name: server serial: 20170119 ## enable proposed, update $ m=http://archive.ubuntu.com/ubuntu; $ echo "deb $m $release-proposed main" | lxc file push - $name/etc/apt/sources.list.d/proposed.list $ lxc exec $name -- sh -c 'apt update -q && apt install cloud-init' </dev/null $ lxc exec $name -- dpkg-query --show cloud-init cloud-init 0.7.8-68-gca3ae67-0ubuntu1~16.10.1 # clean up to make it look like first boot. $ lxc exec $name -- sh -c 'cd /var/lib/cloud; for d in *; do [ "$d" = "seed" ] || rm -vRf "$d"; done' $ lxc exec $name -- sh -c 'rm -f /var/log/cloud*' $ lxc restart $name # show fixed $ lxc exec $name -- groups foobar foobar : foobar adm sudo $ lxc exec $name -- groups wark wark : wark adm sudo $ lxc exec $name -- grep WARN /var/log/cloud-init.log || echo no warn no warn ** Tags removed: verification-needed ** Tags added: verification-done ** Summary changed: - useradd crashes if group list contains whitespace on Fedora + useradd crashes if group list contains whitespace -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1354694 Title: useradd crashes if group list contains whitespace To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-init/+bug/1354694/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs