canonical / canonical/cloud-init

[enhancement]: runcmd failure debugging

Open
#5,340 0 comments 0 reactions 0 assignees View on GitHub
documentation enhancement
Dominant language
Python
Stars
3.8k
Forks
1.1k
Avg merge
2d 23h
Merged PRs (30d)
18

Description

# Enhancement

When a runcmd fails, cloud-init provides a warning log:

```
Failed to run module...
```

This leaves the user with an indication that something went wrong, but fails to address the problem that the user now gets to solve "what went wrong and how do I fix it?".

Providing easier introspection would be a huge benefit for this frequently-used module.

Currently stdout/stderr go to `/var/log/cloud-init-output.log`. We should at the very least document this in the module docs.

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.