Merge lp://qastaging/~danilo/landscape-charm/no-pppa-proxy-without-hosted into lp://qastaging/~landscape/landscape-charm/trunk

Proposed by Данило Шеган
Status: Merged
Approved by: Данило Шеган
Approved revision: 382
Merged at revision: 381
Proposed branch: lp://qastaging/~danilo/landscape-charm/no-pppa-proxy-without-hosted
Merge into: lp://qastaging/~landscape/landscape-charm/trunk
Diff against target: 56 lines (+34/-1)
2 files modified
lib/relations/haproxy.py (+3/-1)
lib/relations/tests/test_haproxy.py (+31/-0)
To merge this branch: bzr merge lp://qastaging/~danilo/landscape-charm/no-pppa-proxy-without-hosted
Reviewer Review Type Date Requested Status
Adam Collard (community) Approve
Alberto Donato (community) Approve
🤖 Landscape Builder test results Approve
Review via email: mp+318446@code.qastaging.launchpad.net

Commit message

Do not add pppa-proxy entries to HAProxy config when no hosted relation is present

We already had this as conditional, but the conditions were not sufficient since HostedRequirer itself augmented the returned data with a "deployment-mode: standalone" when there was no hosted relation.

Description of the change

Do not add pppa-proxy entries to HAProxy config when no hosted relation is present

We already had this as conditional, but the conditions were not sufficient since HostedRequirer itself augmented the returned data with a "deployment-mode: standalone" when there was no hosted relation.

Testing instructions:

"make deploy" in the charm

Notice how haproxy-IP:10000 (haproxy:haproxy user/pass) does not list pppa-proxy anymore.

Deploy landscape-hosted charm, configure it with eg.

  juju config landscape-hosted --file <data from https://pastebin.canonical.com/180916/>

Check haproxy-IP:10000 again and notice how there is an entry for pppa-proxy now.

Also check haproxy/0:/etc/haproxy/haproxy.cfg for good measure.

To post a comment you must log in.
Revision history for this message
🤖 Landscape Builder (landscape-builder) :
review: Abstain (executing tests)
Revision history for this message
🤖 Landscape Builder (landscape-builder) wrote :
review: Approve (test results)
Revision history for this message
Alberto Donato (ack) wrote :

+1

review: Approve
Revision history for this message
Adam Collard (adam-collard) wrote :

+1

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches