Host shutdown should trigger snap stop

Bug #2068705 reported by Matt Verran
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Snap
New
Undecided
Unassigned

Bug Description

As per the tutorials on https://ubuntu.com/tutorials/tear-down-your-openstack-lab-environment#2-stop-and-sunbeam when the host machine (vm, multipass, maas, etc) is shutdown, it should cleanly stop.

This means on restart mysql isn't in a mess and having to recover, allowing vault to start if enabled, and from there the rest of the services.

Something like:-

# /etc/systemd/system/openstack_shutdown.service
[Unit]
Description=Shutdown Openstack cleanly...
After=network.target
Requires=network.target

[Service]
Type=simple
ExecStart=/bin/true
ExecStop=sudo snap stop microk8s;sudo snap stop openstack-hypervisor
TimeoutStopSec=infinity

[Install]
WantedBy=multi-user.target

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.