canonical / canonical/cloud-init

Manual invocation of wait-online error

Open
#6,071 1 comment 2 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
3.8k
Forks
1.1k
Avg merge
2d 23h
Merged PRs (30d)
18

Description

There may be cases where `systemd-networkd-wait-online.service` is known to fail and timeout. These failures may be unrelated to cloud-init, but now that cloud-init is invoking the service directly, any failures of this service are currently causing an exit 1 from cloud-init.

```
2025-03-04 23:01:12,259 - ubuntu.py[ERROR]: Failed to wait for network: Unexpected error while running command.
Command: ['systemctl', 'start', 'systemd-networkd-wait-online.service']
Exit code: 1
Reason: -
Stdout:
Stderr: Job for systemd-networkd-wait-online.service failed because the control process exited with error code.
See "systemctl status systemd-networkd-wait-online.service" and "journalctl -xeu systemd-networkd-wait-online.service" for details.
```

We may want to downgrade this error to DEBUG, but that doesn't feel entirely right to me either.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.