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

[Juju 3.6] Restrict supported series by what controller actually supports #1172

Open
dimaqq opened this issue Oct 21, 2024 · 2 comments
Open
Labels
juju/3.6 kind/bug indicates a bug in the project

Comments

@dimaqq
Copy link
Contributor

dimaqq commented Oct 21, 2024

Description

ResolveCharms returns:

{'request-id': 9, 'response': {'Results': [
{'url': 'ch:amd64/ubuntu-25', 'charm-origin':
 {'source': 'charm-hub', 'type': 'charm', 'id': '', 'risk': 'stable', 'revision': 25, 'track': 'latest',
  'architecture': 'amd64', 'base': {'name': 'ubuntu', 'channel': '22.04/stable'}},
  'supported-series': [
        'jammy',
        'focal',
        'bionic',
        'xenial',
        'trusty',
        'precise',
        'groovy',
        'disco',
        'cosmic',
        'artful',
        'vivid'
]}]}}

However, controller will reject an attempt to deploy on vivid.

Likewise, if the client always picked the newest (charmhub) base and ran against older Juju, client could ask for jammy that is not yet supported.

It's not an issue for older Jujus today, because older Juju returns 'ch:amd64/jammy/ubuntu-25' directly indicating the (preferred?) base.

Urgency

Casually reporting

Python-libjuju version

any

Juju version

3.6

Reproduce / Test

model.deploy("ubuntu")
@dimaqq dimaqq added the kind/bug indicates a bug in the project label Oct 21, 2024
@dimaqq
Copy link
Contributor Author

dimaqq commented Oct 21, 2024

Connected: #1171

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

No branches or pull requests

1 participant