group.of.nepali.translators team mailing list archive
-
group.of.nepali.translators team
-
Mailing list archive
-
Message #05145
[Bug 1449318] Re: power_state does not take effect when runcmd errors
This is fixed in trunk at revno 1157.
** Changed in: cloud-init
Status: Confirmed => Fix Committed
** Changed in: cloud-init
Assignee: (unassigned) => Scott Moser (smoser)
** Also affects: cloud-init (Ubuntu)
Importance: Undecided
Status: New
** Also affects: cloud-init (Ubuntu Xenial)
Importance: Undecided
Status: New
** Also affects: cloud-init (Ubuntu Wily)
Importance: Undecided
Status: New
** Changed in: cloud-init (Ubuntu)
Status: New => Fix Released
** Changed in: cloud-init (Ubuntu Wily)
Status: New => Fix Released
** Changed in: cloud-init (Ubuntu Wily)
Status: Fix Released => Won't Fix
** Changed in: cloud-init (Ubuntu Xenial)
Status: New => Fix Released
** Changed in: cloud-init (Ubuntu)
Importance: Undecided => High
** Changed in: cloud-init (Ubuntu Wily)
Importance: Undecided => Low
** Changed in: cloud-init (Ubuntu Xenial)
Importance: Undecided => High
--
You received this bug notification because you are a member of नेपाली
भाषा समायोजकहरुको समूह, which is subscribed to Xenial.
Matching subscriptions: Ubuntu 16.04 Bugs
https://bugs.launchpad.net/bugs/1449318
Title:
power_state does not take effect when runcmd errors
Status in cloud-init:
Fix Committed
Status in cloud-init package in Ubuntu:
Fix Released
Status in cloud-init source package in Wily:
Won't Fix
Status in cloud-init source package in Xenial:
Fix Released
Bug description:
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:
```
#cloud-config
power_state:
mode: poweroff
runcmd:
- set -e
- python3 -c "raise Exception"
```
Longer fail.cfg used for retrieving logs:
```
#cloud-config
output:
all: '| tee -a /var/log/cloud-init-output.log'
power_state:
mode: poweroff
bootcmd:
- cloud-init-per once ssh-users-ca echo "TrustedUserCAKeys /etc/ssh/users_ca.pub" >> /etc/ssh/sshd_config
runcmd:
- set -e
- python3 -c "raise Exception"
write_files:
- path: /etc/ssh/users_ca.pub
content: <my ssh ca key>
```
To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1449318/+subscriptions