sunbeam inspect fails with --client: Error: Insufficient permissions to run sunbeam commands
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Snap |
Triaged
|
High
|
Unassigned |
Bug Description
$ snap list openstack
Name Version Rev Tracking Publisher Notes
openstack 2024.1 507 2024.1/edge canonical✓ -
In the MAAS scenario described in:
https:/
the client is set up with `sunbeam prepare-node-script --client`
However, it doesn't contain necessary steps to run `sunbeam inspect`.
$ sunbeam inspect
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'.
[w/ --client]
$ sunbeam prepare-node-script --client | grep snap_daemon
[w/o --client]
$ sunbeam prepare-node-script | grep snap_daemon
# Add $USER to the snap_daemon group supporting interaction
sudo usermod --append --groups snap_daemon $USER
This is due to an errant check in the codebase rather than the need to actually have this permission.