Sunbeam cluster bootstrap fails with terraform invalid provider registry host
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Snap |
Fix Released
|
Medium
|
Liam Young |
Bug Description
Description: When running the "sunbeam cluster bootstrap" command to deploy an OpenStack cloud using Sunbeam according to the tutorial presented on microstack.run webiste, the command fails with the following errors:
Sunbeam Cluster not initialized
terraform init failed:
Initializing the backend...
Successfully configured the backend "http"! Terraform will automatically
use this backend unless the backend configuration changes.
Initializing provider plugins...
- Finding juju/juju versions matching ">= 0.7.0"...
Error: Invalid provider registry host
The host "registry.
"registry.
registry.
Error: Command '['/snap/
Steps to reproduce:
Install the openstack snap with "sudo snap install openstack --channel 2023.1"
Run the "sunbeam prepare-node-script | bash -x && newgrp snap_daemon"
Run the "sunbeam cluster bootstrap" command
Possible error reasons:
Terraform is not available in my region (tried using the mirror by creating the .terraformrc file in a user's home directory and in /snap/openstack
OS information:
Ubuntu 22.04.2 LTS
summary: |
- sunbeam cluster bootstrap crashes because of terraform + Sunbeam cluster bootstrap fails with terraform invalid provider registry + host |
Changed in snap-openstack: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
assignee: | nobody → Liam Young (gnuoy) |
Changed in snap-openstack: | |
status: | Fix Committed → Fix Released |
Changed in snap-openstack: | |
milestone: | none → 2023.1.2 |
Hi Lev
Lack of access to registry. terraform. io would likely cause challenges; we do ship all of the providers required as part of the snap but I think terraform will still check as part of the init step.
You may be able to workaround this is you put your .terraformrc file into $HOME/snap/ openstack/ current rather than in the actual HOME directory - the sandboxing within the snap means that HOME gets set to this location.
As we ship everything needed we should probably configure this all as part of the snap so no access to the registry is required.