Check for the max files in nova boot command fails

Bug #1362623 reported by b.sudhakoushik
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Invalid
Low
Unassigned

Bug Description

I tried to create a nova server injecting 7 files, when i checked the max number of files allowed for that Tenant through nova absolute-limits is 6.

Ideally i guess it should throw an error saying the limit got exceeded

nova --version 2.18.1.32

steps i followed

1) nova boot --flavor m1.tiny --image c60462a7-07e3-4703-bbab-baeaa6b7a2fb --file /home/cirros/abctxt=/home/ubuntu/bsk/abc1 --file /home/cirros/abctxt=/home/ubuntu/bsk/abc1 --file /home/cirros/abctxt=/home/ubuntu/bsk/abc1 --file /home/cirros/abctxt=/home/ubuntu/bsk/abc1 --file /home/cirros/abctxt=/home/ubuntu/bsk/abc1 --file /home/cirros/abctxt=/home/ubuntu/bsk/abc1 --file /home/cirros/abctxt=/home/ubuntu/bsk/abc1 bsk1

Server got created

2) nova absolute-limits
+-------------------------+-------+
| Name | Value |
+-------------------------+-------+
| maxServerMeta | 128 |
| maxPersonality | 6 |
| maxImageMeta | 128 |
| maxPersonalitySize | 10240 |
| maxTotalRAMSize | 51200 |
| maxSecurityGroupRules | 20 |
| maxTotalKeypairs | 100 |
| totalRAMUsed | 4736 |
| maxSecurityGroups | 10 |
| totalFloatingIpsUsed | 0 |
| totalInstancesUsed | 10 |
| totalSecurityGroupsUsed | 1 |
| maxTotalFloatingIps | 10 |
| maxTotalInstances | 15 |
| totalCoresUsed | 10 |
| maxTotalCores | 20 |
+-------------------------+-------+

i even checked the limits for nova quota-class-show for the tenant 'demo' i am working on.

3) nova quota-class-show demo
+-----------------------------+-------+
| Quota | Limit |
+-----------------------------+-------+
| instances | 10 |
| cores | 20 |
| ram | 51200 |
| floating_ips | 10 |
| fixed_ips | -1 |
| metadata_items | 128 |
| injected_files | 5 |
| injected_file_content_bytes | 10240 |
| injected_file_path_bytes | 255 |
| key_pairs | 100 |
| security_groups | 10 |
| security_group_rules | 20 |
+-----------------------------+-------+

summary: - Check for the max personality files fails
+ Check for the max files in nova boot command fails
Revision history for this message
Thang Pham (thang-pham) wrote :

Have you tried using the command line? I got this error, which is not what you got, but is related.

$ nova boot --image cirros-0.3.2-x86_64-uec --flavor m1.tiny --file /tmp/openrc=/home/thang/git/devstack/openrc test1
ERROR (TypeError): __init__() got an unexpected keyword argument 'retry_after'

Revision history for this message
Sean Dague (sdague) wrote :

I think providing this via novaclient would be a good low hanging fruit patch

Changed in nova:
status: New → Confirmed
importance: Undecided → Low
tags: added: low-hanging-fruit
removed: absolute-limits nova
Revision history for this message
b.sudhakoushik (b-sudhakoushik) wrote :

Hi Thang

I tried it with cli...but i could not get such error. Might the nova versions are different.

Changed in nova:
assignee: nobody → Vladislav Belogrudov (vlad-belogrudov)
Joe Gordon (jogo)
tags: added: quotas
Revision history for this message
Joe Gordon (jogo) wrote :

I get:

$ nova boot --image=f8f69df3-46ba-4344-9b67-56a9ed2a1407 --flavor=42 --file foo=foo --file foo1=foo --file foo2=foo --file foo3=foo --file foo4=foo --file foo5=foo bob

ERROR (Forbidden): Personality file limit exceeded (HTTP 403) (Request-ID: req-23b6cbde-8870-433b-a950-60511e754c56)

Changed in nova:
status: Confirmed → Incomplete
assignee: Vladislav Belogrudov (vlad-belogrudov) → nobody
Revision history for this message
Sean Dague (sdague) wrote :

Looks non reproducable

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