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

fix(series): add noble support #1063

Merged
merged 1 commit into from
Jul 11, 2024

Conversation

jack-w-shaw
Copy link
Member

The pylibjuju client hardcodes a mapping between series codename and the base channel.

Noble was absent from this mapping, meaning pylibjuju doesn't know know to deploy to noble.

Add noble to this mapping.

After noble, we will only support deploying by base. Noble will be the last series added to this map

Fixes: #1062

QA Steps

Download a local charm juju download ubuntu, unzip, and amend the manifest,yaml to support ubuntu@24.04

Place the charm dir at ./ubuntu

You will see

$ cat ./ubuntu/manifest.yaml
bases:
- architectures:
  - amd64
  channel: '20.04'
  name: ubuntu
- architectures:
  - amd64
  channel: '22.04'
  name: ubuntu
- architectures:
  - amd64
  channel: '24.04'
  name: ubuntu

Then:

$ juju bootstrap lxd lxd
$ juju add-model
$ python -m asyncio
>>> from juju.model import Model
>>> m = Model()
>>> await m.connect()
>>> await m.deploy("./ubuntu", series="noble")
<Application entity_id="ubuntu">
>>> exit
(wait)
$ juju status
 Model  Controller  Cloud/Region         Version      SLA          Timestamp
m      lxd         localhost/localhost  3.6-beta1.1  unsupported  12:03:15+01:00

App     Version  Status  Scale  Charm   Channel  Rev  Exposed  Message
ubuntu  24.04    active      1  ubuntu             0  no       

Unit       Workload  Agent  Machine  Public address  Ports  Message
ubuntu/0*  active    idle   0        10.219.211.77          

Machine  State    Address        Inst id        Base          AZ  Message
0        started  10.219.211.77  juju-742671-0  ubuntu@24.04      Running

All CI tests need to pass.

Copy link
Contributor

@cderici cderici left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah this makes sense, let's also add an integration test that deploys a workload on noble, just to catch future regressions about that, because compatibility across versions will be relevant when the 4.0 comes, we don't wanna miss anything there.

@jack-w-shaw jack-w-shaw force-pushed the JUJU-6223_add_noble_support branch 2 times, most recently from 9c3fdab to 95128b8 Compare June 27, 2024 09:35
@jack-w-shaw
Copy link
Member Author

Yeah this makes sense, let's also add an integration test that deploys a workload on noble, just to catch future regressions about that, because compatibility across versions will be relevant when the 4.0 comes, we don't wanna miss anything there.

Integration test added

@jack-w-shaw
Copy link
Member Author

/merge

1 similar comment
@jack-w-shaw
Copy link
Member Author

/merge

@UtkarshBhatthere
Copy link

Hey guys! is there any ETA for this patch to land ?

@cderici
Copy link
Contributor

cderici commented Jul 8, 2024

/merge

@sabaini
Copy link

sabaini commented Jul 9, 2024

Hm, it looks like merging is still blocked?

@cderici
Copy link
Contributor

cderici commented Jul 9, 2024

@UtkarshBhatthere @sabaini Yeah we're currently working on fixing some trouble with the jenkins job, it should be fixed in a day or two, after that, we're good to go 👍

@jack-w-shaw
Copy link
Member Author

/merge

1 similar comment
@jack-w-shaw
Copy link
Member Author

/merge

@jack-w-shaw
Copy link
Member Author

/merge

The pylibjuju client hardcodes a mapping between series codename
and the base channel.

Noble was absent from this mapping, meaning pylibjuju doesn't know
know to deploy to noble.

Add noble to this mapping.

After noble, we will only support deploying by base. Noble will be the
last series added to this map

Add an integration test which deploys a charm to noble
@jack-w-shaw
Copy link
Member Author

/merge

@jujubot jujubot merged commit 18917b4 into juju:main Jul 11, 2024
8 of 10 checks passed
@jack-w-shaw jack-w-shaw deleted the JUJU-6223_add_noble_support branch July 11, 2024 15:10
jujubot added a commit that referenced this pull request Jul 11, 2024
#1071

## What's Changed
* fix parsing of storage constraints by @luissimas in #1053
* Add setuptools to tox.ini by @Aflynn50 in #1058
* fix(refresh): bug with revisions by @jack-w-shaw in #1067
* feat: conventional commits static analysis by @SimonRichardson in #1068
* fix(series): add noble support by @jack-w-shaw in #1063
* fix zones constrains list parsing by @luissimas in #1054
* fix(model): fix wrong instanciation of list-secrets facade by @gboutry in #1065
* fix(makefile): run .tox before lint in makefile target by @cderici in #1069
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for noble
5 participants