← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1475831] Re: injected_file_content_bytes should be changed to injected-file-size

 

** Project changed: python-openstackclient => nova

** Description changed:

  In nova and novaclient, injected_file_content_bytes should be changed to
- injected-file-size.
+ 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',                                                   
+ 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 }  
+  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>]
+     # 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>]
+     # Volume settings
+     [--gigabytes <new-gigabytes>]
+     [--snapshots <new-snapshots>]
+     [--volumes <new-volumes>]
+     [--volume-type <volume-type>]
  
-     <project>
- 
+     <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.

** Description changed:

  In nova and novaclient, injected_file_content_bytes should be changed to
  injected_file_size.
  
  Because
  
  (1)
+ nova/quota.py
+ nvoa/compute/api.py
+ 
+ please use 'grep -r injected_file_content_bytes' to look at
+ 
+ (2)
  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)
+ (3)
  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.
+ (4).
  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.
+ 
+ 
+ So the bug is related with nova and novaclient.

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1475831

Title:
  injected_file_content_bytes should be changed to injected-file-size

Status in OpenStack Compute (nova):
  New

Bug description:
  In nova and novaclient, injected_file_content_bytes should be changed
  to injected_file_size.

  Because

  (1)
  nova/quota.py
  nvoa/compute/api.py

  please use 'grep -r injected_file_content_bytes' to look at

  (2)
  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']

  (3)
  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 }

  (4).
  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.

  
  So the bug is related with nova and novaclient.

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1475831/+subscriptions