yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #35458
[Bug 1475831] [NEW] injected_file_content_bytes should be changed to injected-file-size
You have been subscribed to a public bug:
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.
** Affects: nova
Importance: Undecided
Assignee: jiaxi (tjxiter)
Status: New
--
injected_file_content_bytes should be changed to injected-file-size
https://bugs.launchpad.net/bugs/1475831
You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to OpenStack Compute (nova).