OpenStack Compute (Nova)

allowed_instances should check both of instance_type['vcpus'] and instance_type['memory_mb'] are not zero

Reported by Nachi Ueno on 2011-10-28
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Low
Mandell
OpenStack Quality Assurance
Fix Released
Medium
Mandell

Bug Description

If instance_type['memory_mb'] or instance_type['vcpus'] are zero, this method throws ZeroDivisionError.
https://github.com/openstack/nova/blob/master/nova/quota.py#L100

Nachi Ueno (nati-ueno) on 2011-10-28
Changed in nova:
assignee: nobody → Nachi Ueno (nati-ueno)
status: New → Confirmed
Changed in openstack-qa:
assignee: nobody → Nachi Ueno (nati-ueno)
status: New → Confirmed
importance: Undecided → Medium
Thierry Carrez (ttx) on 2011-11-08
Changed in nova:
importance: Undecided → Low
Nachi Ueno (nati-ueno) on 2011-11-18
Changed in openstack-qa:
assignee: Nachi Ueno (nati-ueno) → nobody
Changed in nova:
assignee: Nachi Ueno (nati-ueno) → nobody
Mandell (mdegerne) on 2012-02-02
Changed in openstack-qa:
assignee: nobody → Mandell (mdegerne)
status: Confirmed → In Progress

Fix proposed to branch: master
Review: https://review.openstack.org/3724

Changed in nova:
status: Confirmed → In Progress

Reviewed: https://review.openstack.org/3724
Committed: http://github.com/openstack/nova/commit/d9b6338f1c62e17d29057e3e568f0fb3a524a0f3
Submitter: Jenkins
Branch: master

commit d9b6338f1c62e17d29057e3e568f0fb3a524a0f3
Author: Mandell Degerness <email address hidden>
Date: Fri Feb 3 00:01:29 2012 +0000

    Fix for bug 883310

    Don't throw exception when flavor has vcpus=0 or memory_mb=0

    Change-Id: I6f12cf06a569b491f537880afe37f2cf516be2d2

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx) on 2012-02-29
Changed in nova:
milestone: none → essex-4
status: Fix Committed → Fix Released
Mark McLoughlin (markmc) on 2012-04-03
Changed in nova:
assignee: nobody → Mandell (mdegerne)
Thierry Carrez (ttx) on 2012-04-05
Changed in nova:
milestone: essex-4 → 2012.1
Nachi Ueno (nati-ueno) on 2013-09-25
Changed in openstack-qa:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers