I’m running MAAS snap 3.3.3-13184-g.3e9972c19
When I deploy systems, I see warnings in syslog from handler.py
with "result": "SUCCESS"
Jun 12 14:00:50 test cloud-init[714]: Cloud-init v. 23.1.1-0ubuntu0~22.04.1 running 'init-local' at Mon, 12 Jun 2023 14:00:34 +0000. Up 4.50 seconds.
Jun 12 14:00:50 test cloud-init[714]: 2023-06-12 14:00:34,340 - handlers.py[WARNING]: Failed posting event: {"name": "init-local/check-cache", "description": "attempting to read from cache [trust]", "event_type": "start", "origin": "cloudinit", "timestamp": 1686578434.287253}. This was caused by: HTTPConnectionPool(host='192.168.98.2', port=5248): Max retries exceeded with url: /MAAS/metadata/status/exhqds (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fe9a512f4f0>: Failed to establish a new connection: [Errno 101] Network is unreachable'))
Jun 12 14:00:50 test cloud-init[714]: 2023-06-12 14:00:34,342 - handlers.py[WARNING]: Failed posting event: {"name": "init-local/check-cache", "description": "no cache found", "event_type": "finish", "origin": "cloudinit", "timestamp": 1686578434.287579, "result": "SUCCESS"}. This was caused by: HTTPConnectionPool(host='192.168.98.2', port=5248): Max retries exceeded with url: /MAAS/metadata/status/exhqds (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fe9a512cd30>: Failed to establish a new connection: [Errno 101] Network is unreachable'))
Jun 12 14:00:50 test systemd[1]: Condition check resulted in OpenVSwitch configuration for cleanup being skipped.
Jun 12 14:00:50 test systemd[1]: message repeated 2 times: [ Condition check resulted in OpenVSwitch configuration for cleanup being skipped.]
Jun 12 14:00:50 test cloud-init[714]: 2023-06-12 14:00:34,523 - handlers.py[WARNING]: Failed posting event: {"name": "init-local", "description": "searching for local datasources", "event_type": "finish", "origin": "cloudinit", "timestamp": 1686578434.5219314, "result": "SUCCESS"}. This was caused by: HTTPConnectionPool(host='192.168.98.2', port=5248): Max retries exceeded with url: /MAAS/metadata/status/exhqds (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fe9a512f9d0>: Failed to establish a new connection: [Errno 101] Network is unreachable'))
Jun 12 14:00:50 test cloud-init[714]: 2023-06-12 14:00:34,523 - handlers.py[WARNING]: Multiple consecutive failures in WebHookHandler. Cancelling all queued events.
Jun 12 14:00:50 test systemd[1]: Finished Initial cloud-init job (pre-networking).
Jun 12 14:00:50 test systemd[1]: Reached target Preparation for Network.
Jun 12 14:00:50 test systemd[1]: Starting Network Configuration...
Jun 12 14:00:50 test systemd-networkd[732]: lo: Link UP
Jun 12 14:00:50 test systemd-networkd[732]: lo: Gained carrier
Jun 12 14:00:50 test systemd-networkd[732]: Enumeration completed
Jun 12 14:00:50 test systemd[1]: Started Network Configuration.
It seems that MAAS builds a cloud-init config to 90_dpkg_local_cloud_config.cfg
that wants to make a network connection:
root@test:~# cat /etc/cloud/cloud.cfg.d/90_dpkg_local_cloud_config.cfg
# written by cloud-init debian package per preseed entry
# cloud-init/local-cloud-config
manage_etc_hosts: true
manual_cache_clean: true
reporting:
maas:
consumer_key: trim
endpoint: http://192.168.98.2:5248/MAAS/metadata/status/exhqds
token_key: trim
token_secret: trim
type: webhook
However, this cloud-init config is set to run via cloud-init/local-cloud-config
, which according to cloud-init docs, won’t have network access.
I would think that failed posting event
would be an ERROR
not WARNING
, and the event message wouldn’t contradict itself with "result": "SUCCESS"
Is this expected behavior?