sunbeam requirement check should also check the storage size available

Bug #2039002 reported by nikhil kshirsagar
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Snap
Triaged
Wishlist
Unassigned

Bug Description

The requirements check in sunbeam currently seems to only check memory and CPU, but it should also check available storage. A test deployment I tried failed with "no storage space left" but it could have been warned about in the requirements check.

ubuntu@sunbeamtest:/root$ sunbeam cluster bootstrap --accept-defaults
WARNING: Minimum system requirements (4 core CPU, 16 GB RAM) not met.
⠇ Deploying OpenStack Control Plane to Kubernetes (this may take a while) ... waiting for services to come online (1/23)Exception in callback create_task_with_handler.<locals>._task_result_exp_handler(task_name='tmp', logger=None)(<Task finishe...t on device')>) at /snap/openstack/274/lib/python3.10/site-packages/juju/jasyncio.py:39
handle: <Handle create_task_with_handler.<locals>._task_result_exp_handler(task_name='tmp', logger=None)(<Task finishe...t on device')>) at /snap/openstack/274/lib/python3.10/site-packages/juju/jasyncio.py:39>
Traceback (most recent call last):
  File "/snap/openstack/274/lib/python3.10/site-packages/juju/jasyncio.py", line 41, in _task_result_exp_handler
    task.result()
  File "/snap/openstack/274/lib/python3.10/site-packages/juju/client/facade.py", line 486, in wrapper
    reply = await f(*args, **kwargs)
  File "/snap/openstack/274/lib/python3.10/site-packages/juju/client/_client3.py", line 760, in Next
    reply = await self.rpc(msg)
  File "/snap/openstack/274/lib/python3.10/site-packages/juju/client/overrides.py", line 114, in rpc
    result = await self.connection.rpc(msg, encoder=TypeEncoder)
  File "/snap/openstack/274/lib/python3.10/site-packages/juju/client/connection.py", line 675, in rpc
    raise errors.JujuAPIError(result)
juju.errors.JujuAPIError: write /var/log/juju/audit.log: no space left on device

Revision history for this message
James Page (james-page) wrote :

Sounds like a sensible addition to the pre-flight checks before cluster bootstrap and add node operations.

Changed in snap-openstack:
status: New → Triaged
importance: Undecided → Wishlist
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.