yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #88222
[Bug 1960360] [NEW] package_reboot_if_required breaks power_state: shutdown
Public bug reported:
I'm using the following User-Data file to provision a Ubuntu Server
20.04 VM(focal-server-cloudimg-amd64):
#cloud-config
hostname: UbuntuServer20.04Template
manage_etc_hosts: true
user: ***
password: ***
ssh_authorized_keys:
- ssh-ed25519 ***
chpasswd:
expire: False
#Packages to install
packages:
- qemu-guest-agent
#Packages and update configuration
package_update: true
package_upgrade: true
package_reboot_if_required: true
#Set locale and timezone
locale: en_US
timezone: Europe/Stockholm
#Setup NTP server
ntp:
enabled: true
ntp_client: ntp
servers:
- sth1.ntp.se
- sth2.ntp.se
- sth3.ntp.se
- sth4.ntp.se
#Setup apt source
apt:
primary:
- arches: [amd64]
uri: http://se.archive.ubuntu.com/ubuntu/
write_files:
- content: |
sshd : 10.20.0.1
path: /etc/hosts.allow
append: True
- content: |
#Custom SSH configuration
Protocol 2
path: /etc/ssh/sshd_config.d/custom
permissions: '0600'
owner: root:root
power_state:
delay: "+1"
mode: poweroff
timeout: 120
condition: True
The problem is that the VM never shuts down, it does however reboot for
package installation. But after that nothing more happens.
However if I also use:
cloud_final_modules:
- power-state-change
The power_state command works, but then the VM never reboots for packages upgrade.
** Affects: cloud-init
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to cloud-init.
https://bugs.launchpad.net/bugs/1960360
Title:
package_reboot_if_required breaks power_state: shutdown
Status in cloud-init:
New
Bug description:
I'm using the following User-Data file to provision a Ubuntu Server
20.04 VM(focal-server-cloudimg-amd64):
#cloud-config
hostname: UbuntuServer20.04Template
manage_etc_hosts: true
user: ***
password: ***
ssh_authorized_keys:
- ssh-ed25519 ***
chpasswd:
expire: False
#Packages to install
packages:
- qemu-guest-agent
#Packages and update configuration
package_update: true
package_upgrade: true
package_reboot_if_required: true
#Set locale and timezone
locale: en_US
timezone: Europe/Stockholm
#Setup NTP server
ntp:
enabled: true
ntp_client: ntp
servers:
- sth1.ntp.se
- sth2.ntp.se
- sth3.ntp.se
- sth4.ntp.se
#Setup apt source
apt:
primary:
- arches: [amd64]
uri: http://se.archive.ubuntu.com/ubuntu/
write_files:
- content: |
sshd : 10.20.0.1
path: /etc/hosts.allow
append: True
- content: |
#Custom SSH configuration
Protocol 2
path: /etc/ssh/sshd_config.d/custom
permissions: '0600'
owner: root:root
power_state:
delay: "+1"
mode: poweroff
timeout: 120
condition: True
The problem is that the VM never shuts down, it does however reboot
for package installation. But after that nothing more happens.
However if I also use:
cloud_final_modules:
- power-state-change
The power_state command works, but then the VM never reboots for packages upgrade.
To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1960360/+subscriptions
Follow ups