functests failing with python-libjuju 3.1.0.1 release
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Charmed Kubernetes Testing |
Incomplete
|
Undecided
|
Unassigned | ||
Juju Lint |
Fix Released
|
Undecided
|
Martin Kalcok | ||
Thruk Agent Charm |
Fix Released
|
Undecided
|
Unassigned | ||
charm-advanced-routing |
Fix Released
|
Undecided
|
Gabriel Cocenza | ||
charm-apt-mirror |
Fix Released
|
Undecided
|
Gabriel Cocenza | ||
charm-infra-node |
Fix Released
|
Undecided
|
Mert Kirpici | ||
charm-juju-lint |
Fix Released
|
Undecided
|
Unassigned | ||
charm-simple-streams |
Fix Released
|
Undecided
|
Gabriel Cocenza | ||
logrotate-charm |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Following the release of python-libjuju 3.1.0.1, python-libjuju based functests started failing against juju controllers v2.x, due to juju and libjuju following starting to support the same major version[0].
Since we are still running automated tests using juju controller 2.x, we need to pin the libjuju major version to less than 3, since juju and libjuju have switched to using the same version numbers to indicate support[0]. As of today, pinning juju<3 would install python-libjuju version 2.9.38.1 which is intended to support juju controllers up to v2.9.38.
[0] https:/
Here is an excerpt from the error taken from weekly CI runs:
func installed: attrs==
func run-test-pre: PYTHONHASHSEED=
func run-test: commands[0] | pytest -v --ignore /tmp/functional
=======
platform linux -- Python 3.10.6, pytest-7.2.1, pluggy-1.0.0 -- /tmp/functional-
...
if not self._connectio
> raise JujuConnectionE
E juju.errors.
.tox/func/
-------
WARNING connector:
Related branches
- Martin Kalcok (community): Approve
- Ramesh Sattaru (community): Approve
- 🤖 prod-jenkaas-bootstack: Approve (continuous-integration)
-
Diff: 14 lines (+4/-1)1 file modifiedsrc/tests/functional/requirements.txt (+4/-1)
- Sudeep Bhandari (community): Approve
- Ramesh Sattaru (community): Approve
- 🤖 prod-jenkaas-bootstack: Approve (continuous-integration)
- BootStack Reviewers: Pending requested
-
Diff: 13 lines (+4/-1)1 file modifiedtests/functional/requirements.txt (+4/-1)
- Sudeep Bhandari (community): Approve
- Ramesh Sattaru (community): Approve
- 🤖 prod-jenkaas-bootstack: Approve (continuous-integration)
- BootStack Reviewers: Pending requested
-
Diff: 13 lines (+4/-2)1 file modifiedrequirements.txt (+4/-2)
- Ramesh Sattaru (community): Approve
- Gabriel Cocenza: Approve
- 🤖 prod-jenkaas-bootstack: Approve (continuous-integration)
-
Diff: 10 lines (+2/-0)1 file modifiedtests/functional/requirements.txt (+2/-0)
- Ramesh Sattaru (community): Approve
- Erhan Sunar (community): Approve
- 🤖 prod-jenkaas-bootstack: Approve (continuous-integration)
-
Diff: 12 lines (+2/-1)1 file modifiedsrc/tests/functional/requirements.txt (+2/-1)
- JamesLin: Approve
- Ramesh Sattaru (community): Approve
- 🤖 prod-jenkaas-bootstack: Approve (continuous-integration)
- BootStack Reviewers: Pending requested
-
Diff: 11 lines (+1/-1)1 file modifiedsrc/tests/functional/requirements.txt (+1/-1)
Changed in charm-infra-node: | |
assignee: | nobody → Mert Kirpici (mertkirpici) |
Changed in charm-apt-mirror: | |
assignee: | nobody → Mert Kirpici (mertkirpici) |
tags: | added: bseng-920 |
Changed in charm-infra-node: | |
status: | New → Fix Committed |
Changed in charm-apt-mirror: | |
assignee: | Mert Kirpici (mertkirpici) → nobody |
Changed in juju-lint: | |
assignee: | nobody → Mert Kirpici (mertkirpici) |
Changed in juju-lint: | |
status: | New → In Progress |
Changed in charm-advanced-routing: | |
assignee: | nobody → Gabriel Cocenza (gabrielcocenza) |
milestone: | none → 23.04 |
status: | New → Fix Committed |
Changed in juju-lint: | |
assignee: | Mert Kirpici (mertkirpici) → nobody |
Changed in charm-infra-node: | |
milestone: | none → 23.04 |
Changed in charm-apt-mirror: | |
status: | New → Fix Committed |
assignee: | nobody → Gabriel Cocenza (gabrielcocenza) |
Changed in charm-apt-mirror: | |
milestone: | none → 23.04 |
Changed in charm-logrotated: | |
status: | New → Fix Committed |
milestone: | none → 23.04 |
Changed in charm-thruk-agent: | |
status: | New → Fix Committed |
milestone: | none → 23.04 |
Changed in charm-juju-lint: | |
status: | New → Fix Committed |
milestone: | none → 23.04 |
Changed in juju-lint: | |
status: | In Progress → Fix Committed |
milestone: | none → 1.0.7 |
assignee: | nobody → Martin Kalcok (martin-kalcok) |
Changed in charm-advanced-routing: | |
status: | Fix Committed → Fix Released |
Changed in charm-apt-mirror: | |
status: | Fix Committed → Fix Released |
Changed in charm-infra-node: | |
status: | Fix Committed → Fix Released |
Changed in charm-juju-lint: | |
status: | Fix Committed → Fix Released |
Changed in charm-logrotated: | |
status: | Fix Committed → Fix Released |
Changed in charm-simple-streams: | |
status: | Fix Committed → Fix Released |
Changed in charm-thruk-agent: | |
status: | Fix Committed → Fix Released |
Changed in juju-lint: | |
status: | Fix Committed → Fix Released |
Changed in juju-lint: | |
status: | Fix Released → Fix Committed |
Changed in juju-lint: | |
status: | Fix Committed → Fix Released |
Also failing on charmed- kubernetes- testing while running the K8s validation suite.
======= ======= ======= ======= ======= = ERRORS ======= ======= ======= ======= ======= = _______ ______ ERROR at setup of test_series_upgrade _______ _______ _______ ubuntu/ k8s-validation/ .tox/py3/ lib/python3. 8/site- packages/ pytest_ asyncio/ plugin. py", line 299, in _asyncgen_ fixture_ wrapper run_until_ complete( setup() ) python3. 8/asyncio/ base_events. py", line 616, in run_until_complete ubuntu/ k8s-validation/ .tox/py3/ lib/python3. 8/site- packages/ pytest_ asyncio/ plugin. py", line 281, in setup ubuntu/ k8s-validation/ jobs/integratio n/conftest. py", line 258, in model tools.connectio n) ubuntu/ k8s-validation/ .tox/py3/ lib/python3. 8/site- packages/ juju/model. py", line 658, in connect .connect_ model(model_ name, **kwargs) ubuntu/ k8s-validation/ .tox/py3/ lib/python3. 8/site- packages/ juju/client/ connector. py", line 174, in connect_model **kwargs) ubuntu/ k8s-validation/ .tox/py3/ lib/python3. 8/site- packages/ juju/client/ connector. py", line 82, in connect rror("juju server-version %s not supported" % juju_server_ version) JujuConnectionE rror: juju server-version 2.9.42 not supported ------- ------- ------- -- Captured log setup ------- ------- ------- ------- -- connector. py:80 This version was tested using 3.1.0 juju version 2.9.42 may have compatibility issues ======= ======= ======= === warnings summary ======= ======= ======= ======= === lib/python3. 8/site- packages/ invoke/ loader. py:3 ubuntu/ k8s-validation/ .tox/py3/ lib/python3. 8/site- packages/ invoke/ loader. py:3: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
_______
Traceback (most recent call last):
File "/home/
result = event_loop.
File "/usr/lib/
return future.result()
File "/home/
res = await gen_obj.__anext__()
File "/home/
await model.connect(
File "/home/
_, model_uuid = await self._connector
File "/home/
await self.connect(
File "/home/
raise JujuConnectionE
juju.errors.
-------
WARNING connector:
=======
.tox/py3/
/home/
import imp
jobs/integratio n/conftest. py:626 ubuntu/ k8s-validation/ jobs/integratio n/conftest. py:626: PytestDeprecati onWarning: The hookimpl pytest_metadata uses old-style configuration options (marks or attributes). hookimpl( optionalhook= True) decorator instead /docs.pytest. org/en/ latest/ deprecations. html#configurin g-hook- specs-impls- using-markers mark.optionalho ok
/home/
Please use the pytest.
to configure the hooks.
See https:/
@pytest.
-- Docs: https:/ /docs.pytest. org/en/ stable/ how-to/ capture- warnings. html k8s-validation/ report. xml ---------- /home/ubuntu/ k8s-validation/ report. html ------ ======= ======= ==== 2 warnings, 1 error in 0.76s ======= ======= ======= ==== k8s-validation/ .tox/py3/ bin/pytest -v -s --controller= foundations- maas --model= kubernetes- maas /home/ubuntu/ k8s-validation/ jobs/integratio n/validation. py::test_ series_ upgrade --is-series-upgrade --upgrade- snap-channel= latest/ stable --upgrade- charm-channel= stable --series=jammy '--vault- unseal- command= fce_wrap build --layer kub...
---------- generated xml file: /home/ubuntu/
----- generated html file: file://
=======
ERROR: InvocationError for command /home/ubuntu/