vcpu_weight in flavor-create API is not validated
Bug #1245560 reported by
Matt Riedemann
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Expired
|
Undecided
|
Unassigned |
Bug Description
Bug 1243195 has some background for context, and there is some discussion in this review:
https:/
But essentially it comes down to the fact that the vcpu_weight value for the flavor model isn't validated. The reason it's probably not validated is due to the fact that no one seems to know how the user can set it, because it's not set via the flavor-create API.
The only code using it is in the xenapi virt driver, so I'm wondering if they have something working out of tree at Rackspace that uses it?
If the user can't set it via the code that's in community, maybe it should be removed?
Changed in nova: | |
status: | New → Confirmed |
importance: | Undecided → Low |
Changed in nova: | |
assignee: | nobody → lizheming (lizheming-li) |
Changed in nova: | |
assignee: | lizheming (lizheming-li) → nobody |
To post a comment you must log in.
It is certainly used by the XenAPI driver here: /github. com/openstack/ nova/blob/ master/ nova/virt/ xenapi/ vm_utils. py#L211
https:/