canonical / cloud-init

Official upstream for the cloud-init: cloud instance initialization
https://cloud-init.io/
Other
2.99k stars 883 forks source link

ubuntu-core: 'fails' to configure net #3326

Closed ubuntu-server-builder closed 1 year ago

ubuntu-server-builder commented 1 year ago

This bug was originally filed in Launchpad as LP: #1814297

Launchpad details
affected_projects = []
assignee = None
assignee_name = None
date_closed = 2019-04-21T04:17:50.301205+00:00
date_created = 2019-02-01T17:48:42.176850+00:00
date_fix_committed = None
date_fix_released = None
id = 1814297
importance = undecided
is_complete = True
lp_url = https://bugs.launchpad.net/cloud-init/+bug/1814297
milestone = None
owner = ondrak
owner_name = Ondrej Kubik
private = False
status = expired
submitter = ondrak
submitter_name = Ondrej Kubik
tags = []
duplicates = []

Launchpad user Ondrej Kubik(ondrak) wrote on 2019-02-01T17:48:42.176850+00:00

ubuntu-core 16 cloud init 18.4

Booting device with or without network(ethernet port is not plugged in, wifi is flaky)

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

Wifi configuration is only available to distros withnetplan rendering support. This is confusing error, as ubuntu-core uses Netplan

Once network is presented all seems to work though.....

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@sent.com   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

ubuntu-server-builder commented 1 year ago

Launchpad user Chad Smith(chad.smith) wrote on 2019-02-19T16:29:01.284132+00:00

This yaml in the bug description doesn't look valid could you provide "cloud-init collect-logs" tarfile which would provide us the full cloud-init.log.

While I'd prefer better cloud-init logs would warn users about invalid netplan yaml, it seems up front that the network yaml that is being provided contains an invalid 'p6' key and cloud-init attempts to find a parser for that invalid key.

ubuntu-server-builder commented 1 year ago

Launchpad user Chad Smith(chad.smith) wrote on 2019-02-19T16:29:25.764056+00:00

Please mark this bug back to 'New' once the full cloud-init log is provided. Thanks.

ubuntu-server-builder commented 1 year ago

Launchpad user Launchpad Janitor(janitor) wrote on 2019-04-21T04:17:50.170630+00:00

[Expired for cloud-init because there has been no activity for 60 days.]