Nova boot fails with Error Code 500, if quota_port is < -1 in neutron.conf
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Won't Fix
|
Low
|
Sudipta Biswas | ||
neutron |
Fix Released
|
Medium
|
Sudipta Biswas |
Bug Description
I am running a scale environment where I needed to exceed the port quota count to unlimited.
The neutron.conf documentation for the quota_port parameter states the following:
# Number of ports allowed per tenant. A negative value means unlimited.
Looking at this, I had set the value to -2 as:
quota_port = -2
After this, the nova boot started failing with Error code 500.
The error stack is the following:
TRACE nova.api.openstack File "/usr/lib/
TRACE nova.api.openstack server = self._view_
TRACE nova.api.openstack IndexError: list index out of range
TRACE nova.api.openstack
The error is seen because in the /nova/network/
if quotas.get('port', -1) == -1:
# Unlimited Port Quota
else:
if free_ports >= ports_needed:
The above code would return free_ports - and that value is negative.
Filing this bug to change the above check to something like:
if quotas.get('port', -1) <= -1:
# Unlimited Port Quota
This will allow nova to react correctly with the documentation in neutron as well.
Changed in nova: | |
assignee: | nobody → Sudipta Biswas (sbiswas7) |
Changed in nova: | |
importance: | Undecided → Low |
tags: | added: network |
Changed in neutron: | |
assignee: | nobody → Sudipta Biswas (sbiswas7) |
Changed in neutron: | |
status: | Fix Committed → Fix Released |
Changed in neutron: | |
milestone: | kilo-rc1 → 2015.1.0 |
Fix proposed to branch: master /review. openstack. org/169605
Review: https:/