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

provide an easy way of changing leader of a certain application #585

Open
gabrielcocenza opened this issue Jan 26, 2023 · 0 comments
Open

Comments

@gabrielcocenza
Copy link

On the charm that I've been working, which is subordinate one, it would be nice to have some functional tests that check that nrpe configuration are present just in the leader unit and that this config disappears if leader unit changes. This is what I tried so far:

  1. running systemctl stop jujud-machine- on the leader unit by using zaza.model.run_on_unit with a timeout. When I do that some weird behaviors happen:
  • timeout is not respected and the command hangs forever. Probably this is due python libjuju depending on jujud-machine being up and running.
  1. deleting a unit. Because it's a subordinate charm it's not possible doing that. All subordinates charms would be destroyed if the relation with the principal is removed.

I guess if zaza provides an easy way of changing leader of an application, that could be useful and helpful for a lot of functional tests on charms.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants