[openstack-dev] Unit test failed on glanceclient trunk

lzy.dev at gmail.com lzy.dev at gmail.com
Mon May 20 14:28:22 UTC 2013


Hi all,

For now, the latest change for python-glanceclient is this one:
https://review.openstack.org/#/c/23184/ , but once I pull it into my
workspace, the unit test will be failed. I saw jekines verified that
change before zuul merge it, but why I cann't pass it in my env?
Tatyana, can you give some input here? ut output as following:

GLOB sdist-make: /home/lzy/workspace/openstack-org/python-glanceclient/setup.py
py27 inst-nodeps:
/home/lzy/workspace/openstack-org/python-glanceclient/.tox/dist/python-glanceclient-0.9.0.19.g8451a94.zip
py27 runtests: commands[0]
running testr
Request returned failure status.
Request returned failure status.
Request returned failure status.
Request returned failure status.
Request returned failure status.
running=${PYTHON:-python} -m subunit.run discover -t ./ ./tests --list
running=${PYTHON:-python} -m subunit.run discover -t ./ ./tests
--load-list /tmp/tmpEx3nzN
running=${PYTHON:-python} -m subunit.run discover -t ./ ./tests
--load-list /tmp/tmpkHfLID
running=${PYTHON:-python} -m subunit.run discover -t ./ ./tests
--load-list /tmp/tmpSxqMqB
running=${PYTHON:-python} -m subunit.run discover -t ./ ./tests
--load-list /tmp/tmpCYnKzj
======================================================================
FAIL: tests.v1.test_shell.ShellInvalidEndpointTest.test_image_create_invalid_endpoint
tags: worker-3
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/lzy/workspace/openstack-org/python-glanceclient/tests/v1/test_shell.py",
line 79, in test_image_create_invalid_endpoint
    self.run_command, 'image-create')
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py",
line 394, in assertRaises
    self.assertThat(our_callable, matcher)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py",
line 406, in assertThat
    mismatch = matcher.match(matchee)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_exception.py",
line 99, in match
    mismatch = self.exception_matcher.match(exc_info)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_higherorder.py",
line 61, in match
    mismatch = matcher.match(matchee)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py",
line 386, in match
    reraise(*matchee)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_exception.py",
line 92, in match
    result = matchee()
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py",
line 867, in __call__
    return self._callable_object(*self._args, **self._kwargs)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/tests/v1/test_shell.py",
line 50, in run_command
    self.shell.main(cmd.split())
  File "/home/lzy/workspace/openstack-org/python-glanceclient/glanceclient/shell.py",
line 440, in main
    args.func(client, args)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/glanceclient/v1/shell.py",
line 230, in do_image_create
    image = gc.images.create(**fields)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/glanceclient/v1/images.py",
line 250, in create
    'POST', '/v1/images', headers=hdrs, body=image_data)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/glanceclient/common/http.py",
line 260, in raw_request
    return self._http_request(url, method, **kwargs)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/glanceclient/common/http.py",
line 221, in _http_request
    raise exc.from_response(resp, body_str)
HTTPException: <html>
<head><title>411 Length Required</title></head>
<body bgcolor="white">
<center><h1>411 Length Required</h1></center>
<hr><center>nginx/0.8.53</center>
</body>
</html>
 (HTTP N/A)
======================================================================
FAIL: tests.v1.test_shell.ShellInvalidEndpointTest.test_image_delete_invalid_endpoint
tags: worker-3
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/lzy/workspace/openstack-org/python-glanceclient/tests/v1/test_shell.py",
line 84, in test_image_delete_invalid_endpoint
    self.run_command, 'image-delete <fake>')
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py",
line 394, in assertRaises
    self.assertThat(our_callable, matcher)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py",
line 406, in assertThat
    mismatch = matcher.match(matchee)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_exception.py",
line 99, in match
    mismatch = self.exception_matcher.match(exc_info)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_higherorder.py",
line 61, in match
    mismatch = matcher.match(matchee)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py",
line 386, in match
    reraise(*matchee)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_exception.py",
line 92, in match
    result = matchee()
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py",
line 867, in __call__
    return self._callable_object(*self._args, **self._kwargs)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/tests/v1/test_shell.py",
line 50, in run_command
    self.shell.main(cmd.split())
  File "/home/lzy/workspace/openstack-org/python-glanceclient/glanceclient/shell.py",
line 440, in main
    args.func(client, args)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/glanceclient/v1/shell.py",
line 308, in do_image_delete
    image = utils.find_resource(gc.images, args_image)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/glanceclient/common/utils.py",
line 84, in find_resource
    matches = list(manager.list(filters={'name': name_or_id}))
  File "/home/lzy/workspace/openstack-org/python-glanceclient/glanceclient/v1/images.py",
line 149, in paginate
    images = self._list(url, "images")
  File "/home/lzy/workspace/openstack-org/python-glanceclient/glanceclient/common/base.py",
line 58, in _list
    data = body[response_key]
TypeError: 'NoneType' object has no attribute '__getitem__'
======================================================================
FAIL: tests.v1.test_shell.ShellInvalidEndpointTest.test_image_show_invalid_endpoint
tags: worker-3
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/lzy/workspace/openstack-org/python-glanceclient/tests/v1/test_shell.py",
line 113, in test_image_show_invalid_endpoint
    self.run_command, 'image-show --human-readable <IMAGE_ID>')
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py",
line 394, in assertRaises
    self.assertThat(our_callable, matcher)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py",
line 406, in assertThat
    mismatch = matcher.match(matchee)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_exception.py",
line 99, in match
    mismatch = self.exception_matcher.match(exc_info)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_higherorder.py",
line 61, in match
    mismatch = matcher.match(matchee)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py",
line 386, in match
    reraise(*matchee)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_exception.py",
line 92, in match
    result = matchee()
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py",
line 867, in __call__
    return self._callable_object(*self._args, **self._kwargs)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/tests/v1/test_shell.py",
line 50, in run_command
    self.shell.main(cmd.split())
  File "/home/lzy/workspace/openstack-org/python-glanceclient/glanceclient/shell.py",
line 440, in main
    args.func(client, args)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/glanceclient/v1/shell.py",
line 144, in do_image_show
    image_id = utils.find_resource(gc.images, args.image).id
  File "/home/lzy/workspace/openstack-org/python-glanceclient/glanceclient/common/utils.py",
line 84, in find_resource
    matches = list(manager.list(filters={'name': name_or_id}))
  File "/home/lzy/workspace/openstack-org/python-glanceclient/glanceclient/v1/images.py",
line 149, in paginate
    images = self._list(url, "images")
  File "/home/lzy/workspace/openstack-org/python-glanceclient/glanceclient/common/base.py",
line 58, in _list
    data = body[response_key]
TypeError: 'NoneType' object has no attribute '__getitem__'
======================================================================
FAIL: tests.v1.test_shell.ShellInvalidEndpointTest.test_image_show_invalid_endpoint_legacy
tags: worker-3
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/lzy/workspace/openstack-org/python-glanceclient/tests/v1/test_shell.py",
line 108, in test_image_show_invalid_endpoint_legacy
    exc.InvalidEndpoint, self.run_command, 'show image')
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py",
line 394, in assertRaises
    self.assertThat(our_callable, matcher)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py",
line 406, in assertThat
    mismatch = matcher.match(matchee)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_exception.py",
line 99, in match
    mismatch = self.exception_matcher.match(exc_info)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_higherorder.py",
line 61, in match
    mismatch = matcher.match(matchee)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py",
line 386, in match
    reraise(*matchee)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_exception.py",
line 92, in match
    result = matchee()
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py",
line 867, in __call__
    return self._callable_object(*self._args, **self._kwargs)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/tests/v1/test_shell.py",
line 50, in run_command
    self.shell.main(cmd.split())
  File "/home/lzy/workspace/openstack-org/python-glanceclient/glanceclient/shell.py",
line 440, in main
    args.func(client, args)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/glanceclient/v1/legacy_shell.py",
line 250, in do_show
    print_image_formatted(gc, image)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/glanceclient/v1/legacy_shell.py",
line 81, in print_image_formatted
    print "URI: %s://%s/v1/images/%s" % (uri_parts.scheme, hostbase, image.id)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/glanceclient/common/base.py",
line 94, in __getattr__
    self.get()
  File "/home/lzy/workspace/openstack-org/python-glanceclient/glanceclient/common/base.py",
line 113, in get
    new = self.manager.get(self.id)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/glanceclient/common/base.py",
line 97, in __getattr__
    raise AttributeError(k)
AttributeError: id
======================================================================
FAIL: tests.v1.test_shell.ShellInvalidEndpointTest.test_image_update_invalid_endpoint_legacy
tags: worker-3
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/lzy/workspace/openstack-org/python-glanceclient/tests/v1/test_shell.py",
line 69, in test_image_update_invalid_endpoint_legacy
    self.run_command, 'update {"name":""test}')
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py",
line 394, in assertRaises
    self.assertThat(our_callable, matcher)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py",
line 406, in assertThat
    mismatch = matcher.match(matchee)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_exception.py",
line 99, in match
    mismatch = self.exception_matcher.match(exc_info)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_higherorder.py",
line 61, in match
    mismatch = matcher.match(matchee)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py",
line 386, in match
    reraise(*matchee)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_exception.py",
line 92, in match
    result = matchee()
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py",
line 867, in __call__
    return self._callable_object(*self._args, **self._kwargs)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/tests/v1/test_shell.py",
line 50, in run_command
    self.shell.main(cmd.split())
  File "/home/lzy/workspace/openstack-org/python-glanceclient/glanceclient/shell.py",
line 440, in main
    args.func(client, args)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/glanceclient/v1/legacy_shell.py",
line 217, in do_update
    image = gc.images.update(args.id, **image_meta)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/glanceclient/v1/images.py",
line 288, in update
    'PUT', url, headers=hdrs, body=image_data)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/glanceclient/common/http.py",
line 260, in raw_request
    return self._http_request(url, method, **kwargs)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/glanceclient/common/http.py",
line 221, in _http_request
    raise exc.from_response(resp, body_str)
HTTPException: <html>
<head><title>411 Length Required</title></head>
<body bgcolor="white">
<center><h1>411 Length Required</h1></center>
<hr><center>nginx/0.8.53</center>
</body>
</html>
 (HTTP N/A)
======================================================================
FAIL: tests.v1.test_shell.ShellInvalidEndpointTest.test_member_delete_invalid_endpoint
tags: worker-3
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/lzy/workspace/openstack-org/python-glanceclient/tests/v1/test_shell.py",
line 130, in test_member_delete_invalid_endpoint
    'member-delete  <IMAGE_ID> <TENANT_ID>')
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py",
line 394, in assertRaises
    self.assertThat(our_callable, matcher)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py",
line 406, in assertThat
    mismatch = matcher.match(matchee)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_exception.py",
line 99, in match
    mismatch = self.exception_matcher.match(exc_info)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_higherorder.py",
line 61, in match
    mismatch = matcher.match(matchee)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py",
line 386, in match
    reraise(*matchee)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_exception.py",
line 92, in match
    result = matchee()
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py",
line 867, in __call__
    return self._callable_object(*self._args, **self._kwargs)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/tests/v1/test_shell.py",
line 50, in run_command
    self.shell.main(cmd.split())
  File "/home/lzy/workspace/openstack-org/python-glanceclient/glanceclient/shell.py",
line 440, in main
    args.func(client, args)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/glanceclient/v1/shell.py",
line 365, in do_member_delete
    image_id = utils.find_resource(gc.images, args.image).id
  File "/home/lzy/workspace/openstack-org/python-glanceclient/glanceclient/common/utils.py",
line 84, in find_resource
    matches = list(manager.list(filters={'name': name_or_id}))
  File "/home/lzy/workspace/openstack-org/python-glanceclient/glanceclient/v1/images.py",
line 149, in paginate
    images = self._list(url, "images")
  File "/home/lzy/workspace/openstack-org/python-glanceclient/glanceclient/common/base.py",
line 58, in _list
    data = body[response_key]
TypeError: 'NoneType' object has no attribute '__getitem__'
======================================================================
FAIL: tests.v1.test_shell.ShellInvalidEndpointTest.test_member_images_invalid_endpoint_legacy
tags: worker-3
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/lzy/workspace/openstack-org/python-glanceclient/tests/v1/test_shell.py",
line 118, in test_member_images_invalid_endpoint_legacy
    self.run_command, 'member-images member_id')
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py",
line 394, in assertRaises
    self.assertThat(our_callable, matcher)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py",
line 406, in assertThat
    mismatch = matcher.match(matchee)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_exception.py",
line 99, in match
    mismatch = self.exception_matcher.match(exc_info)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_higherorder.py",
line 61, in match
    mismatch = matcher.match(matchee)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py",
line 386, in match
    reraise(*matchee)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_exception.py",
line 92, in match
    result = matchee()
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py",
line 867, in __call__
    return self._callable_object(*self._args, **self._kwargs)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/tests/v1/test_shell.py",
line 50, in run_command
    self.shell.main(cmd.split())
  File "/home/lzy/workspace/openstack-org/python-glanceclient/glanceclient/shell.py",
line 440, in main
    args.func(client, args)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/glanceclient/v1/legacy_shell.py",
line 367, in do_member_images
    members = gc.image_members.list(member=args.member_id)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/glanceclient/v1/image_members.py",
line 53, in list
    out.extend(self._list_by_member(member))
  File "/home/lzy/workspace/openstack-org/python-glanceclient/glanceclient/v1/image_members.py",
line 75, in _list_by_member
    for member in body['shared_images']:
TypeError: 'NoneType' object has no attribute '__getitem__'
======================================================================
FAIL: tests.v1.test_shell.ShellInvalidEndpointTest.test_member_replace_invalid_endpoint
tags: worker-3
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/lzy/workspace/openstack-org/python-glanceclient/tests/v1/test_shell.py",
line 104, in test_member_replace_invalid_endpoint
    self.run_command, 'members-replace image_id member_id')
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py",
line 394, in assertRaises
    self.assertThat(our_callable, matcher)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py",
line 406, in assertThat
    mismatch = matcher.match(matchee)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_exception.py",
line 99, in match
    mismatch = self.exception_matcher.match(exc_info)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_higherorder.py",
line 61, in match
    mismatch = matcher.match(matchee)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py",
line 386, in match
    reraise(*matchee)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_exception.py",
line 92, in match
    result = matchee()
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py",
line 867, in __call__
    return self._callable_object(*self._args, **self._kwargs)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/tests/v1/test_shell.py",
line 50, in run_command
    self.shell.main(cmd.split())
  File "/home/lzy/workspace/openstack-org/python-glanceclient/glanceclient/shell.py",
line 440, in main
    args.func(client, args)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/glanceclient/v1/legacy_shell.py",
line 395, in do_members_replace
    for member in gc.image_members.list(image=args.image_id):
  File "/home/lzy/workspace/openstack-org/python-glanceclient/glanceclient/v1/image_members.py",
line 51, in list
    out.extend(self._list_by_image(image))
  File "/home/lzy/workspace/openstack-org/python-glanceclient/glanceclient/v1/image_members.py",
line 65, in _list_by_image
    for member in body['members']:
TypeError: 'NoneType' object has no attribute '__getitem__'
======================================================================
FAIL: tests.v1.test_shell.ShellInvalidEndpointTest.test_members_list_invalid_endpoint
tags: worker-3
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/lzy/workspace/openstack-org/python-glanceclient/tests/v1/test_shell.py",
line 99, in test_members_list_invalid_endpoint
    self.run_command, 'member-list --image-id fake')
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py",
line 394, in assertRaises
    self.assertThat(our_callable, matcher)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py",
line 406, in assertThat
    mismatch = matcher.match(matchee)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_exception.py",
line 99, in match
    mismatch = self.exception_matcher.match(exc_info)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_higherorder.py",
line 61, in match
    mismatch = matcher.match(matchee)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py",
line 386, in match
 No handlers could be found for logger "glanceclient.common.http"
   reraise(*matchee)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_exception.py",
line 92, in match
    result = matchee()
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py",
line 867, in __call__
    return self._callable_object(*self._args, **self._kwargs)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/tests/v1/test_shell.py",
line 50, in run_command
    self.shell.main(cmd.split())
  File "/home/lzy/workspace/openstack-org/python-glanceclient/glanceclient/shell.py",
line 440, in main
    args.func(client, args)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/glanceclient/v1/shell.py",
line 342, in do_member_list
    members = gc.image_members.list(**kwargs)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/glanceclient/v1/image_members.py",
line 51, in list
    out.extend(self._list_by_image(image))
  File "/home/lzy/workspace/openstack-org/python-glanceclient/glanceclient/v1/image_members.py",
line 65, in _list_by_image
    for member in body['members']:
TypeError: 'NoneType' object has no attribute '__getitem__'
======================================================================
FAIL: process-returncode
tags: worker-3
----------------------------------------------------------------------
Binary content:
  traceback (test/plain; charset="utf8")
======================================================================
FAIL: tests.v1.test_legacy_shell.LegacyShellV1Test.test_do_update_invalid_endpoint
tags: worker-3
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/lzy/workspace/openstack-org/python-glanceclient/tests/v1/test_legacy_shell.py",
line 259, in test_do_update_invalid_endpoint
    exc.InvalidEndpoint, test_shell.do_update, gc, args)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py",
line 394, in assertRaises
    self.assertThat(our_callable, matcher)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py",
line 406, in assertThat
    mismatch = matcher.match(matchee)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_exception.py",
line 99, in match
    mismatch = self.exception_matcher.match(exc_info)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_higherorder.py",
line 61, in match
    mismatch = matcher.match(matchee)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py",
line 386, in match
    reraise(*matchee)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_exception.py",
line 92, in match
    result = matchee()
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py",
line 867, in __call__
    return self._callable_object(*self._args, **self._kwargs)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/glanceclient/v1/legacy_shell.py",
line 217, in do_update
    image = gc.images.update(args.id, **image_meta)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/glanceclient/v1/images.py",
line 288, in update
    'PUT', url, headers=hdrs, body=image_data)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/glanceclient/common/http.py",
line 260, in raw_request
    return self._http_request(url, method, **kwargs)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/glanceclient/common/http.py",
line 221, in _http_request
    raise exc.from_response(resp, body_str)
HTTPException: <html>
<head><title>411 Length Required</title></head>
<body bgcolor="white">
<center><h1>411 Length Required</h1></center>
<hr><center>nginx/0.8.53</center>
</body>
</html>
 (HTTP N/A)
======================================================================
FAIL: tests.v1.test_shell.ShellInvalidEndpointTest.test_image_members_invalid_endpoint
tags: worker-3
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/lzy/workspace/openstack-org/python-glanceclient/tests/v1/test_shell.py",
line 94, in test_image_members_invalid_endpoint
    self.run_command, 'image-members fake_id')
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py",
line 394, in assertRaises
    self.assertThat(our_callable, matcher)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py",
line 406, in assertThat
    mismatch = matcher.match(matchee)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_exception.py",
line 99, in match
    mismatch = self.exception_matcher.match(exc_info)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_higherorder.py",
line 61, in match
    mismatch = matcher.match(matchee)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py",
line 386, in match
    reraise(*matchee)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_exception.py",
line 92, in match
    result = matchee()
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py",
line 867, in __call__
    return self._callable_object(*self._args, **self._kwargs)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/tests/v1/test_shell.py",
line 50, in run_command
    self.shell.main(cmd.split())
  File "/home/lzy/workspace/openstack-org/python-glanceclient/glanceclient/shell.py",
line 440, in main
    args.func(client, args)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/glanceclient/v1/legacy_shell.py",
line 346, in do_image_members
    members = gc.image_members.list(image=args.image_id)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/glanceclient/v1/image_members.py",
line 51, in list
    out.extend(self._list_by_image(image))
  File "/home/lzy/workspace/openstack-org/python-glanceclient/glanceclient/v1/image_members.py",
line 65, in _list_by_image
    for member in body['members']:
TypeError: 'NoneType' object has no attribute '__getitem__'
======================================================================
FAIL: process-returncode
tags: worker-3
----------------------------------------------------------------------
Binary content:
  traceback (test/plain; charset="utf8")
======================================================================
FAIL: process-returncode
tags: worker-3
----------------------------------------------------------------------
Binary content:
  traceback (test/plain; charset="utf8")
======================================================================
FAIL: tests.v1.test_shell.ShellInvalidEndpointTest.test_image_details_invalid_endpoint_legacy
tags: worker-3
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/lzy/workspace/openstack-org/python-glanceclient/tests/v1/test_shell.py",
line 64, in test_image_details_invalid_endpoint_legacy
    exc.InvalidEndpoint, self.run_command, 'details')
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py",
line 394, in assertRaises
    self.assertThat(our_callable, matcher)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py",
line 406, in assertThat
    mismatch = matcher.match(matchee)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_exception.py",
line 99, in match
    mismatch = self.exception_matcher.match(exc_info)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_higherorder.py",
line 61, in match
    mismatch = matcher.match(matchee)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py",
line 386, in match
    reraise(*matchee)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_exception.py",
line 92, in match
    result = matchee()
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py",
line 867, in __call__
    return self._callable_object(*self._args, **self._kwargs)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/tests/v1/test_shell.py",
line 50, in run_command
    self.shell.main(cmd.split())
  File "/home/lzy/workspace/openstack-org/python-glanceclient/glanceclient/shell.py",
line 440, in main
    args.func(client, args)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/glanceclient/v1/legacy_shell.py",
line 314, in do_details
    for i, image in enumerate(images):
  File "/home/lzy/workspace/openstack-org/python-glanceclient/glanceclient/v1/images.py",
line 149, in paginate
    images = self._list(url, "images")
  File "/home/lzy/workspace/openstack-org/python-glanceclient/glanceclient/common/base.py",
line 58, in _list
    data = body[response_key]
TypeError: 'NoneType' object has no attribute '__getitem__'
======================================================================
FAIL: tests.v1.test_shell.ShellInvalidEndpointTest.test_image_download_invalid_endpoint
tags: worker-3
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/lzy/workspace/openstack-org/python-glanceclient/tests/v1/test_shell.py",
line 89, in test_image_download_invalid_endpoint
    self.run_command, 'image-download <fake>')
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py",
line 394, in assertRaises
    self.assertThat(our_callable, matcher)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py",
line 406, in assertThat
    mismatch = matcher.match(matchee)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_exception.py",
line 99, in match
    mismatch = self.exception_matcher.match(exc_info)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_higherorder.py",
line 61, in match
    mismatch = matcher.match(matchee)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py",
line 386, in match
    reraise(*matchee)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_exception.py",
line 92, in match
    result = matchee()
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py",
line 867, in __call__
    return self._callable_object(*self._args, **self._kwargs)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/tests/v1/test_shell.py",
line 50, in run_command
    self.shell.main(cmd.split())
  File "/home/lzy/workspace/openstack-org/python-glanceclient/glanceclient/shell.py",
line 440, in main
    args.func(client, args)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/glanceclient/v1/shell.py",
line 156, in do_image_download
    image = utils.find_resource(gc.images, args.image)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/glanceclient/common/utils.py",
line 84, in find_resource
    matches = list(manager.list(filters={'name': name_or_id}))
  File "/home/lzy/workspace/openstack-org/python-glanceclient/glanceclient/v1/images.py",
line 149, in paginate
    images = self._list(url, "images")
  File "/home/lzy/workspace/openstack-org/python-glanceclient/glanceclient/common/base.py",
line 58, in _list
    data = body[response_key]
TypeError: 'NoneType' object has no attribute '__getitem__'
======================================================================
FAIL: tests.v1.test_shell.ShellInvalidEndpointTest.test_image_index_invalid_endpoint_legacy
tags: worker-3
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/lzy/workspace/openstack-org/python-glanceclient/tests/v1/test_shell.py",
line 74, in test_image_index_invalid_endpoint_legacy
    self.run_command, 'index')
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py",
line 394, in assertRaises
    self.assertThat(our_callable, matcher)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py",
line 406, in assertThat
    mismatch = matcher.match(matchee)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_exception.py",
line 99, in match
    mismatch = self.exception_matcher.match(exc_info)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_higherorder.py",
line 61, in match
    mismatch = matcher.match(matchee)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py",
line 386, in match
    reraise(*matchee)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_exception.py",
line 92, in match
    result = matchee()
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py",
line 867, in __call__
    return self._callable_object(*self._args, **self._kwargs)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/tests/v1/test_shell.py",
line 50, in run_command
    self.shell.main(cmd.split())
  File "/home/lzy/workspace/openstack-org/python-glanceclient/glanceclient/shell.py",
line 440, in main
    args.func(client, args)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/glanceclient/v1/legacy_shell.py",
line 294, in do_index
    for image in images:
  File "/home/lzy/workspace/openstack-org/python-glanceclient/glanceclient/v1/images.py",
line 149, in paginate
    images = self._list(url, "images")
  File "/home/lzy/workspace/openstack-org/python-glanceclient/glanceclient/common/base.py",
line 58, in _list
    data = body[response_key]
TypeError: 'NoneType' object has no attribute '__getitem__'
======================================================================
FAIL: tests.v1.test_shell.ShellInvalidEndpointTest.test_image_list_invalid_endpoint
tags: worker-3
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/lzy/workspace/openstack-org/python-glanceclient/tests/v1/test_shell.py",
line 60, in test_image_list_invalid_endpoint
    exc.InvalidEndpoint, self.run_command, 'image-list')
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py",
line 394, in assertRaises
    self.assertThat(our_callable, matcher)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py",
line 406, in assertThat
    mismatch = matcher.match(matchee)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_exception.py",
line 99, in Request returned failure status.
Request returned failure status.
Request returned failure status.
Request returned failure status.
Request returned failure status.
Request returned failure status.
match
    mismatch = self.exception_matcher.match(exc_info)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_higherorder.py",
line 61, in match
    mismatch = matcher.match(matchee)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py",
line 386, in match
    reraise(*matchee)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_exception.py",
line 92, in match
    result = matchee()
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py",
line 867, in __call__
    return self._callable_object(*self._args, **self._kwargs)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/tests/v1/test_shell.py",
line 50, in run_command
    self.shell.main(cmd.split())
  File "/home/lzy/workspace/openstack-org/python-glanceclient/glanceclient/shell.py",
line 440, in main
    args.func(client, args)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/glanceclient/v1/shell.py",
line 97, in do_image_list
    utils.print_list(images, columns)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/glanceclient/common/utils.py",
line 46, in print_list
    for o in objs:
  File "/home/lzy/workspace/openstack-org/python-glanceclient/glanceclient/v1/images.py",
line 149, in paginate
    images = self._list(url, "images")
  File "/home/lzy/workspace/openstack-org/python-glanceclient/glanceclient/common/base.py",
line 58, in _list
    data = body[response_key]
TypeError: 'NoneType' object has no attribute '__getitem__'
======================================================================
FAIL: tests.v1.test_shell.ShellInvalidEndpointTest.test_member_add_invalid_endpoint
tags: worker-3
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/lzy/workspace/openstack-org/python-glanceclient/tests/v1/test_shell.py",
line 136, in test_member_add_invalid_endpoint
    'member-add  <IMAGE_ID> <TENANT_ID>')
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py",
line 394, in assertRaises
    self.assertThat(our_callable, matcher)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py",
line 406, in assertThat
    mismatch = matcher.match(matchee)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_exception.py",
line 99, in match
    mismatch = self.exception_matcher.match(exc_info)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_higherorder.py",
line 61, in match
    mismatch = matcher.match(matchee)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py",
line 386, in match
    reraise(*matchee)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_exception.py",
line 92, in match
    result = matchee()
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py",
line 867, in __call__
    return self._callable_object(*self._args, **self._kwargs)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/tests/v1/test_shell.py",
line 50, in run_command
    self.shell.main(cmd.split())
  File "/home/lzy/workspace/openstack-org/python-glanceclient/glanceclient/shell.py",
line 440, in main
    args.func(client, args)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/glanceclient/v1/legacy_shell.py",
line 414, in do_member_add
    gc.image_members.create(args.image_id, args.member_id, args.can_share)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/glanceclient/v1/image_members.py",
line 87, in create
    self._update(url, body=body)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/glanceclient/common/base.py",
line 65, in _update
    resp, body = self.api.json_request('PUT', url, body=body)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/glanceclient/common/http.py",
line 237, in json_request
    resp, body_iter = self._http_request(url, method, **kwargs)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/glanceclient/common/http.py",
line 221, in _http_request
    raise exc.from_response(resp, body_str)
HTTPMethodNotAllowed: <html>
<head><title>405 Not Allowed</title></head>
<body bgcolor="white">
<center><h1>405 Not Allowed</h1></center>
<hr><center>nginx/0.8.53</center>
</body>
</html>
 (HTTP 405)
======================================================================
FAIL: tests.v1.test_shell.ShellInvalidEndpointTest.test_member_create_invalid_endpoint
tags: worker-3
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/lzy/workspace/openstack-org/python-glanceclient/tests/v1/test_shell.py",
line 124, in test_member_create_invalid_endpoint
    'member-create --can-share <IMAGE_ID> <TENANT_ID>')
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py",
line 394, in assertRaises
    self.assertThat(our_callable, matcher)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py",
line 406, in assertThat
    mismatch = matcher.match(matchee)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_exception.py",
line 99, in match
    mismatch = self.exception_matcher.match(exc_info)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_higherorder.py",
line 61, in match
    mismatch = matcher.match(matchee)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py",
line 386, in match
    reraise(*matchee)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_exception.py",
line 92, in match
    result = matchee()
  File "/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py",
line 867, in __call__
    return self._callable_object(*self._args, **self._kwargs)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/tests/v1/test_shell.py",
line 50, in run_command
    self.shell.main(cmd.split())
  File "/home/lzy/workspace/openstack-org/python-glanceclient/glanceclient/shell.py",
line 440, in main
    args.func(client, args)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/glanceclient/v1/shell.py",
line 355, in do_member_create
    image = utils.find_resource(gc.images, args.image)
  File "/home/lzy/workspace/openstack-org/python-glanceclient/glanceclient/common/utils.py",
line 84, in find_resource
    matches = list(manager.list(filters={'name': name_or_id}))
  File "/home/lzy/workspace/openstack-org/python-glanceclient/glanceclient/v1/images.py",
line 149, in paginate
    images = self._list(url, "images")
  File "/home/lzy/workspace/openstack-org/python-glanceclient/glanceclient/common/base.py",
line 58, in _list
    data = body[response_key]
TypeError: 'NoneType' object has no attribute '__getitem__'
======================================================================
FAIL: process-returncode
tags: worker-3
----------------------------------------------------------------------
Binary content:
  traceback (test/plain; charset="utf8")
Ran 145 tests in 5.211s (-4.831s)
FAILED (id=2, failures=21)
error: testr failed (1)
ERROR: InvocationError:
'/home/lzy/workspace/openstack-org/python-glanceclient/.tox/py27/bin/python
setup.py testr --testr-args='
___________________________________ summary ____________________________________
ERROR:   py27: commands failed


thanks,
Zhi Yan



More information about the OpenStack-dev mailing list