← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1579664] Re: Nova-compute raise exception when vcpu_pin_set is set to None or"".

 

** Also affects: nova/newton
   Importance: Undecided
       Status: New

** Changed in: nova/newton
       Status: New => In Progress

** Changed in: nova
   Importance: Undecided => Medium

** Changed in: nova/newton
   Importance: Undecided => Medium

** Changed in: nova/newton
     Assignee: (unassigned) => Lee Yarwood (lyarwood)

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

Title:
  Nova-compute raise exception when vcpu_pin_set is set to None or"".

Status in OpenStack Compute (nova):
  Fix Released
Status in OpenStack Compute (nova) newton series:
  In Progress

Bug description:
  Description
  ===========
  In Mitaka, Nova-compute raise exception when vcpu_pin_set is set to None or"".And nova-compute fails to start.

  Steps to reproduce
  ==================
  Edit vcpu_pin_set=None or vcpu_pin_set=""
  then restart nova-compute service

  Expected result
  ===============
  Get_vcpu_total returns total_pcpus, and nova-compute service starts successfully.

  Actual result
  =============
  When set vcpu_pin_set to None, raise following exception and nova-compute service fails to start:
  2016-05-10 09:00:02.835 TRACE nova.compute.manager Traceback (most recent call last):
  2016-05-10 09:00:02.835 TRACE nova.compute.manager   File  "/opt/stack/nova/nova/compute/manager.py", line 6460, in update_available_resource
  2016-05-10 09:00:02.835 TRACE nova.compute.manager     rt.update_available_resource(context)
  2016-05-10 09:00:02.835 TRACE nova.compute.manager   File "/opt/stack/nova/nova/compute/resource_tracker.py", line 500, in update_available_resource
  2016-05-10 09:00:02.835 TRACE nova.compute.manager     resources = self.driver.get_available_resource(self.nodename)
  2016-05-10 09:00:02.835 TRACE nova.compute.manager   File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 5363, in get_available_resource
  2016-05-10 09:00:02.835 TRACE nova.compute.manager     data["vcpus"] = self._get_vcpu_total()
  2016-05-10 09:00:02.835 TRACE nova.compute.manager   File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 4958, in _get_vcpu_total
  2016-05-10 09:00:02.835 TRACE nova.compute.manager     available_ids = hardware.get_vcpu_pin_set()
  2016-05-10 09:00:02.835 TRACE nova.compute.manager   File "/opt/stack/nova/nova/virt/hardware.py", line 50, in get_vcpu_pin_set
  2016-05-10 09:00:02.835 TRACE nova.compute.manager     cpuset_ids = parse_cpu_spec(CONF.vcpu_pin_set)
  2016-05-10 09:00:02.835 TRACE nova.compute.manager   File "/opt/stack/nova/nova/virt/hardware.py", line 113, in parse_cpu_spec
  2016-05-10 09:00:02.835 TRACE nova.compute.manager     "expression %r") % rule)
  2016-05-10 09:00:02.835 TRACE nova.compute.manager Invalid: Invalid inclusion expression 'None'

  When set vcpu_pin_set to "", raise following exception and nova-compute service fails to start:
  2016-05-10 08:55:18.558 TRACE nova.compute.manager Traceback (most recent call last):
  2016-05-10 08:55:18.558 TRACE nova.compute.manager   File "/opt/stack/nova/nova/compute/manager.py", line 6460, in update_available_resource
  2016-05-10 08:55:18.558 TRACE nova.compute.manager     rt.update_available_resource(context)
  2016-05-10 08:55:18.558 TRACE nova.compute.manager   File "/opt/stack/nova/nova/compute/resource_tracker.py", line 500, in update_available_resource
  2016-05-10 08:55:18.558 TRACE nova.compute.manager     resources = self.driver.get_available_resource(self.nodename)
  2016-05-10 08:55:18.558 TRACE nova.compute.manager   File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 5363, in get_available_resource
  2016-05-10 08:55:18.558 TRACE nova.compute.manager     data["vcpus"] = self._get_vcpu_total()
  2016-05-10 08:55:18.558 TRACE nova.compute.manager   File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 4971, in _get_vcpu_total
  2016-05-10 08:55:18.558 TRACE nova.compute.manager     if not (available_ids <= online_pcpus):
  2016-05-10 08:55:18.558 TRACE nova.compute.manager TypeError: can only compare to a set

  Environment
  ===========
  Mitaka version and KVM driver

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


References