Bug 1266627
Summary: | Cloud-init reboot fail | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Eric Jones <erjones> |
Component: | cloud-init | Assignee: | Lars Kellogg-Stedman <lars> |
Status: | CLOSED NOTABUG | QA Contact: | |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 7.1 | CC: | erjones, mfuruta |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2015-09-29 15:40:08 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
Eric Jones
2015-09-25 21:54:02 UTC
Are you use the RHEL guest image? Or RHEL atomic? Can you confirm that you've got cloud-init version cloud-init-0.7.6-2.el7.x86_64?
> Is there a different place to check for debug?
Like most services, you can see cloud-init logs with journalctl. For example:
journalctl -b | grep -i cloud
All right, never mind those questions. The power_state module is not enabled by default in /etc/cloud/cloud.cfg, which means you would need to enable it explicitly. You have a few options: 1. You can pass a 'cloud_final_modules' configuration section, listing power_state_change *and any other modules you want to run during the final stage*, because this will replace the defaults in /etc/cloud/cloud.cfg. For example: #cloud-config disable_root: false chpasswd: list: | root:redhat expire: false power_state: delay: "+1" mode: reboot message: Bye Bye timeout: 10 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 2. You can do it using a `runcmd` shell script instead: #cloud-config disable_root: false chpasswd: list: | root:redhat expire: false runcmd: - sleep 60 && reboot (In reply to Lars Kellogg-Stedman from comment #3) > All right, never mind those questions. > > The power_state module is not enabled by default in /etc/cloud/cloud.cfg, > which means you would need to enable it explicitly. You have a few options: > > 1. You can pass a 'cloud_final_modules' configuration section, listing > power_state_change *and any other modules you want to run during the final > stage*, because this will replace the defaults in /etc/cloud/cloud.cfg. For > example: > > #cloud-config > > disable_root: false > chpasswd: > list: | > root:redhat > expire: false > power_state: > delay: "+1" > mode: reboot > message: Bye Bye > timeout: 10 > 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 > > 2. You can do it using a `runcmd` shell script instead: > > #cloud-config > > disable_root: false > chpasswd: > list: | > root:redhat > expire: false > runcmd: > - sleep 60 && reboot I will give these a shot. Thank you. I failed to try the second one as the first worked immediately. Thank you! I am going to close this now, feel free to change the details as necessary. |