Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to deploy applications using base: {"ubuntu" "22.04/stable"} does not match base {"" ""} found for charm #352

Closed
dparv opened this issue Dec 4, 2023 · 0 comments · Fixed by #358
Assignees
Labels
hint/main going on main branch kind/bug indicates a bug in the project
Milestone

Comments

@dparv
Copy link

dparv commented Dec 4, 2023

Description

Deploying charms from charmhub results in this error below:

╷
│ Error: Client Error
│ 
│   with juju_application.kubernetes-control-plane,
│   on k8s.tf line 65, in resource "juju_application" "kubernetes-control-plane":
│   65: resource "juju_application" "kubernetes-control-plane" {
│ 
│ Unable to create application, got error: juju bug (LP 2039179), requested base {"ubuntu" "22.04/stable"} does not match base {"" ""} found for charm.
╵
╷
│ Error: Client Error
│ 
│   with juju_application.kubernetes-worker,
│   on k8s.tf line 77, in resource "juju_application" "kubernetes-worker":
│   77: resource "juju_application" "kubernetes-worker" {
│ 
│ Unable to create application, got error: juju bug (LP 2039179), requested base {"ubuntu" "22.04/stable"} does not match base {"" ""} found for charm.

However the charms themselves have the proper base defined, e.g juju info kubernetes-control-plane

  1.28/stable:       138dd01             2023-11-07  (321)  20MB  amd64, arm64, s390x                                 [email protected], [email protected]

Urgency

Annoying bug in our test suite

Terraform Juju Provider version

0.10.0

Terraform version

Terraform v1.6.5-dev

Terraform Configuration(s)

resource "juju_application" "kubernetes-control-plane" {
  name  = "kubernetes-control-plane"
  model = juju_model.k8s.name
  charm {
    name     = "kubernetes-control-plane"
    base     = "[email protected]"
    channel  = "1.28/stable"
  }
  units     = 3
  constraints = "arch=amd64 cores=4 mem=4096M allocate-public-ip=true"
}

resource "juju_application" "kubernetes-worker" {
  name  = "kubernetes-worker"
  model = juju_model.k8s.name
  charm {
    name     = "kubernetes-worker"
    channel  = "1.28/stable"
    base     = "[email protected]"
  }
  units     = 3
  constraints = "arch=amd64 cores=4 mem=4096M allocate-public-ip=true"
}

Reproduce / Test

terraform apply

Debug/Panic Output

╷
│ Error: Client Error
│ 
│   with juju_application.kubernetes-control-plane,
│   on k8s.tf line 65, in resource "juju_application" "kubernetes-control-plane":
│   65: resource "juju_application" "kubernetes-control-plane" {
│ 
│ Unable to create application, got error: juju bug (LP 2039179), requested base {"ubuntu" "22.04/stable"} does not match base {"" ""} found for charm.
╵
╷
│ Error: Client Error
│ 
│   with juju_application.kubernetes-worker,
│   on k8s.tf line 77, in resource "juju_application" "kubernetes-worker":
│   77: resource "juju_application" "kubernetes-worker" {
│ 
│ Unable to create application, got error: juju bug (LP 2039179), requested base {"ubuntu" "22.04/stable"} does not match base {"" ""} found for charm.
╵

Notes & References

No response

@dparv dparv added the kind/bug indicates a bug in the project label Dec 4, 2023
@hmlanigan hmlanigan added this to the 0.10.1 milestone Dec 4, 2023
@hmlanigan hmlanigan added the hint/main going on main branch label Dec 4, 2023
@hmlanigan hmlanigan self-assigned this Dec 5, 2023
hmlanigan added a commit to hmlanigan/terraform-provider-juju that referenced this issue Dec 5, 2023
Should have caught issue juju#352 earlier. Increase our testing coverage to
help fill the gap.
hmlanigan added a commit to hmlanigan/terraform-provider-juju that referenced this issue Dec 5, 2023
Should have caught issue juju#352 earlier. Increase our testing coverage to
help fill the gap.
hmlanigan added a commit to hmlanigan/terraform-provider-juju that referenced this issue Dec 5, 2023
Should have caught issue juju#352 earlier. Increase our testing coverage to
help fill the gap.

Split into 2 test matrices for juju 2.9 & 3.1

Juju 3.1 requires a strictly confined version of the microk8s snap, will
2.9 uses classic. Further splitting of the tests required due to bug in
charmed-kubernetes actions operator, there is not a tag specific for a
microk8s channel.
hmlanigan added a commit to hmlanigan/terraform-provider-juju that referenced this issue Dec 6, 2023
Should have caught issue juju#352 earlier. Increase our testing coverage to
help fill the gap.

Split into 2 test matrices for juju 2.9 & 3.1

Juju 3.1 requires a strictly confined version of the microk8s snap, will
2.9 uses classic. Further splitting of the tests required due to bug in
charmed-kubernetes actions operator, there is not a tag specific for a
microk8s channel.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hint/main going on main branch kind/bug indicates a bug in the project
Projects
None yet
2 participants