With the 'openstack' snap 2023.2/stable (which still installs JuJu 3.2.4 from the stable channel) I kept getting the following error on the subsequent 'sunbeam cluster bootstrap':
ERROR creating controller database schema: table lease_type already exists
ERROR failed to bootstrap model: subprocess encountered error code 1
Error: Command '['/snap/openstack/335/juju/bin/juju', 'bootstrap', 'sunbeam', 'sunbeam-controller']' returned non-zero exit status 1.
I was able to successfully bootstrap JuJu by Removing the primary node procedure [1] followed by:
sudo rm -rf /var/lib/juju/agents
sudo rm -rf /var/lib/juju/dqlite
sudo rm -rf /var/lib/juju/system-identity
sudo rm -rf /var/lib/juju/bootstrap-params
The 'rm -rf /var/lib/juju/dqlite' has been added in JuJu 3.3 [2] but it seems to be not enough for the successful subsequent bootstrap.
With the 'openstack' snap 2023.2/stable (which still installs JuJu 3.2.4 from the stable channel) I kept getting the following error on the subsequent 'sunbeam cluster bootstrap':
ERROR creating controller database schema: table lease_type already exists
ERROR failed to bootstrap model: subprocess encountered error code 1
Error: Command '['/snap/ openstack/ 335/juju/ bin/juju' , 'bootstrap', 'sunbeam', 'sunbeam- controller' ]' returned non-zero exit status 1.
I was able to successfully bootstrap JuJu by Removing the primary node procedure [1] followed by: juju/agents juju/dqlite juju/system- identity juju/bootstrap- params
sudo rm -rf /var/lib/
sudo rm -rf /var/lib/
sudo rm -rf /var/lib/
sudo rm -rf /var/lib/
The 'rm -rf /var/lib/ juju/dqlite' has been added in JuJu 3.3 [2] but it seems to be not enough for the successful subsequent bootstrap.
[1] https:/ /microstack. run/docs/ removing- primary /github. com/juju/ juju/blob/ 3.3/cloudconfig /userdatacfg_ unix.go# L87
[2] https:/