sunbeam: greater detail on microstack bootstrap failure

Bug #1998239 reported by Heather Lanigan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MicroStack
Triaged
High
Unassigned

Bug Description

Running the sunbeam tutorial:

More detail on error would be helpful.

```
$ microstack bootstrap
Checking for presence of Juju ... done
Checking for presence of microk8s ... done
Checking for presence of openstack-hypervisor ... done
Error bootstrapping Juju
Traceback (most recent call last):
  File "/snap/microstack/316/lib/python3.8/site-packages/sunbeam/commands/juju.py", line 362, in run
    process = subprocess.run(cmd, capture_output=True, text=True, check=True)
  File "/usr/lib/python3.8/subprocess.py", line 516, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/snap/microstack/316/juju/bin/juju', 'bootstrap', 'microk8s']' returned non-zero exit status 1.
Bootstrapping Juju into microk8s ... failed
Error: Command '['/snap/microstack/316/juju/bin/juju', 'bootstrap', 'microk8s']' returned non-zero exit status 1.
```
It's confusing when `/snap/microstack/316/juju/bin/juju` doesn't exist outside of running `microstack bootstrap`. Ran juju by itself and discovered that I'd skipped the step for storage, and was able to resolve the issue.
```
$ juju bootstrap microk8s
ERROR required storage addon is not enabled
```

Revision history for this message
Billy Olsen (billy-olsen) wrote :

Thanks for reporting this issue - we should definitely be looking to provide some more context that's returned rather than the current stack trace that's provided. Thanks for reporting this!

Changed in microstack:
status: New → Triaged
importance: Undecided → High
Revision history for this message
Billy Olsen (billy-olsen) wrote :

Triaging as high priority as I expect the extra bit of information presented will actually be able to help users help themselves in many cases, whereas the current experience - doesn't.

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.