~mertkirpici/charm-juju-local:topic/juju-3.1

Last commit made on 2023-09-06
Get this branch:
git clone -b topic/juju-3.1 https://git.launchpad.net/~mertkirpici/charm-juju-local
Only Mert Kirpici can upload to this branch. If you are Mert Kirpici please log in for upload directions.

Branch merges

Branch information

Name:
topic/juju-3.1
Repository:
lp:~mertkirpici/charm-juju-local

Recent commits

438a947... by Mert Kirpici

chore: add juju 3.1 support for functests

Signed-off-by: Mert Kırpıcı <email address hidden>

d8bf76a... by Tianqi Xiao

Juju 3.x support.

1. Juju 3.x snap is strictly confined and doesn't have the permission to create juju's local user directory (`~/.local/share/juju`). This PR implements a workaround for this issue
2. Refresh lxd snap to "latest/stable" to support bootstrapping Juju 3.x controller.
3. Added functional tests for Juju 3.x
4. Pin tenacity to workaround LP#2031582

Reviewed-on: https://code.launchpad.net/~txiao/charm-juju-local/+git/charm-juju-local/+merge/449219
Reviewed-by: Eric Chen <email address hidden>
Reviewed-by: Ramesh Sattaru <email address hidden>
Reviewed-by: 🤖 prod-jenkaas-bootstack <email address hidden>

aa4d37d... by Tianqi Xiao

Add Juju 3.x Support

1. Juju 3.x snap is strictly confined and doesn't have the permission to
create juju's local user directory (`~/.local/share/juju`). This PR
implements a workaround for this issue
2. Refresh lxd snap to "latest/stable" to support bootstrapping Juju 3.x
controller.
3. Added functional tests for Juju 3.x
4. Pin tenacity to workaround LP#2031582

fdb6213... by Tianqi Xiao

Add juju-channel config option to allow installing non-default juju snap version

Fixes: #2029327

Reviewed-on: https://code.launchpad.net/~txiao/charm-juju-local/+git/charm-juju-local/+merge/448406
Reviewed-by: Robert Gildein <email address hidden>
Reviewed-by: JamesLin <email address hidden>
Reviewed-by: Sudeep Bhandari <email address hidden>

a84d1c8... by Tianqi Xiao

Add juju-channel config option to allow installing non-default juju snap version

e59aae3... by Sudeep Bhandari

Make controller series same as host series

Drop Xenial support

Reviewed-on: https://code.launchpad.net/~sudeephb/charm-juju-local/+git/charm-juju-local/+merge/437473
Reviewed-by: Ramesh Sattaru <email address hidden>
Reviewed-by: JamesLin <email address hidden>
Reviewed-by: Eric Chen <email address hidden>

214f172... by Sudeep Bhandari

Make controller series same as host series

Drop xenial support
Use charm/2.x for building

6cd5d83... by Mert Kirpici

build: add jammy support

Adding relevant info into charmcraft.yaml

Also, we are pinning the version of Markupsafe since Markupsafe drops
support for Python 3.5[0] starting from release 2.0.0, which is what
xenial is shipped with.

[0] https://markupsafe.palletsprojects.com/en/2.1.x/changes/

Closes-Bug: 1988520

Signed-off-by: Mert Kırpıcı <email address hidden>

8198b6b... by Mert Kirpici

charm: install lxd snap

In the ubuntu charms with series bionic or older, lxd comes preinstalled
as a debian package rather than a snap. Since the lxd versions are much
older than the snap, this behavior used to cause the lxd server offering
unsupported tls version during `juju bootstrap` therefore ending up with
a broken charm.

With this commit, we are using installing the lxd snap and running
lxd.migrate if lxd is installed as a debian package during the install
event handler to make sure we are using the snap everywhere.

Closes-Bug: 1988477

Signed-off-by: Mert Kırpıcı <email address hidden>

c67f234... by Mert Kirpici

tests/functional: update zaza and tests.yaml

In the current state, the functional tests were failing to start due to
using deprecated zaza and workload-status-message-* strings in
tests.yaml

Signed-off-by: Mert Kırpıcı <email address hidden>