Bug 1252477
| Summary: | power_state_change module not enabled by default | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Jaroslav Henner <jhenner> |
| Component: | cloud-init | Assignee: | Lars Kellogg-Stedman <lars> |
| Status: | CLOSED ERRATA | QA Contact: | Vratislav Hutsky <vhutsky> |
| Severity: | low | Docs Contact: | |
| Priority: | medium | ||
| Version: | 7.4 | CC: | huzhao, mbracho, mmagr, vhutsky |
| Target Milestone: | rc | Keywords: | Triaged |
| Target Release: | 7.4 | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | cloud-init-0.7.9-6.el7 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2017-08-01 23:23:42 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Jaroslav Henner
2015-08-11 14:08:56 UTC
Verified on RHEL 7.4 Release Candidate in AWS (ami-3d6ecc52 in the eu-central-1 region). # rpm -iq cloud-init cloud-init-0.7.9-9.el7.x86_64 # cat /etc/cloud/cloud.cfg ... cloud_final_modules: - rightscale_userdata - scripts-per-once - scripts-per-boot - scripts-per-instance - scripts-user - ssh-authkey-fingerprints - keys-to-console - phone-home - final-message - power-state-change ... (I omitted parts of /etc/cloud/cloud.cfg) When I starting a machine with this user data: #cloud-config power_state: delay: "now" mode: poweroff message: Stopping the machine timeout: 30 the machine was stopped indeed and the /var/log/cloud-init.log contained the following lines: 2017-07-20 12:29:50,366 - cc_power_state_change.py[DEBUG]: After pid 1325 ends, will execute: shutdown -P now Stopping the machine 2017-07-20 12:29:50,368 - handlers.py[DEBUG]: finish: modules-final/config-power-state-change: SUCCESS: config-power-state-change ran successfully Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHEA-2017:2275 |