Commit Graph

7 Commits

Author SHA1 Message Date
Alex Kavanagh b0b51cc6ea Update to classic charms to build using charmcraft in CI
This update is to ensure that the Zuul Canonical CI builds the charm
before functional tests and ensure that that artifact is used for the
functional tests.  This is to try to ensure that the charm that gets
landed to the charmhub is the same charm that was tested with.

Change-Id: I3cb1f519e8f1d6765b41751994633be73e5bdea5
2022-02-15 17:06:59 +00:00
David Ames 5318764cc6 Forget cluster node as an action
There are race conditions in which the forget_cluster_node can get
executed against a node that is in the process of joining the cluster.

This change moves forget_cluster_node to an action that can be
performed by the administrator. The asses_cluster_status has been
updated to check for departed nodes and set status pointing toward the
use of the new forget-cluster-node action.

Closes-Bug: #1818260
Change-Id: I64bcdb9811a3816b394395fac19f5af5cc9f9006
2020-06-09 08:48:13 -07:00
Alex Kavanagh f30b4ac0c6 Fix incorrect syntax in scripts/check_rabbitmq.py
* This fixes the incorrect syntax in the scripts/check_rabbitmq.py
  file.  Unfortunately, there are no tests for these files.  To
  help with QA, added the 'scripts' directory to the pep8 test to
  validate that they are correct python syntax for future changes.

* Updated .gitigore to exclude __pycache__ directories for py3 and
  removed the __pycache__ directory files from the repo.

Change-Id: I406a70c3d04eb730e1c59189a83cc57495186105
Closes-Bug: #1804126
2018-11-20 08:38:51 +00:00
David Ames 9f9646bc35 Update all clients once and only once
This change solves two problmes. First, one off problems waiting
for the cluster to complete. Second, running update_clients too
often. Update clients will get executed only once as soon as
leader_node_is_ready() or client_node_is_ready() returns True.
Subsequent client requests will be handled by normal
amqp-relation-changed hooks.

Co-Authored-By: Liam Young <liam.young@canonical.com>
Partial-Bug: #1717579

Change-Id: I02c648cccc72d816beeec5546b6c7914d57c607a
2017-09-25 05:32:17 -07:00
Mario Splivalo 6dc119f7f4 Removes Eclipse-IDE specific project files
This will remove .project and .pydevproject files from the
repository, and will also add those files to .gitignore

Those are relevant only for Eclipse-IDE, and are specific to a
local workplace - as such they should not be a part of the charm.

Change-Id: I5ad164a4f380ed28ce41bf6c19a2766df3987f36
2017-07-26 15:42:51 -07:00
James Page bf53595c7f Resync charm-helpers
Change-Id: If4f279bec1083eb7c7af7ed28143706f2d069af6
2016-03-02 12:11:05 +00:00
uoscibot 8fbf0a9213 Adapt imports and metadata for github move 2016-02-29 10:50:01 +00:00