Nova boot fails with quota activated in neutron but not on ports

Bug #1333315 reported by Cedric Brandily
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Undecided
Cedric Brandily
Icehouse
Fix Released
Undecided
Unassigned

Bug Description

When nova is deployed with neutron, nova boot fails if quota are activated but not for ports

"Failing" usecase:
In neutron.conf
[quotas]
quota_items = network,subnet,router,floatingip

neutron quota-show
+---------------------+-------+
| Field | Value |
+---------------------+-------+
| floatingip | 2 |
| network | 5 |
| router | 1 |
| security_group | 10 |
| security_group_rule | 100 |
| subnet | 4 |
+---------------------+-------+

nova boot fails because neutronv2 api expect neutron.show_quota(tenant_id=context.project_id)['quota'].get('port') to return an int but instead None is returned

Changed in nova:
assignee: nobody → Cedric Brandily (cbrandily)
status: New → In Progress
tags: added: icehouse-backport-potential
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/101948
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=04add2ed0d8b0341ea347ac98834f75cf5b2be1d
Submitter: Jenkins
Branch: master

commit 04add2ed0d8b0341ea347ac98834f75cf5b2be1d
Author: Cedric Brandily <email address hidden>
Date: Mon Jun 23 17:59:46 2014 +0200

    Neutronv2 api does not support neutron without port quota

    If quota on ports are disabled in neutron (see below), neutronv2 api
    set port quota to None and quota check raises a TypeError.

      # neutron server /etc/neutron/neutron.conf
      [quotas]
      quota_items=network,subnet,router,floatingip

    This change set port quota to -1 (unlimited) if quota on ports are
    disabled.

    Change-Id: I89c530dd57a7beb35695be124ca8511148378458
    Closes-Bug: #1333315

Changed in nova:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (stable/icehouse)

Fix proposed to branch: stable/icehouse
Review: https://review.openstack.org/103955

Changed in nova:
milestone: none → juno-2
status: Fix Committed → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (stable/icehouse)

Reviewed: https://review.openstack.org/103955
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=e43c43e5ae71fa9a9c48a24c8ffa275c74cda430
Submitter: Jenkins
Branch: stable/icehouse

commit e43c43e5ae71fa9a9c48a24c8ffa275c74cda430
Author: Cedric Brandily <email address hidden>
Date: Mon Jun 23 17:59:46 2014 +0200

    Neutronv2 api does not support neutron without port quota

    If quota on ports are disabled in neutron (see below), neutronv2 api
    set port quota to None and quota check raises a TypeError.

      # neutron server /etc/neutron/neutron.conf
      [quotas]
      quota_items=network,subnet,router,floatingip

    This change set port quota to -1 (unlimited) if quota on ports are
    disabled.

    Change-Id: I89c530dd57a7beb35695be124ca8511148378458
    Closes-Bug: #1333315
    (cherry picked from commit 04add2ed0d8b0341ea347ac98834f75cf5b2be1d)

tags: added: in-stable-icehouse
Chuck Short (zulcss)
tags: removed: icehouse-backport-potential
Thierry Carrez (ttx)
Changed in nova:
milestone: juno-2 → 2014.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.