-
Notifications
You must be signed in to change notification settings - Fork 47
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.x Support #608
Juju 3.x Support #608
Commits on Jan 16, 2024
-
Misc fixes for failing github workflows
Add separate workflow for testing on Python 3.6 as this requires an older Ubuntu release. Fixup unit tests for compatibility with newer versions of mock. Drop latest/stable functional test targets - this is actually 2.9.x of Juju and is already covered by the 2.9 targets and we want to avoid suddenly picking up a new Juju version because this will break with the new approach to version alignment in the Python module for Juju. Drop 2.8 functional test target - its broken and we don't really support this version any longer. Fixup iptables forwarding issues from LXD containers with a flush and re-create of rules. (cherry picked from commit 9277a94)
Configuration menu - View commit details
-
Copy full SHA for e45fd7f - Browse repository at this point
Copy the full SHA e45fd7fView commit details -
pin juju upper constraint to <3.2
Juju is pinned to <3.0 earlier. This patch pins the juju version to <3.2 so that libjuju 3.1 version is used. Modified run_on_unit to wait for completion and update results based on output.
Configuration menu - View commit details
-
Copy full SHA for 3e7b2a5 - Browse repository at this point
Copy the full SHA 3e7b2a5View commit details -
Switch functional testing to Juju 3.1
Update channel in github workflows to use Juju 3.1. Drop --no-gui flag usage as this is the default now.
Configuration menu - View commit details
-
Copy full SHA for 1eacbff - Browse repository at this point
Copy the full SHA 1eacbffView commit details -
Configuration menu - View commit details
-
Copy full SHA for 496746c - Browse repository at this point
Copy the full SHA 496746cView commit details -
Misc updates for 3.1 compatibility
Update model configuration default-series to focal. Drop --classic flag for Juju installation.
Configuration menu - View commit details
-
Copy full SHA for e7a5c91 - Browse repository at this point
Copy the full SHA e7a5c91View commit details -
Generate temporary directory under $HOME
When juju is strictly confined, random temp directories under /tmp are not accessible - render any templated bundle files under $HOME instead as this should be readable.
Configuration menu - View commit details
-
Copy full SHA for bb72f5d - Browse repository at this point
Copy the full SHA bb72f5dView commit details -
Make libjuju an extra dependency.
python-libjuju is released in lockstep with juju, hence if zaza uses a 2.9 controller, it should use libjuju-2.9.x, for a 3.1 controller it should use libjuju-3.1 and so on. This change makes libjuju an extra, which means depending on the juju controller version will be used the right extra should be passed at install time. For juju-2.9: pip install zaza[juju-29] For juju-3.1: pip install zaza[juju-31]
Configuration menu - View commit details
-
Copy full SHA for 5997377 - Browse repository at this point
Copy the full SHA 5997377View commit details -
Summary of changes: - Add juju-3.2 to the github workflow matrix - Add 'juju-32' extra to install juju-3.2.x
Configuration menu - View commit details
-
Copy full SHA for 2c03b5e - Browse repository at this point
Copy the full SHA 2c03b5eView commit details -
Configuration menu - View commit details
-
Copy full SHA for cab27ec - Browse repository at this point
Copy the full SHA cab27ecView commit details -
This forces tox to install the zaza python package and honor the 'extras' defined.
Configuration menu - View commit details
-
Copy full SHA for 278c541 - Browse repository at this point
Copy the full SHA 278c541View commit details -
Configuration menu - View commit details
-
Copy full SHA for dcd2264 - Browse repository at this point
Copy the full SHA dcd2264View commit details -
Configuration menu - View commit details
-
Copy full SHA for 25c5f74 - Browse repository at this point
Copy the full SHA 25c5f74View commit details -
Depend on 'juju' when no extra is passed.
By default depend on 'juju' (no pinning), the pinning only comes into place when an explicit extra is passed. This makes the extras effectively nothing more than a pinning alias, basically `pip install juju<3.0 zaza` becomes equivalent to `pip install zaza[juju-29]`.
Configuration menu - View commit details
-
Copy full SHA for 5e138cb - Browse repository at this point
Copy the full SHA 5e138cbView commit details -
Value of the Code key in the returned Dict is str in master branch. However while trying to get compatible with juju 3.x series it became int. Now it is not conforming to the function signature. Also there are usages in some tests so it reverted back to str.
Configuration menu - View commit details
-
Copy full SHA for 5acd3cf - Browse repository at this point
Copy the full SHA 5acd3cfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8b1d54c - Browse repository at this point
Copy the full SHA 8b1d54cView commit details -
Pinning via constraints is left to downstream consumers.
Configuration menu - View commit details
-
Copy full SHA for e4ccfc2 - Browse repository at this point
Copy the full SHA e4ccfc2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0226e2f - Browse repository at this point
Copy the full SHA 0226e2fView commit details
Commits on Jan 17, 2024
-
Move libjuju pinning to a constraints file
By default libjuju 2.9 will be used, this can overriden by passing the PIP_CONSTRAINTS environment variable Examples: PIP_CONSTRAINTS=./constraints-juju31.txt tox -e pep8 --recreate This allows running functional tests with different versions of juju
Configuration menu - View commit details
-
Copy full SHA for de73779 - Browse repository at this point
Copy the full SHA de73779View commit details -
Configuration menu - View commit details
-
Copy full SHA for c42c965 - Browse repository at this point
Copy the full SHA c42c965View commit details -
Configuration menu - View commit details
-
Copy full SHA for 28c13b7 - Browse repository at this point
Copy the full SHA 28c13b7View commit details
Commits on Jan 18, 2024
-
Configuration menu - View commit details
-
Copy full SHA for d374a08 - Browse repository at this point
Copy the full SHA d374a08View commit details -
Configuration menu - View commit details
-
Copy full SHA for 69ab4fa - Browse repository at this point
Copy the full SHA 69ab4faView commit details
Commits on Jan 19, 2024
-
The testing runners use Python 3.8 (Focal), hence no need to keep py36 alive.
Configuration menu - View commit details
-
Copy full SHA for 227f3d5 - Browse repository at this point
Copy the full SHA 227f3d5View commit details
Commits on Feb 13, 2024
-
utilities: Convert juju base into Ubuntu series
Juju 3.x replaced the `series` status key with a `base` key that consists of Distribution type and version number. To avoid maintenance burden we add a Launchpad module that implements functions to look up available Ubuntu series data. Update the `get_machine_series` helper function to determine Ubuntu series from `base` when no `series` key is available. Signed-off-by: Frode Nordahl <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for dfbdbec - Browse repository at this point
Copy the full SHA dfbdbecView commit details
Commits on Feb 14, 2024
-
Add constraints-juju-default.txt
This file aims to hold the default version of juju that it's expected charms to be tested with. It helps to serve as a sane default for tox.ini
Configuration menu - View commit details
-
Copy full SHA for 18c179e - Browse repository at this point
Copy the full SHA 18c179eView commit details
Commits on Feb 20, 2024
-
Run
juju-crashdump
instead ofjuju crashdump
The juju snap can't run programs that are outside the snap due to the confinement restrictions
Configuration menu - View commit details
-
Copy full SHA for aec6e76 - Browse repository at this point
Copy the full SHA aec6e76View commit details