← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1354244] [NEW] instance boot failed when assigned more than one sriov nic

 

Public bug reported:

Our project(OpenCOS) wants to use PCI SRIOV functions. Merged codes of the blueprint(https://review.openstack.org/#/c/67500/) on icehouse release version(nova-2014.1.tar.gz).
But when assigned more than one SRIOV nic to one instance, it booted failed.

The failed log on compute node as below:
ba9ea9a-41e6-46f3-9013-58a4aad9f8b0] Error: Unterminated string starting at: line 1 column 225 (char 224)
2014-08-06 15:50:28.976 2807 TRACE nova.compute.manager [instance: 1ba9ea9a-41e6-46f3-9013-58a4aad9f8b0] Traceback (most recent call last):
2014-08-06 15:50:28.976 2807 TRACE nova.compute.manager [instance: 1ba9ea9a-41e6-46f3-9013-58a4aad9f8b0]   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 1286, in _build_instance
2014-08-06 15:50:28.976 2807 TRACE nova.compute.manager [instance: 1ba9ea9a-41e6-46f3-9013-58a4aad9f8b0]     with rt.instance_claim(context, instance, limits):
2014-08-06 15:50:28.976 2807 TRACE nova.compute.manager [instance: 1ba9ea9a-41e6-46f3-9013-58a4aad9f8b0]   File "/usr/lib/python2.7/site-packages/nova/openstack/common/lockutils.py", line 249, in inner
2014-08-06 15:50:28.976 2807 TRACE nova.compute.manager [instance: 1ba9ea9a-41e6-46f3-9013-58a4aad9f8b0]     return f(*args, **kwargs)
2014-08-06 15:50:28.976 2807 TRACE nova.compute.manager [instance: 1ba9ea9a-41e6-46f3-9013-58a4aad9f8b0]   File "/usr/lib/python2.7/site-packages/nova/compute/resource_tracker.py", line 122, in instance_claim
2014-08-06 15:50:28.976 2807 TRACE nova.compute.manager [instance: 1ba9ea9a-41e6-46f3-9013-58a4aad9f8b0]     overhead=overhead, limits=limits)
2014-08-06 15:50:28.976 2807 TRACE nova.compute.manager [instance: 1ba9ea9a-41e6-46f3-9013-58a4aad9f8b0]   File "/usr/lib/python2.7/site-packages/nova/compute/claims.py", line 95, in __init__
2014-08-06 15:50:28.976 2807 TRACE nova.compute.manager [instance: 1ba9ea9a-41e6-46f3-9013-58a4aad9f8b0]     self._claim_test(resources, limits)
2014-08-06 15:50:28.976 2807 TRACE nova.compute.manager [instance: 1ba9ea9a-41e6-46f3-9013-58a4aad9f8b0]   File "/usr/lib/python2.7/site-packages/nova/compute/claims.py", line 144, in _claim_test
2014-08-06 15:50:28.976 2807 TRACE nova.compute.manager [instance: 1ba9ea9a-41e6-46f3-9013-58a4aad9f8b0]     self._test_pci()]
2014-08-06 15:50:28.976 2807 TRACE nova.compute.manager [instance: 1ba9ea9a-41e6-46f3-9013-58a4aad9f8b0]   File "/usr/lib/python2.7/site-packages/nova/compute/claims.py", line 171, in _test_pci
2014-08-06 15:50:28.976 2807 TRACE nova.compute.manager [instance: 1ba9ea9a-41e6-46f3-9013-58a4aad9f8b0]     pci_requests = pci_request.get_instance_pci_requests(self.instance)
2014-08-06 15:50:28.976 2807 TRACE nova.compute.manager [instance: 1ba9ea9a-41e6-46f3-9013-58a4aad9f8b0]   File "/usr/lib/python2.7/site-packages/nova/pci/pci_request.py", line 208, in get_instance_pci_requests
2014-08-06 15:50:28.976 2807 TRACE nova.compute.manager [instance: 1ba9ea9a-41e6-46f3-9013-58a4aad9f8b0]     return jsonutils.loads(pci_requests)
2014-08-06 15:50:28.976 2807 TRACE nova.compute.manager [instance: 1ba9ea9a-41e6-46f3-9013-58a4aad9f8b0]   File "/usr/lib/python2.7/site-packages/nova/openstack/common/jsonutils.py", line 164, in loads
2014-08-06 15:50:28.976 2807 TRACE nova.compute.manager [instance: 1ba9ea9a-41e6-46f3-9013-58a4aad9f8b0]     return json.loads(s)
2014-08-06 15:50:28.976 2807 TRACE nova.compute.manager [instance: 1ba9ea9a-41e6-46f3-9013-58a4aad9f8b0]   File "/usr/lib64/python2.7/json/__init__.py", line 338, in loads
2014-08-06 15:50:28.976 2807 TRACE nova.compute.manager [instance: 1ba9ea9a-41e6-46f3-9013-58a4aad9f8b0]     return _default_decoder.decode(s)
2014-08-06 15:50:28.976 2807 TRACE nova.compute.manager [instance: 1ba9ea9a-41e6-46f3-9013-58a4aad9f8b0]   File "/usr/lib64/python2.7/json/decoder.py", line 365, in decode
2014-08-06 15:50:28.976 2807 TRACE nova.compute.manager [instance: 1ba9ea9a-41e6-46f3-9013-58a4aad9f8b0]     obj, end = self.raw_decode(s, idx=_w(s, 0).end())
2014-08-06 15:50:28.976 2807 TRACE nova.compute.manager [instance: 1ba9ea9a-41e6-46f3-9013-58a4aad9f8b0]   File "/usr/lib64/python2.7/json/decoder.py", line 381, in raw_decode
2014-08-06 15:50:28.976 2807 TRACE nova.compute.manager [instance: 1ba9ea9a-41e6-46f3-9013-58a4aad9f8b0]     obj, end = self.scan_once(s, idx)
2014-08-06 15:50:28.976 2807 TRACE nova.compute.manager [instance: 1ba9ea9a-41e6-46f3-9013-58a4aad9f8b0] ValueError: Unterminated string starting at: line 1 column 225 (char 224)

** Affects: nova
     Importance: Undecided
         Status: New

** Tags removed: any
** Tags added: compute

** Tags removed: compute

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

Title:
  instance boot failed when assigned more than one sriov nic

Status in OpenStack Compute (Nova):
  New

Bug description:
  Our project(OpenCOS) wants to use PCI SRIOV functions. Merged codes of the blueprint(https://review.openstack.org/#/c/67500/) on icehouse release version(nova-2014.1.tar.gz).
  But when assigned more than one SRIOV nic to one instance, it booted failed.

  The failed log on compute node as below:
  ba9ea9a-41e6-46f3-9013-58a4aad9f8b0] Error: Unterminated string starting at: line 1 column 225 (char 224)
  2014-08-06 15:50:28.976 2807 TRACE nova.compute.manager [instance: 1ba9ea9a-41e6-46f3-9013-58a4aad9f8b0] Traceback (most recent call last):
  2014-08-06 15:50:28.976 2807 TRACE nova.compute.manager [instance: 1ba9ea9a-41e6-46f3-9013-58a4aad9f8b0]   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 1286, in _build_instance
  2014-08-06 15:50:28.976 2807 TRACE nova.compute.manager [instance: 1ba9ea9a-41e6-46f3-9013-58a4aad9f8b0]     with rt.instance_claim(context, instance, limits):
  2014-08-06 15:50:28.976 2807 TRACE nova.compute.manager [instance: 1ba9ea9a-41e6-46f3-9013-58a4aad9f8b0]   File "/usr/lib/python2.7/site-packages/nova/openstack/common/lockutils.py", line 249, in inner
  2014-08-06 15:50:28.976 2807 TRACE nova.compute.manager [instance: 1ba9ea9a-41e6-46f3-9013-58a4aad9f8b0]     return f(*args, **kwargs)
  2014-08-06 15:50:28.976 2807 TRACE nova.compute.manager [instance: 1ba9ea9a-41e6-46f3-9013-58a4aad9f8b0]   File "/usr/lib/python2.7/site-packages/nova/compute/resource_tracker.py", line 122, in instance_claim
  2014-08-06 15:50:28.976 2807 TRACE nova.compute.manager [instance: 1ba9ea9a-41e6-46f3-9013-58a4aad9f8b0]     overhead=overhead, limits=limits)
  2014-08-06 15:50:28.976 2807 TRACE nova.compute.manager [instance: 1ba9ea9a-41e6-46f3-9013-58a4aad9f8b0]   File "/usr/lib/python2.7/site-packages/nova/compute/claims.py", line 95, in __init__
  2014-08-06 15:50:28.976 2807 TRACE nova.compute.manager [instance: 1ba9ea9a-41e6-46f3-9013-58a4aad9f8b0]     self._claim_test(resources, limits)
  2014-08-06 15:50:28.976 2807 TRACE nova.compute.manager [instance: 1ba9ea9a-41e6-46f3-9013-58a4aad9f8b0]   File "/usr/lib/python2.7/site-packages/nova/compute/claims.py", line 144, in _claim_test
  2014-08-06 15:50:28.976 2807 TRACE nova.compute.manager [instance: 1ba9ea9a-41e6-46f3-9013-58a4aad9f8b0]     self._test_pci()]
  2014-08-06 15:50:28.976 2807 TRACE nova.compute.manager [instance: 1ba9ea9a-41e6-46f3-9013-58a4aad9f8b0]   File "/usr/lib/python2.7/site-packages/nova/compute/claims.py", line 171, in _test_pci
  2014-08-06 15:50:28.976 2807 TRACE nova.compute.manager [instance: 1ba9ea9a-41e6-46f3-9013-58a4aad9f8b0]     pci_requests = pci_request.get_instance_pci_requests(self.instance)
  2014-08-06 15:50:28.976 2807 TRACE nova.compute.manager [instance: 1ba9ea9a-41e6-46f3-9013-58a4aad9f8b0]   File "/usr/lib/python2.7/site-packages/nova/pci/pci_request.py", line 208, in get_instance_pci_requests
  2014-08-06 15:50:28.976 2807 TRACE nova.compute.manager [instance: 1ba9ea9a-41e6-46f3-9013-58a4aad9f8b0]     return jsonutils.loads(pci_requests)
  2014-08-06 15:50:28.976 2807 TRACE nova.compute.manager [instance: 1ba9ea9a-41e6-46f3-9013-58a4aad9f8b0]   File "/usr/lib/python2.7/site-packages/nova/openstack/common/jsonutils.py", line 164, in loads
  2014-08-06 15:50:28.976 2807 TRACE nova.compute.manager [instance: 1ba9ea9a-41e6-46f3-9013-58a4aad9f8b0]     return json.loads(s)
  2014-08-06 15:50:28.976 2807 TRACE nova.compute.manager [instance: 1ba9ea9a-41e6-46f3-9013-58a4aad9f8b0]   File "/usr/lib64/python2.7/json/__init__.py", line 338, in loads
  2014-08-06 15:50:28.976 2807 TRACE nova.compute.manager [instance: 1ba9ea9a-41e6-46f3-9013-58a4aad9f8b0]     return _default_decoder.decode(s)
  2014-08-06 15:50:28.976 2807 TRACE nova.compute.manager [instance: 1ba9ea9a-41e6-46f3-9013-58a4aad9f8b0]   File "/usr/lib64/python2.7/json/decoder.py", line 365, in decode
  2014-08-06 15:50:28.976 2807 TRACE nova.compute.manager [instance: 1ba9ea9a-41e6-46f3-9013-58a4aad9f8b0]     obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  2014-08-06 15:50:28.976 2807 TRACE nova.compute.manager [instance: 1ba9ea9a-41e6-46f3-9013-58a4aad9f8b0]   File "/usr/lib64/python2.7/json/decoder.py", line 381, in raw_decode
  2014-08-06 15:50:28.976 2807 TRACE nova.compute.manager [instance: 1ba9ea9a-41e6-46f3-9013-58a4aad9f8b0]     obj, end = self.scan_once(s, idx)
  2014-08-06 15:50:28.976 2807 TRACE nova.compute.manager [instance: 1ba9ea9a-41e6-46f3-9013-58a4aad9f8b0] ValueError: Unterminated string starting at: line 1 column 225 (char 224)

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


Follow ups

References