← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1814304] Re: ubuntu-core: snap module does not work

 

Thanks for filing this bug. Can you please attach the /var/log/cloud-
init.log to this bug?

   sudo cloud-init collect-logs -t logs.tar # To capture all cloud-init
artfifacts and logs in a tarfile that can be attached to this bug.


It looks like the code requires a name: <somename> in the specific user item otherwise cloud-init ignores the user's item provided in the yaml.

While I agree that this is a valid bug with 'snapuser' it's not likely
we'll fix it.

 On cloud-init  <= 18.3 one can provide:
   users:
     - name: somethingignored
       snapuser: me@xxxxxxxx

  on cloud-init 18.3 or later:
    snap:
      commands:
        00: snap create-user --sudoer --json me@xxxxxxxx

** Changed in: cloud-init
       Status: New => Won't Fix

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to cloud-init.
https://bugs.launchpad.net/bugs/1814304

Title:
  ubuntu-core: snap module does not work

Status in cloud-init:
  Won't Fix

Bug description:
  ubuntu-core 16
  cloud init 18.4

  snapuser is not created, whole thing falls over

  
  same happens when using snap module
  snap:
    command:

  boot log:
  https://paste.ubuntu.com/p/Tb5VxrDKq8/

  #cloud-config
  debug:
    verbose: true
  users:
    - name: ubuntu
      lock_passwd: False
      groups: [adm, audio, cdrom, dialout, dip, floppy, lxd, netdev, plugdev, sudo, video]
      sudo: ALL=(ALL) NOPASSWD:ALL
      shell: /bin/bash
      plain_text_passwd: 'ubuntu'
    - snapuser: me@xxxxxxxx

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1814304/+subscriptions


References