Comment 1 for bug 2024486

Revision history for this message
Lev Zharikov (leozaur1808) wrote :

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.CalledProcessError: Command ‘[’/snap/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/openstack/182/juju/bin/juju’, ‘bootstrap’, ‘sunbeam’, ‘sunbeam-controller’]’ returned non-zero exit status 1.

It seems like the database has not been removed completely.