deploy fails when there is a partition without a filesystem

Bug #2065079 reported by Marian Gasparovic
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Snap
Fix Committed
High
Unassigned

Bug Description

Using Sunbeam deployment with MAAS. During cluster deploy sunbeam fails with

```
                      File "/snap/openstack/479/lib/python3.10/site-packages/sunbeam/provider/maas/commands.py", line 770, in list_machines_cmd
                        machines = list_machines(client)
                      File "/snap/openstack/479/lib/python3.10/site-packages/sunbeam/provider/maas/client.py", line 209, in list_machines
                        machines.append(_convert_raw_machine(machine))
                      File "/snap/openstack/479/lib/python3.10/site-packages/sunbeam/provider/maas/client.py", line 171, in _convert_raw_machine
                        if fs.get("label") == "root":
                    AttributeError: 'NoneType' object has no attribute 'get'
           WARNING An unexpected error has occurred. Please run 'sunbeam inspect' to generate an inspection report. utils.py:290
           ERROR Error: 'NoneType' object has no attribute 'get'
```
There is a partition without a filesystem on each node and this seems to cause the issue.

Side note - recommended `sunbeam inspect` also fails.

Tags: cdo-qa
Revision history for this message
Marian Gasparovic (marosg) wrote :

2023.2/edge

Revision history for this message
Guillaume Boutry (gboutry) wrote :

Fix committed, and released to 2024.1/edge: https://github.com/canonical/snap-openstack/pull/227

Changed in snap-openstack:
importance: Undecided → High
status: New → Fix Committed
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.