Merge ~sombrafam/ua-reviewkit:add-neutron-gateway-count-check into ua-reviewkit:master

Proposed by Erlon R. Cruz
Status: Merged
Merged at revision: 19a2a60c1b6aac89f6126573b90e97ebd8cb4573
Proposed branch: ~sombrafam/ua-reviewkit:add-neutron-gateway-count-check
Merge into: ua-reviewkit:master
Diff against target: 18 lines (+7/-0)
1 file modified
juju/checks/openstack.yaml (+7/-0)
Reviewer Review Type Date Requested Status
UA Reviewers Pending
Review via email: mp+407992@code.launchpad.net

Commit message

This should print this kind o warning:

=> application 'neutron-gateway'
[WARN] HA (>=3) (not enough units (value=2, expected='>=3'))

To post a comment you must log in.
Revision history for this message
Edward Hope-Morley (hopem) wrote :

This is ok except that sometimes deployments will use 2 neutron-gateways instead of 3. This will currently produce an error because assert_ha requires a min of 3 [1]. If we want to mandate 3 going forward i guess thats fine but otherwise we will need to add a means to override this minimum number of 3.

[1] https://git.launchpad.net/ua-reviewkit/tree/juju/ua-bundle-check.py#n237

Revision history for this message
Edward Hope-Morley (hopem) wrote :

actually i am ok with this because we are doing a warning and not an error.

Revision history for this message
Edward Hope-Morley (hopem) wrote :

We will need to land the other charm regex MP first though since it is included in this one.

Revision history for this message
Edward Hope-Morley (hopem) wrote :

Erlon, I have landed your other patch but this one now conflicts with master (because it includes an older version of the other patch). Can you rebase and update?

Revision history for this message
Erlon R. Cruz (sombrafam) wrote :

Should work now.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/juju/checks/openstack.yaml b/juju/checks/openstack.yaml
2index ea0f6e2..ac7319c 100644
3--- a/juju/checks/openstack.yaml
4+++ b/juju/checks/openstack.yaml
5@@ -175,6 +175,13 @@ checks:
6 While not a hard requirment, we currently recommend using Jumbo
7 frames for this setting so as to allow enough flexibility for
8 all neutron networks.
9+ neutron-gateway:
10+ charm: "neutron-gateway"
11+ assertions:
12+ ha:
13+ assert_ha:
14+ scope: application
15+ warn-on-fail: true
16 nova-cloud-controller:
17 charm: "nova-cloud-controller"
18 assertions:

Subscribers

People subscribed via source and target branches

to all changes: