Comment 2 for bug 2058311

Revision history for this message
Allan Vidal (alnvdl) wrote (last edit ):

Hi Jack,

I found this out because we have several small, relatively simple charms (4 at the moment, soon to be 7), and their integration tests all started failing our GitHub Actions workflows. The worked on Friday for some of the charms, but consistently failed on Monday for the exact same charm code.

These charms were originally based on the template kubernetes charm, so I suspected it was not our code, but something involving Juju or the test environment. After ruling out other changes in the GitHub runner test environment, I managed to reproduce the bug locally in my machine after upgrading to 2.9.47 and confirmed it by rolling back to 2.9.46.

The tests generated with the template are for demonstration purposes, but they are also fully functioning tests. They just don't make many assertions about what is deployed, but they exercise pretty much all of the basic setup.

So:
- charmcraft init --profile kubernetes
- Adapt charm to run on Juju 2.9.47 as I described above; if using my charm, just change the image tag to something you can deploy
- juju bootstrap on 2.9.47, pick microk8s as a cloud
- tox run -e integration --> it will fail

If you try the last two steps with 2.9.46, it works. If you had the charm installed before, you can just do `sudo snap revert juju` to go back to 2.9.46.

If you didn't have it installed, I guess you can try `sudo snap install juju --classic --revision=25672`, but I didn't try that.

This bug is affecting us quite a bit, as we need to target 2.9 for the IS-provided infra when deploying our internal services. For now, we are disabling the integration tests, but that's not ideal in the long term.

Allan