enable pro fails on MAAS deploy
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Snap |
New
|
Undecided
|
Unassigned |
Bug Description
2024.1/beta rev 528
Looking at the code [1] it looks like it's trying to relate ubuntu-pro and sunbeam-machine in the controller model. In a MAAS deployment, sunbeam-machine is in the openstack-machines model.
If I edit main.tf and change the name from controller to openstack-machines, the application deploys and relates successfully to sunbeam-machine.
Enabling pro should be included in both the controller model and the openstack-machines model as applicable.
Enabling Ubuntu Pro support ... terraform apply failed: data.juju_
data.juju_
Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
+ create
Terraform will perform the following actions:
# juju_applicatio
+ resource "juju_application" "ubuntu_pro" {
+ config = {
+ "token" = "nothappening"
}
+ constraints = (known after apply)
+ id = (known after apply)
+ model = "controller"
+ name = "ubuntu-pro"
+ placement = (known after apply)
+ principal = (known after apply)
+ trust = false
+ units = 0
+ charm {
+ base = "ubuntu@22.04"
+ channel = "latest/stable"
+ name = "ubuntu-advantage"
+ revision = (known after apply)
+ series = (known after apply)
}
}
# juju_integratio
+ resource "juju_integration" "juju_info" {
+ id = (known after apply)
+ model = "controller"
+ application {
+ endpoint = "juju-info"
+ name = "sunbeam-machine"
}
+ application {
+ endpoint = "juju-info"
+ name = "ubuntu-pro"
}
}
Plan: 2 to add, 0 to change, 0 to destroy.
juju_applicatio
juju_applicatio
juju_integratio
juju_integratio
juju_integratio
juju_integratio
juju_integratio
juju_integratio
juju_integratio
Error: Client Error
with juju_integratio
on main.tf line 50, in resource "juju_integration" "juju_info":
50: resource "juju_integration" "juju_info" {
Unable to create integration, got error: the applications were not available
to be integrated
Error: Command '['/snap/