Fixed IP quota not checked at API level
Bug #1161188 reported by
Sam Morrison
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
In Progress
|
High
|
Alexander Pugachev |
Bug Description
When I create an instance when I'm already using all my allocated fixed IPs the instance is created fine but it errors in nova-network that no fixed ips are available.
This error message doesn't get to the user. I think this should return an error message at the API level and the instance shouldn't be able to be created in the first place?
Changed in nova: | |
assignee: | nobody → Alexander Pugachev (apugachev) |
To post a comment you must log in.
This is a fair point.
The problem is that the way quotas work in grizzly is that you reserve a fixed ip "opportunity", then use it, and optionally roll back if the something went wrong. So, the quota is done in the code that allocates and uses the fixed ip. I note that this is the same as how it is done with floating ips.
I do think adding a pre-check that determines if the API call has any possible chance of success before bothering to bring up an instance is a good idea though.