Public bug reported: The Big Switch capabilities check code throws an exception during the unit tests because a magicmock is passed into json.loads. This doesn't affect the unit tests but it leaves stack traces in the test log that take up unnecessary space.
ties. Newer API calls won't be supported. Traceback (most recent call last): File "neutron/plugins/bigswitch/servermanager.py", line 116, in get_capabilities self.capabilities = jsonutils.loads(body) File "neutron/openstack/common/jsonutils.py", line 172, in loads return json.loads(strutils.safe_decode(s, encoding), **kwargs) File "/usr/lib/python2.7/json/__init__.py", line 326, in loads return _default_decoder.decode(s) File "/usr/lib/python2.7/json/decoder.py", line 366, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/lib/python2.7/json/decoder.py", line 382, in raw_decode obj, end = self.scan_once(s, idx) ValueError: Expecting property name: line 1 column 1 (char 1) 2014-09-17 01:11:55,083 INFO [neutron.plugins.bigswitch.servermanager] The following capabilities were received for localhost: [] 2014-09-17 01:11:55,083 ERROR [neutron.plugins.bigswitch.servermanager] Couldn't retrieve capabilities. Newer API calls won't be supported. Traceback (most recent call last): File "neutron/plugins/bigswitch/servermanager.py", line 116, in get_capabilities self.capabilities = jsonutils.loads(body) File "neutron/openstack/common/jsonutils.py", line 172, in loads return json.loads(strutils.safe_decode(s, encoding), **kwargs) File "/usr/lib/python2.7/json/__init__.py", line 326, in loads return _default_decoder.decode(s) File "/usr/lib/python2.7/json/decoder.py", line 366, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/lib/python2.7/json/decoder.py", line 382, in raw_decode obj, end = self.scan_once(s, idx) ValueError: Expecting property name: line 1 column 1 (char 1) ** Affects: neutron Importance: Undecided Assignee: Kevin Benton (kevinbenton) Status: In Progress -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to neutron. https://bugs.launchpad.net/bugs/1370898 Title: Big Switch unit tests leave exceptions in subunit log Status in OpenStack Neutron (virtual network service): In Progress Bug description: The Big Switch capabilities check code throws an exception during the unit tests because a magicmock is passed into json.loads. This doesn't affect the unit tests but it leaves stack traces in the test log that take up unnecessary space. ties. Newer API calls won't be supported. Traceback (most recent call last): File "neutron/plugins/bigswitch/servermanager.py", line 116, in get_capabilities self.capabilities = jsonutils.loads(body) File "neutron/openstack/common/jsonutils.py", line 172, in loads return json.loads(strutils.safe_decode(s, encoding), **kwargs) File "/usr/lib/python2.7/json/__init__.py", line 326, in loads return _default_decoder.decode(s) File "/usr/lib/python2.7/json/decoder.py", line 366, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/lib/python2.7/json/decoder.py", line 382, in raw_decode obj, end = self.scan_once(s, idx) ValueError: Expecting property name: line 1 column 1 (char 1) 2014-09-17 01:11:55,083 INFO [neutron.plugins.bigswitch.servermanager] The following capabilities were received for localhost: [] 2014-09-17 01:11:55,083 ERROR [neutron.plugins.bigswitch.servermanager] Couldn't retrieve capabilities. Newer API calls won't be supported. Traceback (most recent call last): File "neutron/plugins/bigswitch/servermanager.py", line 116, in get_capabilities self.capabilities = jsonutils.loads(body) File "neutron/openstack/common/jsonutils.py", line 172, in loads return json.loads(strutils.safe_decode(s, encoding), **kwargs) File "/usr/lib/python2.7/json/__init__.py", line 326, in loads return _default_decoder.decode(s) File "/usr/lib/python2.7/json/decoder.py", line 366, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/lib/python2.7/json/decoder.py", line 382, in raw_decode obj, end = self.scan_once(s, idx) ValueError: Expecting property name: line 1 column 1 (char 1) To manage notifications about this bug go to: https://bugs.launchpad.net/neutron/+bug/1370898/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp