Skip to content

[Bug]: Pass a 'series' kwarg to Model.deploy() error when series is specified #758

@arturo-seijas

Description

@arturo-seijas

Description

Hi,
All of our iur integration tests are failing in CI with the following error although the series parameter is specified when deploying.

juju.errors.JujuError: Couldn't determine series for charm at /home/runner/work/indico-operator/indico-operator/.tox/integration/tmp/pytest/testing0/charms/indico_ubuntu-20.04-amd64.charm. Pass a 'series' kwarg to Model.deploy().

If we pin the version to 3.0.2 the error isn't raised.
It look like this issue was introduced in this PR.

Also, it is my understanding that, given I'm deploying kubernetes charms, the series should be irrelevant.

Thank you

Urgency

Annoying bug in our test suite

Python-libjuju version

3.0.3

Juju version

2.9.35

Reproduce / Test

# Deploy relations first to speed up overall execution
    hello_kubecon_app_name = "hello-kubecon"
    await ops_test.model.deploy(hello_kubecon_app_name)

    # Build and deploy ingress
    charm = await ops_test.build_charm(".")
    application = await ops_test.model.deploy(
        charm, application_name=app_name, series="focal", trust=True
    )
    await ops_test.model.wait_for_idle()

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugindicates a bug in the project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions