Public bug reported:
I was trying to add a json field to DB but forget to dumps the json to
string, and nova api report the following error.
2013-12-17 12:37:51.615 TRACE object Traceback (most recent call last):
2013-12-17 12:37:51.615 TRACE object File
"/opt/stack/nova/nova/objects/base.py", line 70, in setter
2013-12-17 12:37:51.615 TRACE object field.coerce(self, name, value))
2013-12-17 12:37:51.615 TRACE object File
"/opt/stack/nova/nova/objects/fields.py", line 166, in coerce
2013-12-17 12:37:51.615 TRACE object return self._type.coerce(obj, attr,
value)
2013-12-17 12:37:51.615 TRACE object File
"/opt/stack/nova/nova/objects/fields.py", line 218, in coerce
2013-12-17 12:37:51.615 TRACE object raise ValueError(_('A string is
required here, not %s'),
2013-12-17 12:37:51.615 TRACE object ValueError: (u'A string is required here,
not %s', 'dict') <<<<<<<<<<<
The error should be <string is required here, not dict>
** 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/1261621
Title:
nova api value error is not right
Status in OpenStack Compute (Nova):
New
Bug description:
I was trying to add a json field to DB but forget to dumps the json to
string, and nova api report the following error.
2013-12-17 12:37:51.615 TRACE object Traceback (most recent call last):
2013-12-17 12:37:51.615 TRACE object File
"/opt/stack/nova/nova/objects/base.py", line 70, in setter
2013-12-17 12:37:51.615 TRACE object field.coerce(self, name, value))
2013-12-17 12:37:51.615 TRACE object File
"/opt/stack/nova/nova/objects/fields.py", line 166, in coerce
2013-12-17 12:37:51.615 TRACE object return self._type.coerce(obj, attr,
value)
2013-12-17 12:37:51.615 TRACE object File
"/opt/stack/nova/nova/objects/fields.py", line 218, in coerce
2013-12-17 12:37:51.615 TRACE object raise ValueError(_('A string is
required here, not %s'),
2013-12-17 12:37:51.615 TRACE object ValueError: (u'A string is required
here, not %s', 'dict') <<<<<<<<<<<
The error should be <string is required here, not dict>
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1261621/+subscriptions
--
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to : [email protected]
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help : https://help.launchpad.net/ListHelp