In nova and novaclient, injected_file_content_bytes should be changed to injected-file-size.
Because
(1) novaclient/v2/shell.py
3877 _quota_resources = ['instances', 'cores', 'ram', 3878 'floating_ips', 'fixed_ips', 'metadata_items', 3879 'injected_files', 'injected_file_content_bytes', 3880 'injected_file_path_bytes', 'key_pairs', 3881 'security_groups', 'security_group_rules', 3882 'server_groups', 'server_group_members']
(2) python-openstackclient/openstackclient/common/quota.py
30 COMPUTE_QUOTAS = { 31 'cores': 'cores', 32 'fixed_ips': 'fixed-ips', 33 'floating_ips': 'floating-ips', 34 'injected_file_content_bytes': 'injected-file-size', 35 'injected_file_path_bytes': 'injected-path-size', 36 'injected_files': 'injected-files', 37 'instances': 'instances', 38 'key_pairs': 'key-pairs', 39 'metadata_items': 'properties', 40 'ram': 'ram', 41 'security_group_rules': 'secgroup-rules', 42 'security_groups': 'secgroups', 43 }
3. http://docs.openstack.org/developer/python-openstackclient/command-objects/quota.html
os quota set # Compute settings [--cores <num-cores>] [--fixed-ips <num-fixed-ips>] [--floating-ips <num-floating-ips>] [--injected-file-size <injected-file-bytes>] [--injected-files <num-injected-files>] [--instances <num-instances>] [--key-pairs <num-key-pairs>] [--properties <num-properties>] [--ram <ram-mb>]
# Volume settings [--gigabytes <new-gigabytes>] [--snapshots <new-snapshots>] [--volumes <new-volumes>] [--volume-type <volume-type>]
<project>
so when you use stack@openstack:~$ openstack quota set --injected-file-size 11 testproject_dx No quotas updatedstack@openstack:~$
If this bug is solved, plus the fix to https://bugs.launchpad.net/keystone/+bug/1420104 can solve these two.
In nova and novaclient, injected_ file_content_ bytes should be changed to injected-file-size.
Because
(1) v2/shell. py
novaclient/
3877 _quota_resources = ['instances', 'cores', 'ram', file_content_ bytes', file_path_ bytes', 'key_pairs', group_rules' , group_members' ]
3878 'floating_ips', 'fixed_ips', 'metadata_items',
3879 'injected_files', 'injected_
3880 'injected_
3881 'security_groups', 'security_
3882 'server_groups', 'server_
(2) openstackclient /openstackclien t/common/ quota.py
python-
30 COMPUTE_QUOTAS = { file_content_ bytes': 'injected- file-size' , file_path_ bytes': 'injected- path-size' , group_rules' : 'secgroup-rules',
31 'cores': 'cores',
32 'fixed_ips': 'fixed-ips',
33 'floating_ips': 'floating-ips',
34 'injected_
35 'injected_
36 'injected_files': 'injected-files',
37 'instances': 'instances',
38 'key_pairs': 'key-pairs',
39 'metadata_items': 'properties',
40 'ram': 'ram',
41 'security_
42 'security_groups': 'secgroups',
43 }
3. docs.openstack. org/developer/ python- openstackclient /command- objects/ quota.html
http://
os quota set injected- file-size <injected- file-bytes> ] injected- files <num-injected- files>]
# Compute settings
[--cores <num-cores>]
[--fixed-ips <num-fixed-ips>]
[--floating-ips <num-floating-ips>]
[--
[--
[--instances <num-instances>]
[--key-pairs <num-key-pairs>]
[--properties <num-properties>]
[--ram <ram-mb>]
# Volume settings
[--gigabytes <new-gigabytes>]
[--snapshots <new-snapshots>]
[--volumes <new-volumes>]
[--volume-type <volume-type>]
<project>
so when you use file-size 11 testproject_dx openstack: ~$
stack@openstack:~$ openstack quota set --injected-
No quotas updatedstack@
If this bug is solved, plus the fix to https:/ /bugs.launchpad .net/keystone/ +bug/1420104 can solve these two.