canonical / charm-microceph

Charm to deploy/manage microceph
Apache License 2.0
2 stars 9 forks source link

Prevent automatic updates. #23

Closed lmlg closed 6 months ago

lmlg commented 6 months ago

This PR stops the microceph snap from refreshing automatically and uses a named track as a default to make installations more predictable. In addition, it changes the default channel to a named one.

hemanthnakkina commented 6 months ago

@lmlg Thanks for the patch, I have in my TODO list to use snap library [1] to manage snap instead of subprocess commands but never get to that. Can you change the code as part of this PR to use snap library to install/refresh/hold snap? Example usage of snap library in openstack-hypervisor charm can be found here [2]

[1] https://charmhub.io/operator-libs-linux/libraries/snap [2[ https://opendev.org/openstack/sunbeam-charms/src/branch/main/charms/openstack-hypervisor/src/charm.py#L35

lmlg commented 6 months ago

Closed, as I need to make this branch from a fork.