← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1814297] [NEW] ubuntu-core: fails to configure user when there is no network

 

Public bug reported:

ubuntu-core 16
cloud init 18.4

Booting device without network: ethernet port is not plugged in, wifi is
flaky

Network config throws error:
Error log: https://paste.ubuntu.com/p/FSmTKcqFqB/

Final stage errors: https://paste.ubuntu.com/p/DBRSvqJ9V8/

User ubuntu has not password set or authorised key set

Configs:
#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'
    ssh-authorized-keys:
      - |
        ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA4kFYKuGM9MulGU7OieZkd7VrA9gYcMx5+FN/qyOxGZyZHh/WWerPQ159ptFHxs032z+fSQrqbX8NQra8VbgGuSYaoX8wZeSsaOVq39+rBJespm+X68uF7NjX122f0QEhIBAMYN548yd6c8AHTQh8EL7NSYLudBmmJL+5tdqF1yas2m5pHphmYT8zWnTlh32mHXHH9rOj8pSKKlnAorKYEMio6TW7svxV10t4LEKmz4Qeb0A4ZQNt2vxQLAENCjKWGEIsBjHGrrDkcX5F3mclHmau7P7mlb1DJ3WKXn+uBJejLe19c0hulnsqykQfP4xeF+bHU/8pOmOEKLfYi8TFkw== ondrej.kubik@e5410-ondras01
snappy:
  email: me@xxxxxxxx
  packages: [avahi]


network-config 
version: 2
ethernets:
    eth0:
        addresses: []
        dhcp4: true
        dhcp6: true
        nameservers: {}
wifis:
    wlan0:
        access-points:
            Blue_Fin:
                mode: infrastructure
                password: adroit
        addresses: []
        dhcp4: true
        dhcp6: true
    wlan1:
        access-points:
            XXXXXXX:
                mode: infrastructure
                password: xxxxxxxxx
        addresses: []
        dhcp4: true
        dhcp6: true
p6: true

** Affects: cloud-init
     Importance: Undecided
         Status: New

** Summary changed:

- ubuntu-core: fails to configure used  when there is no network
+ ubuntu-core: fails to configure user  when there is no network

-- 
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/1814297

Title:
  ubuntu-core: fails to configure user  when there is no network

Status in cloud-init:
  New

Bug description:
  ubuntu-core 16
  cloud init 18.4

  Booting device without network: ethernet port is not plugged in, wifi
  is flaky

  Network config throws error:
  Error log: https://paste.ubuntu.com/p/FSmTKcqFqB/

  Final stage errors: https://paste.ubuntu.com/p/DBRSvqJ9V8/

  User ubuntu has not password set or authorised key set

  Configs:
  #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'
      ssh-authorized-keys:
        - |
          ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA4kFYKuGM9MulGU7OieZkd7VrA9gYcMx5+FN/qyOxGZyZHh/WWerPQ159ptFHxs032z+fSQrqbX8NQra8VbgGuSYaoX8wZeSsaOVq39+rBJespm+X68uF7NjX122f0QEhIBAMYN548yd6c8AHTQh8EL7NSYLudBmmJL+5tdqF1yas2m5pHphmYT8zWnTlh32mHXHH9rOj8pSKKlnAorKYEMio6TW7svxV10t4LEKmz4Qeb0A4ZQNt2vxQLAENCjKWGEIsBjHGrrDkcX5F3mclHmau7P7mlb1DJ3WKXn+uBJejLe19c0hulnsqykQfP4xeF+bHU/8pOmOEKLfYi8TFkw== ondrej.kubik@e5410-ondras01
  snappy:
    email: me@xxxxxxxx
    packages: [avahi]

  
  network-config 
  version: 2
  ethernets:
      eth0:
          addresses: []
          dhcp4: true
          dhcp6: true
          nameservers: {}
  wifis:
      wlan0:
          access-points:
              Blue_Fin:
                  mode: infrastructure
                  password: adroit
          addresses: []
          dhcp4: true
          dhcp6: true
      wlan1:
          access-points:
              XXXXXXX:
                  mode: infrastructure
                  password: xxxxxxxxx
          addresses: []
          dhcp4: true
          dhcp6: true
  p6: true

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


Follow ups