sunbeam configure (in maas deployment) fails with error about user not being part of group snap_daemon

Bug #2067508 reported by Andre Ruiz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Snap
Invalid
Undecided
Unassigned

Bug Description

I'm following this guide -> https://microstack.run/docs/multi-node-maas

Using 2024.1/edge rel 507

and there's a point where you run sunbeam configure --openrc demo-openrc

but it complains:

========================8<-----------------------------------------------------
ubuntu@sunbeam-client:~$ sunbeam configure --openrc demo-openrc
Error: Insufficient permissions to run sunbeam commands
Add the user 'ubuntu' to the 'snap_daemon' group:

    sudo usermod -a -G snap_daemon ubuntu

After this, reload the user groups either via a reboot or by running 'newgrp snap_daemon'.
========================8<-----------------------------------------------------

which seems correct because my user is NOT part of that group, it has not been configured to be by the preparation script, which was run like this: sunbeam prepare-node-script --client | bash -x

Inspecting the script I see no group add to my user. I can manually fix it and then configure works normally.

Andre Ruiz (andre-ruiz)
summary: - sunbeam configure fails with error about user not being part of group
- snap_daemon
+ sunbeam configure (in maas deployment) fails with error about user not
+ being part of group snap_daemon
description: updated
Revision history for this message
Nobuto Murata (nobuto) wrote :

Similar with:
https://bugs.launchpad.net/snap-openstack/+bug/2066541

Essentially `--client` doesn't do enough job to use Sunbeam itself.

Revision history for this message
Andre Ruiz (andre-ruiz) wrote :

Yeah, that's an exact replica, I'll close this one.

Changed in snap-openstack:
status: New → Invalid
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.