functests failing with series mismatch

Bug #1998319 reported by Mert Kirpici
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
charm-juju-controller
Fix Released
Undecided
Mert Kirpici
charm-juju-local
Fix Released
Undecided
Sudeep Bhandari

Bug Description

The functional tests first need to update the juju-local(listed as affected charms by this bug since it is possibly the culprit) that is used in functional testing since it has undergone a name change. i,e:

--- a/src/tests/functional/tests/bundles/base.yaml
+++ b/src/tests/functional/tests/bundles/base.yaml
@@ -8,6 +8,6 @@ applications:
     to:
       - '0'
   juju-local:
- charm: "cs:~bootstack-charmers-next/juju-local"
+ charm: "ch:bootstack-charmers-juju-local"
 relations:
   - ["ubuntu", "juju-local"]

After having done that, the functional tests are failing with:
2022-11-29 11:31:22 [INFO] ERROR: setUpClass (tests.tests_juju_controller.BasicJujucontrollerTest)
2022-11-29 11:31:22 [INFO] ----------------------------------------------------------------------
2022-11-29 11:31:22 [INFO] Traceback (most recent call last):
2022-11-29 11:31:22 [INFO] File "/home/miles/repo/charm-juju-controller/src/tests/functional/./tests/tests_juju_controller.py", line 59, in setUpClass
2022-11-29 11:31:22 [INFO] cls.deploy_juju_controller()
2022-11-29 11:31:22 [INFO] File "/home/miles/repo/charm-juju-controller/src/tests/functional/./tests/tests_juju_controller.py", line 82, in deploy_juju_controller
2022-11-29 11:31:22 [INFO] cls.run_remote_juju(
2022-11-29 11:31:22 [INFO] File "/home/miles/repo/charm-juju-controller/src/tests/functional/./tests/tests_juju_controller.py", line 75, in run_remote_juju
2022-11-29 11:31:22 [INFO] assert out["Code"] == "0", "Error running {}: {}".format(cmd, out["Stderr"])
2022-11-29 11:31:22 [INFO] AssertionError: Error running sudo -u ubuntu -H /snap/bin/juju deploy -m controller -n 3 --force=true --to 0,1,2 /home/ubuntu/juju-controller.charm juju-controller: Located local charm "juju-controll
er", revision 0
2022-11-29 11:31:22 [INFO] Deploying "juju-controller" from local charm "juju-controller", revision 0 on jammy
2022-11-29 11:31:22 [INFO] ERROR cannot add application "juju-controller": cannot deploy to machine 0: series does not match

When ssh'd into the environment, there is a mismatch between the ha enabled juju controller and the deployed charm. Possibly specifying the series will be needed during on juju-controller functests and juju-local bootstrap.

Tags: bseng-679

Related branches

Eric Chen (eric-chen)
tags: added: bseng-679
Changed in charm-juju-controller:
assignee: nobody → Mert Kirpici (mertkirpici)
status: New → Fix Committed
milestone: none → 23.01
Changed in charm-juju-controller:
status: Fix Committed → Fix Released
Changed in charm-juju-local:
status: New → Fix Committed
assignee: nobody → Mert Kirpici (mertkirpici)
assignee: Mert Kirpici (mertkirpici) → Sudeep Bhandari (sudeephb)
Eric Chen (eric-chen)
Changed in charm-juju-local:
status: Fix Committed → Fix Released
milestone: none → 23.04
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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