Merge lp://staging/~evarlast/charms/trusty/kibana/add-port-path-config into lp://staging/charms/trusty/kibana

Proposed by Jay R. Wren
Status: Merged
Merged at revision: 18
Proposed branch: lp://staging/~evarlast/charms/trusty/kibana/add-port-path-config
Merge into: lp://staging/charms/trusty/kibana
Diff against target: 153 lines (+72/-9)
8 files modified
config.yaml (+9/-0)
hooks/config-changed (+18/-0)
hooks/install (+5/-2)
hooks/start (+1/-3)
hooks/stop (+3/-2)
hooks/web-relation-joined (+3/-1)
metadata.yaml (+1/-1)
tests/12-port-change.py (+32/-0)
To merge this branch: bzr merge lp://staging/~evarlast/charms/trusty/kibana/add-port-path-config
Reviewer Review Type Date Requested Status
Jay R. Wren (community) Needs Resubmitting
Whit Morriss (community) Needs Fixing
Michael Foley (community) Needs Fixing
Charles Butler (community) Needs Fixing
Review via email: mp+255144@code.staging.launchpad.net

Description of the change

Adds nginx tcp port configuration option and a path option for configuring it to be proxy fronted with a path. e.g. /kibana and not at the root of a url.

To post a comment you must log in.
19. By Jay R. Wren

fix port and path config settings

add config-changed hook

20. By Jay R. Wren

fix config-changed error

reload nginx after setting port

21. By Jay R. Wren

I've been tired.

Revision history for this message
Charles Butler (lazypower) wrote :

Greetings Jay,

Thanks for this contribution. I've taken some time to look this over, and I have a few comments:

There's nothing that stands out about the code - however it would be nice to have the tests updated to flex the configuration option and validate that the resulting service is available on the port/path specified with the new configuration options. This will prevent us from breaking it in the future.

I did however notice that the charm when deployed via the tests results in failure. You can view the results here: http://reports.vapour.ws/charm-test-details/charm-bundle-test-parent-229

The Install hook is the culprit for the deployment failure. DEBUG:runner: unit: kibana/0: machine: 1 agent-state: error details: hook failed: "install" So I cannot block on this - but I will block on the lack of test coverage of the new options.

I'm happy to work with you on updating the tests if you need assistance to cover the new options. Feel free to reach out via IRC.

Otherwise, this MP looks good and aside from the minor feedback above is nearly ready for inclusion in the charm.

Thanks again for the submission. I'm going to change status of this MP to "needs work" and when you're ready switch merge status to 'needs review' and someone will be along shortly to review your work.

If you have any questions/comments/concerns about the review contact us in #juju on irc.freenode.net or email the mailing list <email address hidden>, or ask a question tagged with "juju" on http://askubuntu.com.

review: Needs Fixing
Revision history for this message
Michael Foley (foli) wrote :

elasticsearch sed line needs fixing as noted inline.

review: Needs Fixing
22. By Jay R. Wren

use protocol relative url

Revision history for this message
Whit Morriss (whitmo) wrote :

-1. I issued a merge proposal adding a test for configuring the port and a fix for opening a port. The original port will still need to be cleaned up.

review: Disapprove
Revision history for this message
Whit Morriss (whitmo) wrote :

Changing to appropriate status. Still waiting on port fixes.

review: Needs Fixing
23. By Jay R. Wren

close and open port on change

Revision history for this message
Jay R. Wren (evarlast) wrote :

Updated with closing previous port and opening new port. Added amulet test to test requests to configured port.

review: Needs Resubmitting
24. By Jay R. Wren

close port only if previously opened

25. By Jay R. Wren

fix idempotency problems

26. By Jay R. Wren

explicitly define empty env var

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