failed to start microstack lvm service

Bug #1930676 reported by Robert Gildein
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
MicroStack
New
Undecided
Unassigned

Bug Description

Failed to start microstack.setup-lvm-loopdev.service after stopping all microstack
services using the snap. More details and how they can be reproduced can be found here [1].

The microstack.setup-lvm-loopdev failed with error 'Volume group "cinder-volumes" not found'.

Versions:
```bash
➜ ~ multipass exec microstack-test -- lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.2 LTS
Release: 20.04
Codename: focal
➜ ~ multipass exec microstack-test -- snap list microstack
Name Version Rev Tracking Publisher Notes
microstack ussuri 233 latest/beta canonical✓ devmode
```

---
[1]: https://pastebin.canonical.com/p/gyzFQJ8pt9/

Revision history for this message
Robert Gildein (rgildein) wrote (last edit ):

I was able to fix this by running `sudo microstack init --auto --control` again.

Revision history for this message
Paulo Duarte (paduarte) wrote :

Facing the same issue:
 systemctl status snap.microstack.setup-lvm-loopdev.service
● snap.microstack.setup-lvm-loopdev.service - Service for snap application microstack.setup-lvm-loopdev
     Loaded: loaded (/etc/systemd/system/snap.microstack.setup-lvm-loopdev.service; disabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Tue 2022-01-25 10:53:09 WET; 25s ago
    Process: 82567 ExecStart=/usr/bin/snap run microstack.setup-lvm-loopdev (code=exited, status=5)
   Main PID: 82567 (code=exited, status=5)

jan 25 10:53:09 rdserver1 microstack.setup-lvm-loopdev[82611]: ++ snapctl get config.cinder.lvm-backend-volume-group
jan 25 10:53:09 rdserver1 microstack.setup-lvm-loopdev[82567]: + cinder_volumes_vg=cinder-volumes
jan 25 10:53:09 rdserver1 microstack.setup-lvm-loopdev[82616]: ++ snapctl get config.cinder.setup-loop-based-cinder-lvm-backend
jan 25 10:53:09 rdserver1 microstack.setup-lvm-loopdev[82567]: + '[' false = true ']'
jan 25 10:53:09 rdserver1 microstack.setup-lvm-loopdev[82567]: + lvchange -a y cinder-volumes
jan 25 10:53:09 rdserver1 microstack.setup-lvm-loopdev[82621]: Volume group "cinder-volumes" not found
jan 25 10:53:09 rdserver1 microstack.setup-lvm-loopdev[82621]: Cannot process volume group cinder-volumes
jan 25 10:53:09 rdserver1 systemd[1]: snap.microstack.setup-lvm-loopdev.service: Main process exited, code=exited, status=5/NOTINSTALLED
jan 25 10:53:09 rdserver1 systemd[1]: snap.microstack.setup-lvm-loopdev.service: Failed with result 'exit-code'.
jan 25 10:53:09 rdserver1 systemd[1]: Failed to start Service for snap application microstack.setup-lvm-loopdev.

Tried to fix this by running `sudo microstack init --auto --control` but did not work.

Any suggestions?
Thanks,

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.