← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1544720] Re: In response template processing, some values are set to u'' instead of None

 

I couldn't reproduce the bug.

I changed the value for OS-EXT-SRV-ATTR:kernel_id from null to
"test_kernel" in both server-get-resp.json.tpl and server-get-resp.json.
Test fails because value in template(test_kernel) and actual
response('') is different. This is expected. Also value in Response is
not u'' as mentioned in the description.

I don't see any unexpected behavior. Moving the bug to invalid.

** Changed in: nova
       Status: Confirmed => Invalid

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1544720

Title:
  In response template processing, some values are set to u'' instead of
  None

Status in OpenStack Compute (nova):
  Invalid

Bug description:
  I discovered this bug while refactoring functional tests. This happens
  in the current Nova master.

  Update the following files:
  - nova/tests/functional/api_sample_tests/api_samples/os-extended-server-attributes/v2.16/server-get-resp.json.tpl
  - nova/doc/api_samples/os-extended-server-attributes/v2.16/server-get-resp.json

  Set the field "OS-EXT-SRV-ATTR:kernel_id" from "null" to a value.
  Run functional tests (or just nova/tests/functional/api_sample_tests/test_extended_server_attributes.py) and you'll see that the value you for the response has been replaced with u''.

  Not sure if this is in nova itself or just the test framework, more
  research needed.

  I'm creating this bug to make sure I don't forget to come back and
  troubleshoot this issue.

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


References