← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1361134] Re: run "nova evacuate" command, 'can't be encoded'error

 

** Changed in: ossa
       Status: New => Won't Fix

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1361134

Title:
  run "nova evacuate" command, 'can't be encoded'error

Status in OpenStack Image Registry and Delivery Service (Glance):
  New
Status in OpenStack Security Advisories:
  Won't Fix

Bug description:
  I have some trouble when run 'nova evacuate'command
  details:
  1.I have two hosts, host1 is controler and conpute services, host2 is only compute service
  2.stop the host2's compute service 
  3.run 'nova evacuate'command on the host1, return error
  the host1's compute log:

  | created                              | 2014-08-17T10:41:50Z                                                                                                                                                            |
  | fault                                | {"message": "<type 'NoneType'> can't be encoded", "code": 500, "details": "  File \"/usr/lib/python2.7/site-packages/nova/compute/manager.py\", line 305, in decorated_function |
  |                                      |     return function(self, context, *args, **kwargs)                                                                                                                             |
  |                                      |   File \"/usr/lib/python2.7/site-packages/nova/compute/manager.py\", line 2498, in rebuild_instance                                                                             |
  |                                      |     image_meta = _get_image_meta(context, image_ref)                                                                                                                            |
  |                                      |   File \"/usr/lib/python2.7/site-packages/nova/compute/manager.py\", line 432, in _get_image_meta                                                                               |
  |                                      |     return image_service.show(context, image_id)                                                                                                                                |
  |                                      |   File \"/usr/lib/python2.7/site-packages/nova/image/glance.py\", line 270, in show                                                                                             |
  |                                      |     image = self._client.call(context, 1, 'get', image_id)                                                                                                                      |
  |                                      |   File \"/usr/lib/python2.7/site-packages/nova/image/glance.py\", line 270, in show                                                                                             |
  |                                      |     image = self._client.call(context, 1, 'get', image_id)                                                                                                                      |
  |                                      |   File \"/usr/lib/python2.7/site-packages/nova/image/glance.py\", line 209, in call                                                                                             |
  |                                      |     return getattr(client.images, method)(*args, **kwargs)                                                                                                                      |
  |                                      |   File \"/usr/lib/python2.7/site-packages/glanceclient/v1/images.py\", line 114, in get                                                                                         |
  |                                      |     % urllib.quote(str(image_id)))                                                                                                                                              |
  |                                      |   File \"/usr/lib/python2.7/site-packages/glanceclient/common/http.py\", line 289, in raw_request                                                                               |
  |                                      |     return self._http_request(url, method, **kwargs)                                                                                                                            |
  |                                      |   File \"/usr/lib/python2.7/site-packages/glanceclient/common/http.py\", line 191, in _http_request                                                                             |
  |                                      |     kwargs['headers'] = self.encode_headers(kwargs['headers'])                                                                                                                  |
  |                                      |   File \"/usr/lib/python2.7/site-packages/glanceclient/common/http.py\", line 166, in encode_headers                                                                            |
  |                                      |     return dict([(to_str(h), to_str(v)) for h, v in headers.iteritems()])                                                                                                       |
  |                                      |   File \"/usr/lib/python2.7/site-packages/glanceclient/openstack/common/strutils.py\", line 137, in safe_encode                                                                 |
  |                                      |     raise TypeError(\"%s can't be encoded\" % type(text))                                                                                                                       |
  |                                      | ", "created": "2014-08-17T11:22:04Z"}                                                                                                                                           |
  | flavor                               | m1.tiny (1df8ba6d-6c91-493d-9602-219b769709f8)                                                                                                                                  |
  | hostId                               | 36ca539f1fd65bfb2a3f57ad6a6471b405f7065b5ff0f23ef0aa56a6                                                                                                                        |
  | id                                   | 5b413785-afdc-4d9e-8649-fe3596168b30                                                                                                                                            |
  | image                                | cirros (d9af9100-8fde-463b-aa43-25c656e464b5)

To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1361134/+subscriptions