Merge lp:~pjdc/charms/trusty/rabbitmq-server/no-more-guest-user into lp:charms/trusty/rabbitmq-server
| Status: | Rejected |
|---|---|
| Rejected by: | Matt Bruzek on 2015-12-15 |
| Proposed branch: | lp:~pjdc/charms/trusty/rabbitmq-server/no-more-guest-user |
| Merge into: | lp:charms/trusty/rabbitmq-server |
| Diff against target: |
68 lines (+39/-0) 3 files modified
config.yaml (+8/-0) hooks/rabbit_utils.py (+12/-0) hooks/rabbitmq_server_relations.py (+19/-0) |
| To merge this branch: | bzr merge lp:~pjdc/charms/trusty/rabbitmq-server/no-more-guest-user |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Review Queue (community) | automated testing | Needs Fixing on 2015-12-18 | |
| Matt Bruzek (community) | 2015-11-06 | Disapprove on 2015-12-15 | |
| Ryan Beisner | 2015-11-06 | Resubmit on 2015-12-15 | |
|
Review via email:
|
|||
This proposal supersedes a proposal from 2015-11-04.
Description of the Change
rabbitmq creates a guest account by default, and in versions < 3.3.0, the guest account is usable over the network. This branch adds a config item to control the guest account, defaulting to off, i.e. "delete it".
Note that although check_rabbitmq.py defaults to the guest account, the charm creates and configures custom accounts and vhosts for monitoring purposes.
Resubmit:
- don't try to manage the account until packages are installed
- try to avoid collisions in the clustered case
charm_amulet_test #7718 rabbitmq-server for pjdc mp276614
AMULET FAIL: amulet-test failed
AMULET Results (max last 2 lines):
make: *** [functional_test] Error 1
ERROR:root:Make target returned non-zero.
Full amulet test output: http://
Build: http://
| Ryan Beisner (1chb1n) wrote : | # |
Here is the bit from the rmq/0 juju unit log where the guest account config failed. Also including the juju stat output for that deploy:
charm_lint_check #13162 rabbitmq-server for pjdc mp276831
LINT OK: passed
Build: http://
charm_unit_test #12314 rabbitmq-server for pjdc mp276831
UNIT OK: passed
charm_amulet_test #7768 rabbitmq-server for pjdc mp276831
AMULET OK: passed
Build: http://
| Review Queue (review-queue) wrote : | # |
This item has failed automated testing! Results available here http://
charm_amulet_test #8228 rabbitmq-server for pjdc mp276831
AMULET FAIL: amulet-test failed
AMULET Results (max last 2 lines):
Timeout occurred (2700s), printing juju status.
ERROR:root:Make target returned non-zero.
Full amulet test output: http://
Build: http://
| Ryan Beisner (1chb1n) wrote : | # |
FYI, test #8228 failed due to unrelated undercloud issue, safe to disregard that result. Re-triggering that test...
charm_amulet_test #8230 rabbitmq-server for pjdc mp276831
AMULET FAIL: amulet-test failed
AMULET Results (max last 2 lines):
make: *** [functional_test] Error 1
ERROR:root:Make target returned non-zero.
Full amulet test output: http://
Build: http://
| Ryan Beisner (1chb1n) wrote : | # |
FYI, test #8230 failed due to unrelated undercloud metadata issue, safe to disregard that result.
Undercloud metadata issue seems to be resolved, retriggering test again.
| Ryan Beisner (1chb1n) wrote : | # |
FYI:
Given:
A recent change in Juju unit numbering behavior,
And: https:/
And: Juju charm ci recycles a single bootstrap enviro across all test iterations in that charm:
The rmq amulet test will not pass in charm ci, but should be expected to pass in uosci since each test there gets a fresh bootstrap, and units will always start at zero.
charm_amulet_test #8243 rabbitmq-server for pjdc mp276831
AMULET FAIL: amulet-test failed
AMULET Results (max last 2 lines):
make: *** [functional_test] Error 1
ERROR:root:Make target returned non-zero.
Full amulet test output: http://
Build: http://
charm_amulet_test #8246 rabbitmq-server for pjdc mp276831
AMULET FAIL: amulet-test failed
AMULET Results (max last 2 lines):
make: *** [functional_test] Error 1
ERROR:root:Make target returned non-zero.
Full amulet test output: http://
Build: http://
charm_amulet_test #8298 rabbitmq-server for pjdc mp276831
AMULET FAIL: amulet-test failed
AMULET Results (max last 2 lines):
make: *** [functional_test] Error 124
ERROR:root:Make target returned non-zero.
Full amulet test output: http://
Build: http://
charm_amulet_test #8303 rabbitmq-server for pjdc mp276831
AMULET OK: passed
Build: http://
| Ryan Beisner (1chb1n) wrote : | # |
Thanks again for your work on this, and thank you for your patience while we encountered system issued during testing. With the infrastructure issues resolved, the amulet tests for this proposal are now passing.
I've discussed the proposed changes with others on the OpenStack Engineering team, and, while this is a change in default behavior, it is viewed as an valuable improvement with no impact on Ubuntu OpenStack deployments.
This is a +1 from the OpenStack perspective. I am requesting a co-review from a peer in the Juju Ecosystem team because there is a possibility that non-OpenStack use cases are out there which relied on the previous default behavior (guest user enabled), regardless of whether or not that is good practice.
As a reminder, the review-queue (vapour) tests are failing, unrelated to the changes proposed by pjfc. https:/
| Ryan Beisner (1chb1n) wrote : | # |
It occurs to me that we should really have test coverage for the added feature. Unit and Amulet tests should accompany the proposed changes.
| Ryan Beisner (1chb1n) wrote : | # |
* Need to add unit + amulet test coverage for the new/changed features.
* This proposed change should be targeted to the "next" (development) branch of the rabbitmq-server charm [1], per the development norms [2]
* Upon further review, and even though these changes work well with the current Juju version (1.25.0), this will likely break deployments on older versions Juju in that:
--It is not safe to assume non-clustered configuration when leadership election support is absent. The charm may indeed be clustered, even though the LE feature may not be present in the older version of Juju.
[1] https:/
| Matt Bruzek (mbruzek) wrote : | # |
According to Ryan's comments this merge needs to be re-created at a different target. I am going to set this charm to rejected. Please resubmit the charm at the correct target.
| Review Queue (review-queue) wrote : | # |
This item has failed automated testing! Results available here http://
| Review Queue (review-queue) wrote : | # |
This item has failed automated testing! Results available here http://
Unmerged revisions
- 112. By Paul Collins on 2015-11-05
-
enable-
legacy- guest-account: handle clustered configurations - 111. By Paul Collins on 2015-11-05
-
process enable-
legacy- guest-account *after* rabbit is installed - 110. By Paul Collins on 2015-11-04
-
add config item "enable-
legacy- guest-account" , and obey it

charm_unit_test #12216 rabbitmq-server for pjdc mp276614
UNIT OK: passed
Build: http:// 10.245. 162.77: 8080/job/ charm_unit_ test/12216/