Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The model.deploy unable to resolve to a revision for base [email protected] #1240

Open
yhaliaw opened this issue Dec 9, 2024 · 2 comments
Labels
kind/bug indicates a bug in the project

Comments

@yhaliaw
Copy link

yhaliaw commented Dec 9, 2024

Description

Running the following await model.deploy("grafana-agent", "test-name", channel="latest/edge", base="[email protected]", num_units=0) results in the following error: juju.errors.JujuError: base "[email protected]/stable" is not supported, supported bases are: [email protected]

However, there should be revisions that fits the constriant, such as revision 316:
image

Adding the revision to the args works fine:
await model.deploy("grafana-agent", "test-name", channel="latest/edge", base="[email protected]", revision=316, num_units=0)

It would be good for the deployment be done without hardcoding the revision.

Urgency

Annoying bug in our test suite

Python-libjuju version

3.6.0.0

Juju version

3.5.4 (locally), 3.6/stable (in GitHub workflows)

Reproduce / Test

await model.deploy("grafana-agent", "test-name", channel="latest/edge", base="[email protected]", num_units=0)
@yhaliaw yhaliaw added the kind/bug indicates a bug in the project label Dec 9, 2024
@dimaqq
Copy link
Contributor

dimaqq commented Dec 12, 2024

A couple of notes off the top of my head:

  1. base= argument is supported or not sully supported yet, please continue to use series= in the current versions of the library
  2. in some cases charmhub is misleading, please report juju info <app> instead.

P.S. base= effort is tracked in #1156

@dimaqq
Copy link
Contributor

dimaqq commented Dec 12, 2024

Also, is this a machine charm / model or a k8s charm / model?

It's not possible to add a 24.04 machine using the library at the moment due to #1229, if that's your case, shell out to add the machine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug indicates a bug in the project
Projects
None yet
Development

No branches or pull requests

2 participants