Error configuring cloud, ch:amd64/focal/traefik-k8s-164 already exists

Bug #2060571 reported by Andre Ruiz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Snap
Confirmed
Undecided
Unassigned

Bug Description

I'm seeing this error in a number of different builds for quite some time now. It's random as far as I can tell. Sometimes it is for "traefik-public", sometimes for "mysql-router".

15:16:22 Error: Client Error
15:16:22 with juju_application.traefik-public,
15:16:22 on main.tf line 197, in resource "juju_application" "traefik-public":
15:16:22 197: resource "juju_application" "traefik-public" {
15:16:22 Unable to create application, got error: charm
15:16:22 "ch:amd64/focal/traefik-k8s-164" already exists
15:16:22 Error configuring cloud
15:16:22 Traceback (most recent call last):
15:16:22 File "/snap/openstack/467/lib/python3.10/site-packages/sunbeam/commands/terraform.py", line 189, in apply
15:16:22 process = subprocess.run(
15:16:22 File "/usr/lib/python3.10/subprocess.py", line 526, in run
15:16:22 raise CalledProcessError(retcode, process.args,
15:16:22 subprocess.CalledProcessError: Command '['/snap/openstack/467/bin/terraform', 'apply', '-auto-approve', '-no-color']' returned non-zero exit status 1.
15:16:22 During handling of the above exception, another exception occurred:
15:16:22 Traceback (most recent call last):
15:16:22 File "/snap/openstack/467/lib/python3.10/site-packages/sunbeam/commands/openstack.py", line 238, in run
15:16:22 self.manifest.update_tfvars_and_apply_tf(
15:16:22 File "/snap/openstack/467/lib/python3.10/site-packages/sunbeam/jobs/manifest.py", line 415, in update_tfvars_and_apply_tf
15:16:22 tfhelper.apply(tf_apply_extra_args)
15:16:22 File "/snap/openstack/467/lib/python3.10/site-packages/sunbeam/commands/terraform.py", line 203, in apply
15:16:22 raise TerraformException(str(e))
15:16:22 sunbeam.commands.terraform.TerraformException: Command '['/snap/openstack/467/bin/terraform', 'apply', '-auto-approve', '-no-color']' returned non-zero exit status 1.
15:16:22 > Deploying OpenStack Control Plane to Kubernetes (this may take a while) ... deploying services
15:16:22 Error: Command '['/snap/openstack/467/bin/terraform', 'apply', '-auto-approve', '-no-color']' returned non-zero exit status 1.

From what I knew this was supposed to have been fixed recently with a new release of the juju terraform provider but it still persists. This one was from yesterday, 2023.2/edge release 465.

Revision history for this message
Andre Ruiz (andre-ruiz) wrote :

Artifacts for the mentioned build.

Revision history for this message
Chris Johnston (cjohnston) wrote :

Just saw this with mysql:

Error: Client Error

  with module.many-mysql["placement"].juju_application.mysql,
  on modules/mysql/main.tf line 28, in resource "juju_application" "mysql":
  28: resource "juju_application" "mysql" {

Unable to create application, got error: charm "ch:amd64/jammy/mysql-k8s-127"
already exists

⠹ Deploying OpenStack Control Plane to Kubernetes (this may take a while) ... deploying servicesError configuring cloud
Traceback (most recent call last):
  File "/snap/openstack/523/lib/python3.10/site-packages/sunbeam/commands/terraform.py", line 194, in apply
    process = subprocess.run(
  File "/usr/lib/python3.10/subprocess.py", line 526, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/snap/openstack/523/bin/terraform', 'apply', '-auto-approve', '-no-color']' returned non-zero exit status 1.

Changed in snap-openstack:
status: New → Confirmed
Revision history for this message
Chris Johnston (cjohnston) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.