Merge lp://qastaging/~astara-drivers/charms/trusty/glance/api-ready-rebase into lp://qastaging/~openstack-charmers-archive/charms/trusty/glance/next

Proposed by Adam Gandelman
Status: Needs review
Proposed branch: lp://qastaging/~astara-drivers/charms/trusty/glance/api-ready-rebase
Merge into: lp://qastaging/~openstack-charmers-archive/charms/trusty/glance/next
Diff against target: 229 lines (+82/-5)
4 files modified
hooks/glance_relations.py (+17/-0)
hooks/glance_utils.py (+5/-0)
unit_tests/test_glance_relations.py (+43/-3)
unit_tests/test_glance_utils.py (+17/-2)
To merge this branch: bzr merge lp://qastaging/~astara-drivers/charms/trusty/glance/api-ready-rebase
Reviewer Review Type Date Requested Status
Adam Gandelman (community) Needs Resubmitting
James Page Needs Fixing
Review via email: mp+284958@code.qastaging.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 #121 glance-next for gandelman-a mp284958
    UNIT FAIL: unit-test failed

UNIT Results (max last 2 lines):
make: *** [test] Error 1
ERROR:root:Make target returned non-zero.

Full unit test output: http://paste.ubuntu.com/15002364/
Build: http://10.245.162.36:8080/job/charm_unit_test/121/

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

charm_lint_check #137 glance-next for gandelman-a mp284958
    LINT OK: passed

Build: http://10.245.162.36:8080/job/charm_lint_check/137/

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

charm_amulet_test #13 glance-next for gandelman-a mp284958
    AMULET OK: passed

Build: http://10.245.162.36:8080/job/charm_amulet_test/13/

Revision history for this message
James Page (james-page) wrote :

Hi Adam

I'm seeing:

==============================
Failed 1 tests - output below:
==============================

unit_tests.test_glance_relations.GlanceRelationTests.test_keystone_changed_with_object_store_relation
-----------------------------------------------------------------------------------------------------

Captured traceback:
~~~~~~~~~~~~~~~~~~~
    Traceback (most recent call last):
      File "/home/jamespage/src/charms/landing/glance/.tox/py27/local/lib/python2.7/site-packages/mock/mock.py", line 1305, in patched
        return func(*args, **keywargs)
      File "/home/jamespage/src/charms/landing/glance/unit_tests/test_glance_relations.py", line 538, in test_keystone_changed_with_object_store_relation
        relations.keystone_changed()
      File "/home/jamespage/src/charms/landing/glance/hooks/charmhelpers/core/host.py", line 435, in wrapped_f
        f(*args, **kwargs)
      File "/home/jamespage/src/charms/landing/glance/hooks/glance_relations.py", line 347, in keystone_changed
        image_service_joined(rid)
      File "/home/jamespage/src/charms/landing/glance/hooks/glance_relations.py", line 227, in image_service_joined
        "{}:9292".format(canonical_url(CONFIGS, INTERNAL))
      File "/home/jamespage/src/charms/landing/glance/hooks/charmhelpers/contrib/openstack/ip.py", line 64, in canonical_url
        address = resolve_address(endpoint_type)
      File "/home/jamespage/src/charms/landing/glance/hooks/charmhelpers/contrib/openstack/ip.py", line 117, in resolve_address
        resolved_address = _get_address_override(endpoint_type)
      File "/home/jamespage/src/charms/landing/glance/hooks/charmhelpers/contrib/openstack/ip.py", line 99, in _get_address_override
        addr_override = config(override_key)
      File "/home/jamespage/src/charms/landing/glance/charmhelpers/core/hookenv.py", line 74, in wrapper
        res = func(*args, **kwargs)
      File "/home/jamespage/src/charms/landing/glance/charmhelpers/core/hookenv.py", line 340, in config
        subprocess.check_output(config_cmd_line).decode('UTF-8'))
      File "/usr/lib/python2.7/subprocess.py", line 566, in check_output
        process = Popen(stdout=PIPE, *popenargs, **kwargs)
      File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
        errread, errwrite)
      File "/usr/lib/python2.7/subprocess.py", line 1335, in _execute_child
        raise child_exception
    OSError: [Errno 2] No such file or directory

Looks like canonical_url will need mocking out as well for this test.

review: Needs Fixing
Revision history for this message
James Page (james-page) wrote :

Please set back to needs review once you've got that final test failure sorted out - other than that looks great to me...

Revision history for this message
Adam Gandelman (gandelman-a) wrote :

Thanks, james. Branch updated

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

charm_lint_check #1555 glance-next for gandelman-a mp284958
    LINT OK: passed

Build: http://10.245.162.36:8080/job/charm_lint_check/1555/

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

charm_unit_test #1303 glance-next for gandelman-a mp284958
    UNIT OK: passed

Build: http://10.245.162.36:8080/job/charm_unit_test/1303/

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

charm_amulet_test #550 glance-next for gandelman-a mp284958
    AMULET OK: passed

Build: http://10.245.162.36:8080/job/charm_amulet_test/550/

Unmerged revisions

168. By Adam Gandelman

Fix unit test error

Make sure image_service_joined is mocked.

Also add a missing mock that causes test_glance_utils to fail when run locally.

167. By Adam Gandelman

Remove unrelated change

166. By Adam Gandelman

Advertise API readiness

Adds a 'glance-api-ready' key to the image service relation that lets
remote services know the glance API is ready to be consumed, based on
complete contexts of required interfaces.

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