Nova quotas update for large values erroneous

Bug #1687379 reported by Abhishek Sharma M
6
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Invalid
Undecided
Unassigned

Bug Description

When we update nova related quota values with larger values, the updated value is not what we expected.

For example,
1. If we try to update virtual machines quota to 2147483647, the vm quota gets updated to 2147480000.
2. If we try to update virtual machines quota to 2147479 or 2147481, the vm quota gets updated to 2147480.
3. Similar to above examples there are several values in that range where the update behaves not as expected.

Revision history for this message
Dinesh Bhor (dinesh-bhor) wrote :

Hi Abhishek,

I am not able to reproduce this issue on my environment.
For me the quota-update is working fine.

Could you please give some more information of the nova version, and some logs may be?

Revision history for this message
Abhishek Sharma M (abhi.sharma) wrote :

Hi Dinesh

I am using nova 15.0.4
quota-update works fine unless for the values which I have mentioned in the problem statement. Did you try to update any nova related quota with 2147483647 or 2147481 values & observed the updated value?
Logs do not show any warning or errors as the update is happening successfully.

Revision history for this message
Ritesh Paiboina (rsritesh) wrote :

Hi,

What are you steps :

For me , its being updated correctly

$ nova quota-update 45cbd753bde2440bb4072b15074da425 --instances 2147483647

$ nova quota-show --tenant 45cbd753bde2440bb4072b15074da425
+-----------------------------+------------+
| Quota | Limit |
+-----------------------------+------------+
| instances | 2147483647 |
| cores | 20 |
| ram | 51200 |
| metadata_items | 128 |
| injected_files | 5 |
| injected_file_content_bytes | 10240 |
| injected_file_path_bytes | 255 |
| key_pairs | 100 |
| server_groups | 10 |
| server_group_members | 10 |
+-----------------------------+------------+

$ nova --version
7.1.0

Revision history for this message
Abhishek Sharma M (abhi.sharma) wrote :

The issue is with the database schema we were using. We used float to store the values, this is where it was getting messed up. Using 'int' or 'double' solves this.

Please ignore this defect.

Changed in nova:
status: New → Invalid
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.