Merge lp:~gnuoy/charms/trusty/ceph/fix-1409698 into lp:~openstack-charmers-archive/charms/trusty/ceph/next

Proposed by Liam Young
Status: Merged
Merged at revision: 95
Proposed branch: lp:~gnuoy/charms/trusty/ceph/fix-1409698
Merge into: lp:~openstack-charmers-archive/charms/trusty/ceph/next
Diff against target: 30 lines (+3/-6)
1 file modified
hooks/hooks.py (+3/-6)
To merge this branch: bzr merge lp:~gnuoy/charms/trusty/ceph/fix-1409698
Reviewer Review Type Date Requested Status
Ryan Beisner (community) Approve
Edward Hope-Morley Approve
Review via email: mp+246170@code.launchpad.net
To post a comment you must log in.
Revision history for this message
uosci-testing-bot (uosci-testing-bot) wrote :

charm_unit_test #711 ceph-next for gnuoy mp246170
    UNIT OK: passed

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

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

charm_lint_check #682 ceph-next for gnuoy mp246170
    LINT OK: passed

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

Revision history for this message
Edward Hope-Morley (hopem) :
review: Needs Fixing
Revision history for this message
uosci-testing-bot (uosci-testing-bot) wrote :

charm_amulet_test #868 ceph-next for gnuoy mp246170
    AMULET OK: passed

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

94. By Liam Young

Fix bug by removing superfluous call to client_relation_changed in light of mp feedback

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

charm_unit_test #713 ceph-next for gnuoy mp246170
    UNIT OK: passed

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

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

charm_lint_check #684 ceph-next for gnuoy mp246170
    LINT FAIL: lint-test failed

LINT Results (max last 2 lines):
  hooks/hooks.py:310:42: F821 undefined name 'relid'
  make: *** [lint] Error 1

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

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

charm_amulet_test #870 ceph-next for gnuoy mp246170
    AMULET FAIL: amulet-test failed

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

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

95. By Liam Young

Remove reference to relid since it is no longer used in client_relation_changed()

96. By Liam Young

Remove another reference to relid since it is no longer used in client_relation_changed()

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

charm_unit_test #744 ceph-next for gnuoy mp246170
    UNIT OK: passed

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

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

charm_lint_check #715 ceph-next for gnuoy mp246170
    LINT OK: passed

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

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

charm_amulet_test #900 ceph-next for gnuoy mp246170
    AMULET OK: passed

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

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

LGTM +1

review: Approve
Revision history for this message
Ryan Beisner (1chb1n) wrote :

P, T, U & J deploy tests fail with:

http://10.245.162.77:8080/view/Dashboard%3A%20Deploy/job/deploy_with_deployer/1213/artifact/

02:07:59 2015-01-13 02:07:59 [DEBUG] deployer.import: Waiting for relation convergence 60s
02:08:59 2015-01-13 02:09:00 [ERROR] deployer.env: The following units had errors:
02:08:59 unit: ceph/2: machine: 4 agent-state: error details: hook failed: "client-relation-changed"
02:08:59 unit: ceph/1: machine: 3 agent-state: error details: hook failed: "client-relation-changed"
02:08:59 unit: ceph/0: machine: 2 agent-state: error details: hook failed: "client-relation-changed"
02:08:59 2015-01-13 02:09:00 [INFO] deployer.cli: Deployment stopped. run time: 560.19

2015-01-13 02:07:56 INFO juju.worker.uniter uniter.go:480 running "client-relation-changed" hook
2015-01-13 02:07:56 INFO client-relation-changed Traceback (most recent call last):
2015-01-13 02:07:56 INFO client-relation-changed File "/var/lib/juju/agents/unit-ceph-0/charm/hooks/client-relation-changed", line 337, in <module>
2015-01-13 02:07:56 INFO client-relation-changed hooks.execute(sys.argv)
2015-01-13 02:07:56 INFO client-relation-changed File "/var/lib/juju/agents/unit-ceph-0/charm/hooks/charmhelpers/core/hookenv.py", line 528, in execute
2015-01-13 02:07:56 INFO client-relation-changed self._hooks[hook_name]()
2015-01-13 02:07:56 INFO client-relation-changed File "/var/lib/juju/agents/unit-ceph-0/charm/hooks/client-relation-changed", line 304, in client_relation_changed
2015-01-13 02:07:56 INFO client-relation-changed settings = relation_get(rid=relid)
2015-01-13 02:07:56 INFO client-relation-changed NameError: global name 'relid' is not defined
2015-01-13 02:07:56 ERROR juju.worker.uniter uniter.go:486 hook failed: exit status 1

review: Needs Fixing
Revision history for this message
Liam Young (gnuoy) wrote :

I think those errors are fixed by r96

Revision history for this message
Liam Young (gnuoy) wrote :
Revision history for this message
Ryan Beisner (1chb1n) wrote :

P, T & U deploy tests are all happy!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'hooks/hooks.py'
--- hooks/hooks.py 2015-01-12 12:03:58 +0000
+++ hooks/hooks.py 2015-01-13 10:32:17 +0000
@@ -306,24 +306,21 @@
306 'ceph-public-address': get_public_addr()}306 'ceph-public-address': get_public_addr()}
307 relation_set(relation_id=relid,307 relation_set(relation_id=relid,
308 relation_settings=data)308 relation_settings=data)
309
310 client_relation_changed(relid=relid)
311 else:309 else:
312 log('mon cluster not in quorum - deferring key provision')310 log('mon cluster not in quorum - deferring key provision')
313311
314312
315@hooks.hook('client-relation-changed')313@hooks.hook('client-relation-changed')
316def client_relation_changed(relid=None):314def client_relation_changed():
317 """Process broker requests from ceph client relations."""315 """Process broker requests from ceph client relations."""
318 if ceph.is_quorum():316 if ceph.is_quorum():
319 settings = relation_get(rid=relid)317 settings = relation_get()
320 if 'broker_req' in settings:318 if 'broker_req' in settings:
321 if not ceph.is_leader():319 if not ceph.is_leader():
322 log("Not leader - ignoring broker request", level=DEBUG)320 log("Not leader - ignoring broker request", level=DEBUG)
323 else:321 else:
324 rsp = process_requests(settings['broker_req'])322 rsp = process_requests(settings['broker_req'])
325 relation_set(relation_id=relid,323 relation_set(relation_settings={'broker_rsp': rsp})
326 relation_settings={'broker_rsp': rsp})
327 else:324 else:
328 log('mon cluster not in quorum', level=DEBUG)325 log('mon cluster not in quorum', level=DEBUG)
329326

Subscribers

People subscribed via source and target branches