Comment 7 for bug 2024486

Revision history for this message
Marcin Wilk (wilkmarcin) wrote :

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.

[1] https://microstack.run/docs/removing-primary
[2] https://github.com/juju/juju/blob/3.3/cloudconfig/userdatacfg_unix.go#L87