← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1412547] [NEW] Additional properties are not allowed ('block_device_mapping_v2' was unexpected)

 

Public bug reported:

Logstash query:
message:"'block_device_mapping_v2' was unexpected"

Logstash URL:
http://logstash.openstack.org/#eyJzZWFyY2giOiJtZXNzYWdlOlwiJ2Jsb2NrX2RldmljZV9tYXBwaW5nX3YyJyB3YXMgdW5leHBlY3RlZFwiIiwiZmllbGRzIjpbXSwib2Zmc2V0IjowLCJ0aW1lZnJhbWUiOiIxNzI4MDAiLCJncmFwaG1vZGUiOiJjb3VudCIsInRpbWUiOnsidXNlcl9pbnRlcnZhbCI6MH0sInN0YW1wIjoxNDIxNjk0Nzk2MDE3fQ==

Example traceback
2015-01-19 18:58:52.035 | nova.tests.unit.api.openstack.compute.contrib.test_block_device_mapping_v1.BlockDeviceMappingTestV21.test_create_instance_both_bdm_formats
2015-01-19 18:58:52.035 | ------------------------------------------------------------------------------------------------------------------------------------------
2015-01-19 18:58:52.035 | 
2015-01-19 18:58:52.035 | Captured traceback:
2015-01-19 18:58:52.035 | ~~~~~~~~~~~~~~~~~~~
2015-01-19 18:58:52.035 |     Traceback (most recent call last):
2015-01-19 18:58:52.036 |       File "nova/tests/unit/api/openstack/compute/contrib/test_block_device_mapping_v1.py", line 337, in test_create_instance_both_bdm_formats
2015-01-19 18:58:52.036 |         self.assertRaises(exc.HTTPBadRequest, self._test_create, params)
2015-01-19 18:58:52.036 |       File "/home/jenkins/workspace/gate-nova-python27/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 420, in assertRaises
2015-01-19 18:58:52.036 |         self.assertThat(our_callable, matcher)
2015-01-19 18:58:52.036 |       File "/home/jenkins/workspace/gate-nova-python27/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 431, in assertThat
2015-01-19 18:58:52.036 |         mismatch_error = self._matchHelper(matchee, matcher, message, verbose)
2015-01-19 18:58:52.036 |       File "/home/jenkins/workspace/gate-nova-python27/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 481, in _matchHelper
2015-01-19 18:58:52.036 |         mismatch = matcher.match(matchee)
2015-01-19 18:58:52.036 |       File "/home/jenkins/workspace/gate-nova-python27/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_exception.py", line 108, in match
2015-01-19 18:58:52.036 |         mismatch = self.exception_matcher.match(exc_info)
2015-01-19 18:58:52.036 |       File "/home/jenkins/workspace/gate-nova-python27/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_higherorder.py", line 62, in match
2015-01-19 18:58:52.036 |         mismatch = matcher.match(matchee)
2015-01-19 18:58:52.037 |       File "/home/jenkins/workspace/gate-nova-python27/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 412, in match
2015-01-19 18:58:52.037 |         reraise(*matchee)
2015-01-19 18:58:52.037 |       File "/home/jenkins/workspace/gate-nova-python27/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_exception.py", line 101, in match
2015-01-19 18:58:52.037 |         result = matchee()
2015-01-19 18:58:52.037 |       File "/home/jenkins/workspace/gate-nova-python27/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 965, in __call__
2015-01-19 18:58:52.037 |         return self._callable_object(*self._args, **self._kwargs)
2015-01-19 18:58:52.037 |       File "nova/tests/unit/api/openstack/compute/contrib/test_block_device_mapping_v1.py", line 95, in _test_create
2015-01-19 18:58:52.037 |         self.controller.create(req, body=body).obj['server']
2015-01-19 18:58:52.037 |       File "nova/api/openstack/extensions.py", line 428, in wrapped
2015-01-19 18:58:52.037 |         return f(*args, **kwargs)
2015-01-19 18:58:52.037 |       File "nova/api/validation/__init__.py", line 56, in wrapper
2015-01-19 18:58:52.038 |         schema_validator.validate(kwargs['body'])
2015-01-19 18:58:52.038 |       File "nova/api/validation/validators.py", line 114, in validate
2015-01-19 18:58:52.038 |         raise exception.ValidationError(detail=detail)
2015-01-19 18:58:52.038 |     ValidationError: Invalid input for field/attribute server. Value: {'name': 'server_test', 'imageRef': '76fa36fc-c930-4bf3-8c8a-ea2a2420deb6', 'block_device_mapping': [{'device_name': 'foo'}], 'block_device_mapping_v2': [{'source_type': 'volume', 'uuid': 'fake_vol'}], 'flavorRef': 'http://localhost/123/flavors/3', 'metadata': {'open': 'stack', 'hello': 'world'}}. Additional properties are not allowed ('block_device_mapping_v2' was unexpected)

** Affects: nova
     Importance: Undecided
         Status: New

-- 
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/1412547

Title:
  Additional properties are not allowed ('block_device_mapping_v2' was
  unexpected)

Status in OpenStack Compute (Nova):
  New

Bug description:
  Logstash query:
  message:"'block_device_mapping_v2' was unexpected"

  Logstash URL:
  http://logstash.openstack.org/#eyJzZWFyY2giOiJtZXNzYWdlOlwiJ2Jsb2NrX2RldmljZV9tYXBwaW5nX3YyJyB3YXMgdW5leHBlY3RlZFwiIiwiZmllbGRzIjpbXSwib2Zmc2V0IjowLCJ0aW1lZnJhbWUiOiIxNzI4MDAiLCJncmFwaG1vZGUiOiJjb3VudCIsInRpbWUiOnsidXNlcl9pbnRlcnZhbCI6MH0sInN0YW1wIjoxNDIxNjk0Nzk2MDE3fQ==

  Example traceback
  2015-01-19 18:58:52.035 | nova.tests.unit.api.openstack.compute.contrib.test_block_device_mapping_v1.BlockDeviceMappingTestV21.test_create_instance_both_bdm_formats
  2015-01-19 18:58:52.035 | ------------------------------------------------------------------------------------------------------------------------------------------
  2015-01-19 18:58:52.035 | 
  2015-01-19 18:58:52.035 | Captured traceback:
  2015-01-19 18:58:52.035 | ~~~~~~~~~~~~~~~~~~~
  2015-01-19 18:58:52.035 |     Traceback (most recent call last):
  2015-01-19 18:58:52.036 |       File "nova/tests/unit/api/openstack/compute/contrib/test_block_device_mapping_v1.py", line 337, in test_create_instance_both_bdm_formats
  2015-01-19 18:58:52.036 |         self.assertRaises(exc.HTTPBadRequest, self._test_create, params)
  2015-01-19 18:58:52.036 |       File "/home/jenkins/workspace/gate-nova-python27/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 420, in assertRaises
  2015-01-19 18:58:52.036 |         self.assertThat(our_callable, matcher)
  2015-01-19 18:58:52.036 |       File "/home/jenkins/workspace/gate-nova-python27/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 431, in assertThat
  2015-01-19 18:58:52.036 |         mismatch_error = self._matchHelper(matchee, matcher, message, verbose)
  2015-01-19 18:58:52.036 |       File "/home/jenkins/workspace/gate-nova-python27/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 481, in _matchHelper
  2015-01-19 18:58:52.036 |         mismatch = matcher.match(matchee)
  2015-01-19 18:58:52.036 |       File "/home/jenkins/workspace/gate-nova-python27/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_exception.py", line 108, in match
  2015-01-19 18:58:52.036 |         mismatch = self.exception_matcher.match(exc_info)
  2015-01-19 18:58:52.036 |       File "/home/jenkins/workspace/gate-nova-python27/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_higherorder.py", line 62, in match
  2015-01-19 18:58:52.036 |         mismatch = matcher.match(matchee)
  2015-01-19 18:58:52.037 |       File "/home/jenkins/workspace/gate-nova-python27/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 412, in match
  2015-01-19 18:58:52.037 |         reraise(*matchee)
  2015-01-19 18:58:52.037 |       File "/home/jenkins/workspace/gate-nova-python27/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_exception.py", line 101, in match
  2015-01-19 18:58:52.037 |         result = matchee()
  2015-01-19 18:58:52.037 |       File "/home/jenkins/workspace/gate-nova-python27/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 965, in __call__
  2015-01-19 18:58:52.037 |         return self._callable_object(*self._args, **self._kwargs)
  2015-01-19 18:58:52.037 |       File "nova/tests/unit/api/openstack/compute/contrib/test_block_device_mapping_v1.py", line 95, in _test_create
  2015-01-19 18:58:52.037 |         self.controller.create(req, body=body).obj['server']
  2015-01-19 18:58:52.037 |       File "nova/api/openstack/extensions.py", line 428, in wrapped
  2015-01-19 18:58:52.037 |         return f(*args, **kwargs)
  2015-01-19 18:58:52.037 |       File "nova/api/validation/__init__.py", line 56, in wrapper
  2015-01-19 18:58:52.038 |         schema_validator.validate(kwargs['body'])
  2015-01-19 18:58:52.038 |       File "nova/api/validation/validators.py", line 114, in validate
  2015-01-19 18:58:52.038 |         raise exception.ValidationError(detail=detail)
  2015-01-19 18:58:52.038 |     ValidationError: Invalid input for field/attribute server. Value: {'name': 'server_test', 'imageRef': '76fa36fc-c930-4bf3-8c8a-ea2a2420deb6', 'block_device_mapping': [{'device_name': 'foo'}], 'block_device_mapping_v2': [{'source_type': 'volume', 'uuid': 'fake_vol'}], 'flavorRef': 'http://localhost/123/flavors/3', 'metadata': {'open': 'stack', 'hello': 'world'}}. Additional properties are not allowed ('block_device_mapping_v2' was unexpected)

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


Follow ups

References