nova microversion 2.36 accidentally removed support for "force" when setting quotas

Bug #1734394 reported by Chris Friesen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Confirmed
Undecided
hongbin

Bug Description

It is supposed to be possible to specify the "force" option when updating a quota-set. Up to microversion 2.35 this works as expected.

However, in 2.36 it no longer works, and nova-api sends back:

RESP BODY: {"badRequest": {"message": "Invalid input for field/attribute quota_set. Value: {u'cores': 95, u'force': True}. Additional properties are not allowed (u'force' was unexpected)", "code": 400}}

The problem seems to be that in schemas/quota_sets.py the "force" parameter is not in quota_resources, but rather is added to "update_quota_set". When creating update_quota_set_v236 they copied quota_resources instead of copying update_quota_set, and this meant that they lost the support for the "force" parameter.

Chris Friesen (cbf123)
tags: added: ocata-backport-potential pike-backport-potential quotas
hongbin (hongbin034)
Changed in nova:
status: New → Confirmed
assignee: nobody → hongbin (hongbin034)
Revision history for this message
Takashi Natsume (natsume-takashi) wrote :

This bug report is duplicate of https://bugs.launchpad.net/nova/+bug/1733886 .

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.