OpenStack cluster bootstrap fails after tearing it down
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Snap |
New
|
Undecided
|
Unassigned |
Bug Description
Description:
I followed the official tutorial to set up an openstack cluster using sunbeam on a single node (not guided). The cluster was working fine until I decided to tear it down and start over as I wanted to access my VMs via external network. I used the official guide on tearing it down, but I encountered the following error even before I was prompted for MetalLB address allocation range:
Sunbeam Cluster not initialized
Error bootstrapping Juju
Traceback (most recent call last):
File "/snap/
process = subprocess.run(cmd, capture_
File "/usr/lib/
raise CalledProcessEr
subprocess.
Creating Juju controller "sunbeam-
Looking for packaged Juju agent version 3.2.0 for amd64
Located Juju agent version 3.2.0-ubuntu-amd64 at https:/
ERROR failed to bootstrap model: machine is already provisioned
Error: Command '['/snap/
It seems that the cluster bootstrap fails because the machine is already provisioned, even though I deleted the cluster before.
Steps to reproduce:
1. Follow the official tutorial to set up an openstack cluster using sunbeam: https:/
2. Verify that the cluster is working
3. Tear down the cluster by running using the official tearing down guide:
https:/
4. Try to create a new cluster using step 1
Expected result:
The cluster bootstrap should succeed and create a new cluster.
Actual result:
The cluster bootstrap fails with the error message above.
Environment:
- OS: Ubuntu 22.04.2 LTS
description: | updated |
I tried executing /usr/sbin/ remove- juju-services as a root user as was suggested by gboutry here: https:/ /discourse. ubuntu. com/t/tear- down-your- openstack- lab-environment /25078 but to no avail. The error message described in the issue is gone, yet the new ones have appeared. Unfortunately, the command still fails when bootstrapping Juju on to the machine. I tried my best to summarize the output since it is very long.
Here are the errors that I extracted from the output:
subprocess. CalledProcessEr ror: Command ‘[’/snap/ openstack/ 182/juju/ bin/juju’ , ‘bootstrap’, ‘sunbeam’, ‘sunbeam- controller’ ]’ returned non-zero exit status 1. openstack/ 182/juju/ bin/juju’ , ‘bootstrap’, ‘sunbeam’, ‘sunbeam- controller’ ]’ returned non-zero exit status 1.
ERROR creating controller database schema: table lease_type already exists
ERROR failed to bootstrap model: subprocess encountered error code 1
Error: Command ‘[’/snap/
It seems like the database has not been removed completely.