Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

<type 'exceptions.valueerror'=""> (HTTP 500) error

Hi all,

At this moment I encounter a problem when I try to boot from a snapshot. I already created a bootable cinder volume. When i execute the following command an error occurs:

openstack server create --flavor m1.small --key-name backup_test2 --volume 2b207ca5-e141-462c-acd6-af30bfa7b433 --nic net-id=63420b48-c310-47da-aca7-7b0a0e0e9e5c --security-group default backup_test2

The errormessage:

Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible. <type 'exceptions.valueerror'=""> (HTTP 500) (Request-ID: req-744912c2-e81f-459d-b720-3bee52fc8592)

This is not really informative, but the nova-api.log log shows:

2016-05-11 09:58:06.552 2172 ERROR nova.api.openstack.extensions [req-744912c2-e81f-459d-b720-3bee52fc8592 9830508ee3a346b3a19dfa3f4675db9a c3f2d1c2bb6a4a93a8a4e92369206663 - - -] Unexpected exception in API method

2016-05-11 09:58:06.552 2172 ERROR nova.api.openstack.extensions Traceback (most recent call last):

2016-05-11 09:58:06.552 2172 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/api/openstack/extensions.py", line 478, in wrapped

2016-05-11 09:58:06.552 2172 ERROR nova.api.openstack.extensions
return f(args, *kwargs)

2016-05-11 09:58:06.552 2172 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/api/validation/__init__.py", line 73, in wrapper

2016-05-11 09:58:06.552 2172 ERROR nova.api.openstack.extensions
return func(args, *kwargs)

2016-05-11 09:58:06.552 2172 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/api/validation/__init__.py", line 73, in wrapper

2016-05-11 09:58:06.552 2172 ERROR nova.api.openstack.extensions
return func(args, *kwargs)

2016-05-11 09:58:06.552 2172 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/api/openstack/compute/servers.py", line 611, in create

2016-05-11 09:58:06.552 2172 ERROR nova.api.openstack.extensions
**create_kwargs)

2016-05-11 09:58:06.552 2172 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/hooks.py", line 149, in inner

2016-05-11 09:58:06.552 2172 ERROR nova.api.openstack.extensions rv = f(args, *kwargs)

2016-05-11 09:58:06.552 2172 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/compute/api.py", line 1581, in create

2016-05-11 09:58:06.552 2172 ERROR nova.api.openstack.extensions
check_server_group_quota=check_server_group_quota)

2016-05-11 09:58:06.552 2172 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/compute/api.py", line 1181, in _create_instance

2016-05-11 09:58:06.552 2172 ERROR nova.api.openstack.extensions
auto_disk_config, reservation_id, max_count)

2016-05-11 09:58:06.552 2172 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/compute/api.py", line 940, in _validate_and_build_base_options

2016-05-11 09:58:06.552 2172 ERROR nova.api.openstack.extensions
image_meta = objects.ImageMeta.from_dict(boot_meta)

2016-05-11 09:58:06.552 2172 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/objects/image_meta.py", line 105, in from_dict

2016-05-11 09:58:06.552 2172 ERROR nova.api.openstack.extensions
image_meta.get("properties", {}))

2016-05-11 09:58:06.552 2172 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/objects/image_meta.py", line 457, in from_dict

2016-05-11 09:58:06.552 2172 ERROR nova.api.openstack.extensions
obj._set_attr_from_legacy_names(image_props)

2016-05-11 09:58:06.552 2172 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/objects/image_meta.py", line 388, in _set_attr_from_legacy_names

2016-05-11 09:58:06.552 2172 ERROR nova.api.openstack.extensions
setattr(self, new_key, image_props[legacy_key])

2016-05-11 09:58:06.552 2172 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/oslo_versionedobjects/base.py", line 71, in setter

2016-05-11 09:58:06.552 2172 ERROR nova.api.openstack.extensions
field_value = field.coerce(self, name, value)

2016-05-11 09:58:06.552 2172 ERROR nova.api.openstack.extensions
File "/usr/lib/python2.7/dist-packages/oslo_versionedobjects/fields.py", line 189, in coerce

2016-05-11 09:58:06.552 2172 ERROR nova.api.openstack.extensions
return self._type.coerce(obj, attr, value)

2016-05-11 09:58:06.552 2172 ERROR nova.api.openstack.extensions
File "/usr/lib/python2.7/dist-packages/oslo_versionedobjects/fields.py", line 370, in coerce

2016-05-11 09:58:06.552 2172 ERROR nova.api.openstack.extensions
{'attr': attr, 'type': type(value).__name__})

2016-05-11 09:58:06.552 2172 ERROR nova.api.openstack.extensions ValueError: A list is required in field img_block_device_mapping, not a unicode

In the last line the log says "a list is required in field img_block_device_mapping, not a unicode. I don't get this error massage. Why is the mapping wrong?

<type 'exceptions.valueerror'=""> (HTTP 500) error

Hi all,

At this moment I encounter a problem when I try to boot from a snapshot. I already created a bootable cinder volume. When i execute the following command an error occurs:

openstack server create --flavor m1.small --key-name backup_test2 --volume 2b207ca5-e141-462c-acd6-af30bfa7b433 --nic net-id=63420b48-c310-47da-aca7-7b0a0e0e9e5c --security-group default backup_test2

The errormessage:

Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible. <type 'exceptions.valueerror'=""> (HTTP 500) (Request-ID: req-744912c2-e81f-459d-b720-3bee52fc8592)

This is not really informative, but the nova-api.log log shows:

2016-05-11 09:58:06.552 2172 ERROR nova.api.openstack.extensions [req-744912c2-e81f-459d-b720-3bee52fc8592 9830508ee3a346b3a19dfa3f4675db9a c3f2d1c2bb6a4a93a8a4e92369206663 - - -] Unexpected exception in API method

2016-05-11 09:58:06.552 2172 ERROR nova.api.openstack.extensions Traceback (most recent call last):

2016-05-11 09:58:06.552 2172 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/api/openstack/extensions.py", line 478, in wrapped

2016-05-11 09:58:06.552 2172 ERROR nova.api.openstack.extensions
return f(args, *kwargs)

2016-05-11 09:58:06.552 2172 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/api/validation/__init__.py", line 73, in wrapper

2016-05-11 09:58:06.552 2172 ERROR nova.api.openstack.extensions
return func(args, *kwargs)

2016-05-11 09:58:06.552 2172 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/api/validation/__init__.py", line 73, in wrapper

2016-05-11 09:58:06.552 2172 ERROR nova.api.openstack.extensions
return func(args, *kwargs)

2016-05-11 09:58:06.552 2172 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/api/openstack/compute/servers.py", line 611, in create

2016-05-11 09:58:06.552 2172 ERROR nova.api.openstack.extensions
**create_kwargs)

2016-05-11 09:58:06.552 2172 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/hooks.py", line 149, in inner

2016-05-11 09:58:06.552 2172 ERROR nova.api.openstack.extensions rv = f(args, *kwargs)

2016-05-11 09:58:06.552 2172 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/compute/api.py", line 1581, in create

2016-05-11 09:58:06.552 2172 ERROR nova.api.openstack.extensions
check_server_group_quota=check_server_group_quota)

2016-05-11 09:58:06.552 2172 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/compute/api.py", line 1181, in _create_instance

2016-05-11 09:58:06.552 2172 ERROR nova.api.openstack.extensions
auto_disk_config, reservation_id, max_count)

2016-05-11 09:58:06.552 2172 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/compute/api.py", line 940, in _validate_and_build_base_options

2016-05-11 09:58:06.552 2172 ERROR nova.api.openstack.extensions
image_meta = objects.ImageMeta.from_dict(boot_meta)

2016-05-11 09:58:06.552 2172 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/objects/image_meta.py", line 105, in from_dict

2016-05-11 09:58:06.552 2172 ERROR nova.api.openstack.extensions
image_meta.get("properties", {}))

2016-05-11 09:58:06.552 2172 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/objects/image_meta.py", line 457, in from_dict

2016-05-11 09:58:06.552 2172 ERROR nova.api.openstack.extensions
obj._set_attr_from_legacy_names(image_props)

2016-05-11 09:58:06.552 2172 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/objects/image_meta.py", line 388, in _set_attr_from_legacy_names

2016-05-11 09:58:06.552 2172 ERROR nova.api.openstack.extensions
setattr(self, new_key, image_props[legacy_key])

2016-05-11 09:58:06.552 2172 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/oslo_versionedobjects/base.py", line 71, in setter

2016-05-11 09:58:06.552 2172 ERROR nova.api.openstack.extensions
field_value = field.coerce(self, name, value)

2016-05-11 09:58:06.552 2172 ERROR nova.api.openstack.extensions
File "/usr/lib/python2.7/dist-packages/oslo_versionedobjects/fields.py", line 189, in coerce

2016-05-11 09:58:06.552 2172 ERROR nova.api.openstack.extensions
return self._type.coerce(obj, attr, value)

2016-05-11 09:58:06.552 2172 ERROR nova.api.openstack.extensions
File "/usr/lib/python2.7/dist-packages/oslo_versionedobjects/fields.py", line 370, in coerce

2016-05-11 09:58:06.552 2172 ERROR nova.api.openstack.extensions
{'attr': attr, 'type': type(value).__name__})

2016-05-11 09:58:06.552 2172 ERROR nova.api.openstack.extensions ValueError: A list is required in field img_block_device_mapping, not a unicode

In the last line the log says "a list is required in field img_block_device_mapping, not a unicode. I don't get this error massage. Why is the mapping wrong?