Merge lp:~james-page/charms/trusty/rabbitmq-server/kilo-support into lp:charms/trusty/rabbitmq-server

Proposed by James Page
Status: Merged
Merged at revision: 83
Proposed branch: lp:~james-page/charms/trusty/rabbitmq-server/kilo-support
Merge into: lp:charms/trusty/rabbitmq-server
Diff against target: 17 lines (+6/-1)
1 file modified
hooks/rabbit_utils.py (+6/-1)
To merge this branch: bzr merge lp:~james-page/charms/trusty/rabbitmq-server/kilo-support
Reviewer Review Type Date Requested Status
Charles Butler (community) Approve
Review Queue (community) automated testing Needs Fixing
Review via email: mp+247112@code.launchpad.net

Description of the change

Resync helpers to get support for new Kilo cloud archive pockets.

To post a comment you must log in.
80. By James Page

Fixup parsing for newer rabbitmq

Revision history for this message
uosci-testing-bot (uosci-testing-bot) wrote :

charm_lint_check #929 trusty-rabbitmq-server for james-page mp247112
    LINT OK: passed

Build: http://10.245.162.77:8080/job/charm_lint_check/929/

Revision history for this message
uosci-testing-bot (uosci-testing-bot) wrote :

charm_unit_test #958 trusty-rabbitmq-server for james-page mp247112
    UNIT FAIL: unit-test failed

UNIT Results (max last 2 lines):
  Storing debug log for failure in /var/lib/jenkins/.pip/pip.log
  make: *** [.venv] Error 1

Full unit test output: http://paste.ubuntu.com/9803906/
Build: http://10.245.162.77:8080/job/charm_unit_test/958/

Revision history for this message
uosci-testing-bot (uosci-testing-bot) wrote :

charm_amulet_test #1151 trusty-rabbitmq-server for james-page mp247112
    AMULET FAIL: amulet-test failed

AMULET Results (max last 2 lines):
  ERROR subprocess encountered error code 124
  make: *** [functional_test] Error 124

Full amulet test output: http://paste.ubuntu.com/9804050/
Build: http://10.245.162.77:8080/job/charm_amulet_test/1151/

Revision history for this message
uosci-testing-bot (uosci-testing-bot) wrote :

charm_lint_check #930 trusty-rabbitmq-server for james-page mp247112
    LINT OK: passed

Build: http://10.245.162.77:8080/job/charm_lint_check/930/

Revision history for this message
uosci-testing-bot (uosci-testing-bot) wrote :

charm_unit_test #959 trusty-rabbitmq-server for james-page mp247112
    UNIT OK: passed

Build: http://10.245.162.77:8080/job/charm_unit_test/959/

Revision history for this message
uosci-testing-bot (uosci-testing-bot) wrote :

charm_amulet_test #1152 trusty-rabbitmq-server for james-page mp247112
    AMULET OK: passed

Build: http://10.245.162.77:8080/job/charm_amulet_test/1152/

Revision history for this message
Review Queue (review-queue) wrote :

This items has failed automated testing! Results available here http://reports.vapour.ws/charm-tests/charm-bundle-test-10965-results

review: Needs Fixing (automated testing)
81. By James Page

Rebase

Revision history for this message
uosci-testing-bot (uosci-testing-bot) wrote :

charm_lint_check #2230 rabbitmq-server for james-page mp247112
    LINT FAIL: lint-test failed

LINT Results (max last 2 lines):
  unit_tests/test_rabbitmq_server_relations.py:6:1: E402 module level import not at top of file
  make: *** [lint] Error 1

Full lint test output: http://paste.ubuntu.com/10396140/
Build: http://10.245.162.77:8080/job/charm_lint_check/2230/

Revision history for this message
uosci-testing-bot (uosci-testing-bot) wrote :

charm_unit_test #2019 rabbitmq-server for james-page mp247112
    UNIT OK: passed

Build: http://10.245.162.77:8080/job/charm_unit_test/2019/

Revision history for this message
uosci-testing-bot (uosci-testing-bot) wrote :

charm_amulet_test #2176 rabbitmq-server for james-page mp247112
    AMULET FAIL: amulet-test failed

AMULET Results (max last 2 lines):
  ERROR subprocess encountered error code 1
  make: *** [functional_test] Error 1

Full amulet test output: http://paste.ubuntu.com/10397167/
Build: http://10.245.162.77:8080/job/charm_amulet_test/2176/

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

Thanks for the contribution @jamespage. I've taken the time to review this contribution and +1 LGTM.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'hooks/rabbit_utils.py'
2--- hooks/rabbit_utils.py 2015-01-22 15:37:28 +0000
3+++ hooks/rabbit_utils.py 2015-02-24 10:47:30 +0000
4@@ -82,7 +82,12 @@
5 try:
6 output = subprocess.check_output([RABBITMQ_CTL, 'list_vhosts'])
7
8- return output.split('\n')[1:-2]
9+ # NOTE(jamespage): Earlier rabbitmqctl versions append "...done"
10+ # to the output of list_vhosts
11+ if '...done' in output:
12+ return output.split('\n')[1:-2]
13+ else:
14+ return output.split('\n')[1:-1]
15 except Exception as ex:
16 # if no vhosts, just raises an exception
17 log(str(ex), level='DEBUG')

Subscribers

People subscribed via source and target branches