Open Gmerold opened 1 year ago
agreed, this is breaking in the integration tests for this plugin itself https://github.com/charmed-kubernetes/pytest-operator/actions/runs/6582862153?pr=118
@cderici i believe this is an issue with python-libjuju. Do you agree?
@cderici i believe this is an issue with python-libjuju. Do you agree?
Yeah that output looks very weird. I'm not quite sure if it's the pylibjuju client in particular, but definitely something seems to be going on on the Juju side. I'll try to reproduce this today and see what might be happening 👍
@addyess looks like it might be something else, I was able to deploy with the following settings just fine:
pylibjuju master branch tip (basically the same with 3.2.2), juju 3.1.6 on microk8s 1.27.6
python -m asyncio
asyncio REPL 3.10.12 (main, Jun 11 2023, 05:26:28) [GCC 11.4.0] on linux
Use "await" directly instead of "asyncio.run()".
Type "help", "copyright", "credits" or "license" for more information.
>>> import asyncio
>>> from juju import model;m=model.Model();await m.connect()
>>> await m.deploy(entity_url="https://charmhub.io/cos-lite", trust=True)
[<Application entity_id="alertmanager">, <Application entity_id="loki">, <Application entity_id="prometheus">, <Application entity_id="traefik">, <Application entity_id="catalogue">, <Application entity_id="grafana">]
>>>
But as I was writing this, I just realized I saw that weird error from bundles before, and sure enough, looks like I fixed it in a run-by not so long ago in https://github.com/juju/python-libjuju/pull/949, you can see a similar error message in the description.
So basically this issue will go away when we make a new latest release on libjuju, which should be pretty soon 👍
Hello Team,
In my integration tests, I'm not able to deploy a bundle using
ops_test.model.deploy
as shown in the snippet below:The error I'm getting is:
My env is:
Workaround is of course running deployment using
ops_test.run
, but I'd rather use a proper way to deploy bundles.BR, Bartek