Open aitorpazos opened 1 month ago
Looking at the timings, it seems that on 24.04 cloud-init
is not yet done when converge
starts:
root@service-exporter-default-ubuntu2404-amd64:~# cloud-init status --long
status: done
extended_status: degraded done
boot_status_code: enabled-by-generator
last_update: Thu, 01 Aug 2024 11:45:58 +0000
detail: DataSourceNoCloud [seed=/dev/sr0][dsmode=net]
errors: []
recoverable_errors:
WARNING:
- Invalid cloud-config provided: Please run 'sudo cloud-init schema --system' to see the schema errors.
root@service-exporter-default-ubuntu2404-amd64:~# cloud-init schema --system
Found cloud-config data types: user-data, network-config
1. user-data at /var/lib/cloud/instances/service-exporter-default-ubuntu2404-amd64/cloud-config.txt:
Invalid user-data /var/lib/cloud/instances/service-exporter-default-ubuntu2404-amd64/cloud-config.txt
Error: Cloud config schema errors: users.1.sudo: ['ALL=(ALL) NOPASSWD:ALL'] is not of type 'boolean', users.1.sudo: ['ALL=(ALL) NOPASSWD:ALL'] is not of type 'string', 'null'
2. network-config at /var/lib/cloud/instances/service-exporter-default-ubuntu2404-amd64/network-config.json:
Valid schema network-config
Error: Invalid schema: user-data
Ubuntu 24.04 is shipping with a bug fixed in https://github.com/canonical/cloud-init/pull/5418
Trying to use
molecule-qemu
to test on Ubuntu 24.04 it reportsUNREACHABLE
onconverge
start:If I run
converge
after some time, it becomes reachable, so there seems to be some sort of race condition on 24.04.Checking
ssh
service on 22.04 vs 24.04, I noticedssh
service shows asdisabled
(but running):24.04 ssh related logs
22.04 ssh related logs