Activity log for bug #2024486

Date Who What changed Old value New value Message
2023-06-20 17:36:17 Lev Zharikov bug added bug
2023-06-20 17:37:00 Lev Zharikov 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/openstack/182/lib/python3.10/site-packages/sunbeam/commands/juju.py", line 228, 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', 'bootstrap', 'sunbeam', 'sunbeam-controller']' returned non-zero exit status 1. Creating Juju controller "sunbeam-controller" on sunbeam/default Looking for packaged Juju agent version 3.2.0 for amd64 Located Juju agent version 3.2.0-ubuntu-amd64 at https://streams.canonical.com/juju/tools/agent/3.2.0/juju-3.2.0-linux-amd64.tgz ERROR failed to bootstrap model: machine is already provisioned Error: Command '['/snap/openstack/182/juju/bin/juju', 'bootstrap', 'sunbeam', 'sunbeam-controller']' returned non-zero exit status 1. ``` 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://ubuntu.com/openstack/install#single-multi-large-cluster 2. Verify that the cluster is working 3. Tear down the cluster by running using the official tearing down guide: https://ubuntu.com/tutorials/tear-down-your-openstack-lab-environment#1-overview 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: 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/openstack/182/lib/python3.10/site-packages/sunbeam/commands/juju.py", line 228, 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', 'bootstrap', 'sunbeam', 'sunbeam-controller']' returned non-zero exit status 1. Creating Juju controller "sunbeam-controller" on sunbeam/default Looking for packaged Juju agent version 3.2.0 for amd64 Located Juju agent version 3.2.0-ubuntu-amd64 at https://streams.canonical.com/juju/tools/agent/3.2.0/juju-3.2.0-linux-amd64.tgz ERROR failed to bootstrap model: machine is already provisioned Error: Command '['/snap/openstack/182/juju/bin/juju', 'bootstrap', 'sunbeam', 'sunbeam-controller']' returned non-zero exit status 1. 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://ubuntu.com/openstack/install#single-multi-large-cluster 2. Verify that the cluster is working 3. Tear down the cluster by running using the official tearing down guide: https://ubuntu.com/tutorials/tear-down-your-openstack-lab-environment#1-overview 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