Quota check for injected_file_contents does not consider base64 encoding
Bug #1225143 reported by
Phil Day
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Opinion
|
Low
|
Unassigned |
Bug Description
File content to be injected as part of instance creation is constrained by the injected_
However the contents has to be base64 encoded, its encoded in the client and decoded in compute/manager.py. The quota check however is performed against the encoded contents, and so fails when it should pass if the contents is very close to the quota limit
Changed in nova: | |
status: | Incomplete → Triaged |
importance: | Undecided → Low |
Changed in nova: | |
assignee: | nobody → wanghong (w-wanghong) |
Changed in nova: | |
assignee: | wanghong (w-wanghong) → nobody |
Changed in nova: | |
status: | In Progress → Triaged |
tags: | added: quotas |
To post a comment you must log in.
I don't think you're correct here. The quota relates to the size of the database column IIRC. That means we can't be lenient here -- we need to enforce a maximum size for the b64 data.