Comment 0 for bug 2028278

Revision history for this message
Francesco De Simone (fdesi) wrote :

I deployed a sunbeam cluster

 sunbeam cluster list
┏━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━┳━━━━━━━━━┳━━━━━━━━━
┃ Node ┃ Status ┃ Control ┃ Compute ┃ Storage ┃
┡━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━╇━━━━━━━━━╇━━━━━━━━━╇━━━━━━━━━
│ node08.orangebox84.io │ up │ │ x │ x │
│ node09.orangebox84.io │ up │ │ x │ x │
│ node10.orangebox84.io │ up │ x │ x │ x │
└───────────────────────┴────────┴─────────┴─────────┴─────────

I am trying to remove a cluster node but I got this:

```
sunbeam cluster remove --name node08.orangebox84.io
Error removing machine 2 from Juju
Traceback (most recent call last):
  File "/snap/openstack/182/lib/python3.10/site-packages/sunbeam/commands/juju.py", line 706, in run
    process = subprocess.run(cmd, capture_output=True, text=True, check=True)
  File "/usr/lib/python3.10/subprocess.py", line 524, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/snap/openstack/182/juju/bin/juju', 'remove-machine', '-m', 'admin/controller', '2', '--no-prompt']' returned non-zero exit status 1.
ERROR removing machine failed: machine 2 has unit "sunbeam-machine/2" assigned

Error: Command '['/snap/openstack/182/juju/bin/juju', 'remove-machine', '-m', 'admin/controller', '2', '--no-prompt']' returned non-zero exit status 1.
```