New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
power_state does not take effect when runcmd errors #2542
Comments
Launchpad user Laurence Rowe(lrowe) wrote on 2015-04-28T01:12:32.936572+00:00 Launchpad attachments: cloud-init.log and cloud-init-output.log |
Launchpad user Laurence Rowe(lrowe) wrote on 2015-04-28T01:30:37.299210+00:00 Does not affect ubuntu-trusty-14.04-amd64-server-20150325 (ami-5189a661) or ubuntu-utopic-14.10-amd64-server-20150202 (ami-bd471c8d). |
Launchpad user Laurence Rowe(lrowe) wrote on 2015-10-28T21:28:16.197422+00:00 This is still a problem in Wily 15.10 (ami-225ebd11) On the ec2 console I see: Cloud-init 0.7.7 received SIGTERM, exiting... And in /var/log/cloud-init.log: Oct 28 21:16:14 ubuntu [CLOUDINIT] helpers.py[DEBUG]: Running config-power-state-change using lock (<FileLock using file '/var/lib/cloud/instances/i-ea987333/sem/config_power_state_change'>) |
Launchpad user Scott Moser(smoser) wrote on 2015-11-30T20:20:46.741472+00:00 It seems this is fixable by setting KillMode=process $ bzr diff Output needs to appear in instance console outputStandardOutput=journal+console |
Launchpad user Scott Moser(smoser) wrote on 2015-11-30T20:31:38.416409+00:00 verified taht works with:
c.) rm -Rf /var/lib/cloud system will turn itself off after reboot. system wil boot and poweroff |
Launchpad user Laurence Rowe(lrowe) wrote on 2016-01-08T01:46:34.187233+00:00 I'm able to work around this on 15.10 by applying smoser's fix as part of my cloud config: #cloud-config
|
Launchpad user Scott Moser(smoser) wrote on 2016-06-22T13:58:59.153661+00:00 This is fixed in trunk at revno 1157. |
Launchpad user Scott Moser(smoser) wrote on 2016-08-10T14:45:18.055718+00:00 This is fixed in cloud-init 0.7.7 |
This bug was originally filed in Launchpad as LP: #1449318
Launchpad details
Launchpad user Laurence Rowe(lrowe) wrote on 2015-04-28T01:12:32.936572+00:00
When the runcmd errors the power-state-change does not take effect and the instance is not powered off.
AMI ID: ubuntu-vivid-15.04-amd64-server-20150422 (ami-2d10241d)
Instance launched on EC2 using awscli:
$ aws --region us-west-2 ec2 run-instances --image-id ami-2d10241d --instance-type t2.medium --security-groups ssh-http-https --user-data file://fail.cfg
Minimal fail.cfg cloud config:
Longer fail.cfg used for retrieving logs:
The text was updated successfully, but these errors were encountered: