Unable to deploy two applications of the same charm simultaneously
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Triaged
|
Medium
|
Heather Lanigan |
Bug Description
Trying to deploy the same charm twice with the different names can lead to an error.
This issue was discovered via the terraform client with the following terraform plan which deploys 2 instances of traefik charm with different app names:
```
terraform {
required_
juju = {
source = "juju/juju"
version = "= 0.11.0"
}
}
}
provider "juju" {}
variable "cloud" {
description = "Name of K8S cloud to use for deployment"
default = "microk8s"
}
variable "model" {
description = "Name of Juju model to use for deployment"
default = "ingress"
}
resource "juju_model" "ingress" {
name = var.model
cloud {
name = var.cloud
region = "localhost"
}
}
resource "juju_application" "traefik" {
name = "traefik"
trust = true
model = juju_model.
charm {
name = "traefik-k8s"
channel = "1.0/candidate"
base = "ubuntu@20.04"
}
units = 1
}
resource "juju_application" "traefik-public" {
name = "traefik-public"
trust = true
model = juju_model.
charm {
name = "traefik-k8s"
channel = "1.0/candidate"
base = "ubuntu@20.04"
}
units = 1
}
```
And the resulting error was:
2024-04-
This is intermittent and happens rarely but seems like there is a race in Juju.
terraform provider version used: 0.11.0
juju version used: 3.4/stable (3.4.1 at the time this bug is observed)
summary: |
- unable to deploy two applications of the same charm simultaneously + Unable to deploy two applications of the same charm simultaneously |
Changed in juju: | |
assignee: | nobody → Heather Lanigan (hmlanigan) |
importance: | Undecided → Medium |
Changed in juju: | |
status: | New → Triaged |