Public bug reported:

According to http://specs.openstack.org/openstack/neutron-
specs/specs/pike/extend-quota-api-to-send-usage-stats.html

A new optional argument will be added to the openstack client, for example: $ 
openstack quota show {tenant_id/project_id} –detail
This adds following endpoint: GET /v2.0/quotas/{tenant_id}/detail
It reports detailed quotas for a specific tenant such as reserved, limit and 
used for each resource.
https://bugs.launchpad.net/neutron/+bug/1599488

But it still doesn't work in the latest queen version of OpenStack:
root@ubuntudbs:/opt/backuplocalconf# openstack quota list --network
+----------------------------------+--------------+----------+-------+---------------+---------+-----------------+----------------------+---------+--------------+
| Project ID                       | Floating IPs | Networks | Ports | RBAC 
Policies | Routers | Security Groups | Security Group Rules | Subnets | Subnet 
Pools |
+----------------------------------+--------------+----------+-------+---------------+---------+-----------------+----------------------+---------+--------------+
| 754081c072dd4bf3bc698dac57747fd7 |          100 |      100 |  1000 |          
  10 |      10 |              10 |                  100 |     100 |           
-1 |
+----------------------------------+--------------+----------+-------+---------------+---------+-----------------+----------------------+---------+--------------+
root@ubuntudbs:/opt/backuplocalconf# openstack quota show 
754081c072dd4bf3bc698dac57747fd7 --detail
usage: openstack quota show [-h] [-f {json,shell,table,value,yaml}]
                            [-c COLUMN] [--max-width <integer>] [--fit-width]
                            [--print-empty] [--noindent] [--prefix PREFIX]
                            [--class | --default]
                            [<project/class>]
openstack quota show: error: unrecognized arguments: --detail
root@ubuntudbs:/opt/backuplocalconf# 

root@ubuntudbs:/opt/backuplocalconf# neutron quota-list ZyxProject
neutron CLI is deprecated and will be removed in the future. Use openstack CLI 
instead.
+------------+---------+------+----------------------------------+-------------+--------+----------------+---------------------+--------+------------+----------------------------------+
| floatingip | network | port | project_id                       | rbac_policy 
| router | security_group | security_group_rule | subnet | subnetpool | 
tenant_id                        |
+------------+---------+------+----------------------------------+-------------+--------+----------------+---------------------+--------+------------+----------------------------------+
|        100 |     100 | 1000 | 754081c072dd4bf3bc698dac57747fd7 |          10 
|     10 |             10 |                 100 |    100 |         -1 | 
754081c072dd4bf3bc698dac57747fd7 |
+------------+---------+------+----------------------------------+-------------+--------+----------------+---------------------+--------+------------+----------------------------------+
root@ubuntudbs:/opt/backuplocalconf# neutron quota-show 
754081c072dd4bf3bc698dac57747fd7 --detail
neutron CLI is deprecated and will be removed in the future. Use openstack CLI 
instead.
+---------------------+-------+
| Field               | Value |
+---------------------+-------+
| floatingip          | 100   |
| network             | 100   |
| port                | 1000  |
| rbac_policy         | 10    |
| router              | 10    |
| security_group      | 10    |
| security_group_rule | 100   |
| subnet              | 100   |
| subnetpool          | -1    |
+---------------------+-------+
root@ubuntudbs:/opt/backuplocalconf# 

the neutron quota_details extension is ok:

root@ubuntudbs:/opt/backuplocalconf# neutron ext-list
neutron CLI is deprecated and will be removed in the future. Use openstack CLI 
instead.
+--------------------------------+----------------------------------------------------------------------------------------------+
| alias                          | name                                         
                                                |
+--------------------------------+----------------------------------------------------------------------------------------------+
| default-subnetpools            | Default Subnetpools                          
                                                |
| qos                            | Quality of Service                           
                                                |
| availability_zone              | Availability Zone                            
                                                |
| network_availability_zone      | Network Availability Zone                    
                                                |
| auto-allocated-topology        | Auto Allocated Topology Services             
                                                |
| ext-gw-mode                    | Neutron L3 Configurable external gateway 
mode                                                |
| binding                        | Port Binding                                 
                                                |
| agent                          | agent                                        
                                                |
| subnet_allocation              | Subnet Allocation                            
                                                |
| l3_agent_scheduler             | L3 Agent Scheduler                           
                                                |
| tag                            | Tag support                                  
                                                |
| external-net                   | Neutron external network                     
                                                |
| standard-attr-tag              | Tag support for resources with standard 
attribute: trunk, policy, security_group, floatingip |
| flavors                        | Neutron Service Flavors                      
                                                |
| net-mtu                        | Network MTU                                  
                                                |
| network-ip-availability        | Network IP Availability                      
                                                |
| qos-default                    | QoS default policy                           
                                                |
| quotas                         | Quota management support                     
                                                |
| revision-if-match              | If-Match constraints based on 
revision_number                                                |
| l3-ha                          | HA Router extension                          
                                                |
| provider                       | Provider Network                             
                                                |
| multi-provider                 | Multi Provider Network                       
                                                |
| quota_details                  | Quota details management support             
                                                |
| address-scope                  | Address scope                                
                                                |
| extraroute                     | Neutron Extra Route                          
                                                |
| net-mtu-writable               | Network MTU (writable)                       
                                                |
| subnet-service-types           | Subnet service types                         
                                                |
| standard-attr-timestamp        | Resource timestamps                          
                                                |
| service-type                   | Neutron Service Type Management              
                                                |
| qos-rule-type-details          | Details of QoS rule types                    
                                                |
| l3-flavors                     | Router Flavor Extension                      
                                                |
| port-security                  | Port Security                                
                                                |
| extra_dhcp_opt                 | Neutron Extra DHCP options                   
                                                |
| port-security-groups-filtering | Port filtering on security groups            
                                                |
| standard-attr-revisions        | Resource revision numbers                    
                                                |
| pagination                     | Pagination support                           
                                                |
| sorting                        | Sorting support                              
                                                |
| security-group                 | security-group                               
                                                |
| dhcp_agent_scheduler           | DHCP Agent Scheduler                         
                                                |
| router_availability_zone       | Router Availability Zone                     
                                                |
| rbac-policies                  | RBAC Policies                                
                                                |
| qos-bw-limit-direction         | Direction for QoS bandwidth limit rule       
                                                |
| tag-ext                        | Tag support for resources: subnet, 
subnetpool, port, router                                  |
| standard-attr-description      | standard-attr-description                    
                                                |
| ip-substring-filtering         | IP address substring filtering               
                                                |
| router                         | Neutron L3 Router                            
                                                |
| allowed-address-pairs          | Allowed Address Pairs                        
                                                |
| project-id                     | project_id field enabled                     
                                                |
| qos-fip                        | Floating IP QoS                              
                                                |
| dvr                            | Distributed Virtual Router                   
                                                |
+--------------------------------+----------------------------------------------------------------------------------------------+
root@ubuntudbs:/opt/backuplocalconf#

** Affects: neutron
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1754600

Title:
  the detail for openstack quota show is not supported

Status in neutron:
  New

Bug description:
  According to http://specs.openstack.org/openstack/neutron-
  specs/specs/pike/extend-quota-api-to-send-usage-stats.html

  A new optional argument will be added to the openstack client, for example: $ 
openstack quota show {tenant_id/project_id} –detail
  This adds following endpoint: GET /v2.0/quotas/{tenant_id}/detail
  It reports detailed quotas for a specific tenant such as reserved, limit and 
used for each resource.
  https://bugs.launchpad.net/neutron/+bug/1599488

  But it still doesn't work in the latest queen version of OpenStack:
  root@ubuntudbs:/opt/backuplocalconf# openstack quota list --network
  
+----------------------------------+--------------+----------+-------+---------------+---------+-----------------+----------------------+---------+--------------+
  | Project ID                       | Floating IPs | Networks | Ports | RBAC 
Policies | Routers | Security Groups | Security Group Rules | Subnets | Subnet 
Pools |
  
+----------------------------------+--------------+----------+-------+---------------+---------+-----------------+----------------------+---------+--------------+
  | 754081c072dd4bf3bc698dac57747fd7 |          100 |      100 |  1000 |        
    10 |      10 |              10 |                  100 |     100 |           
-1 |
  
+----------------------------------+--------------+----------+-------+---------------+---------+-----------------+----------------------+---------+--------------+
  root@ubuntudbs:/opt/backuplocalconf# openstack quota show 
754081c072dd4bf3bc698dac57747fd7 --detail
  usage: openstack quota show [-h] [-f {json,shell,table,value,yaml}]
                              [-c COLUMN] [--max-width <integer>] [--fit-width]
                              [--print-empty] [--noindent] [--prefix PREFIX]
                              [--class | --default]
                              [<project/class>]
  openstack quota show: error: unrecognized arguments: --detail
  root@ubuntudbs:/opt/backuplocalconf# 

  root@ubuntudbs:/opt/backuplocalconf# neutron quota-list ZyxProject
  neutron CLI is deprecated and will be removed in the future. Use openstack 
CLI instead.
  
+------------+---------+------+----------------------------------+-------------+--------+----------------+---------------------+--------+------------+----------------------------------+
  | floatingip | network | port | project_id                       | 
rbac_policy | router | security_group | security_group_rule | subnet | 
subnetpool | tenant_id                        |
  
+------------+---------+------+----------------------------------+-------------+--------+----------------+---------------------+--------+------------+----------------------------------+
  |        100 |     100 | 1000 | 754081c072dd4bf3bc698dac57747fd7 |          
10 |     10 |             10 |                 100 |    100 |         -1 | 
754081c072dd4bf3bc698dac57747fd7 |
  
+------------+---------+------+----------------------------------+-------------+--------+----------------+---------------------+--------+------------+----------------------------------+
  root@ubuntudbs:/opt/backuplocalconf# neutron quota-show 
754081c072dd4bf3bc698dac57747fd7 --detail
  neutron CLI is deprecated and will be removed in the future. Use openstack 
CLI instead.
  +---------------------+-------+
  | Field               | Value |
  +---------------------+-------+
  | floatingip          | 100   |
  | network             | 100   |
  | port                | 1000  |
  | rbac_policy         | 10    |
  | router              | 10    |
  | security_group      | 10    |
  | security_group_rule | 100   |
  | subnet              | 100   |
  | subnetpool          | -1    |
  +---------------------+-------+
  root@ubuntudbs:/opt/backuplocalconf# 

  the neutron quota_details extension is ok:

  root@ubuntudbs:/opt/backuplocalconf# neutron ext-list
  neutron CLI is deprecated and will be removed in the future. Use openstack 
CLI instead.
  
+--------------------------------+----------------------------------------------------------------------------------------------+
  | alias                          | name                                       
                                                  |
  
+--------------------------------+----------------------------------------------------------------------------------------------+
  | default-subnetpools            | Default Subnetpools                        
                                                  |
  | qos                            | Quality of Service                         
                                                  |
  | availability_zone              | Availability Zone                          
                                                  |
  | network_availability_zone      | Network Availability Zone                  
                                                  |
  | auto-allocated-topology        | Auto Allocated Topology Services           
                                                  |
  | ext-gw-mode                    | Neutron L3 Configurable external gateway 
mode                                                |
  | binding                        | Port Binding                               
                                                  |
  | agent                          | agent                                      
                                                  |
  | subnet_allocation              | Subnet Allocation                          
                                                  |
  | l3_agent_scheduler             | L3 Agent Scheduler                         
                                                  |
  | tag                            | Tag support                                
                                                  |
  | external-net                   | Neutron external network                   
                                                  |
  | standard-attr-tag              | Tag support for resources with standard 
attribute: trunk, policy, security_group, floatingip |
  | flavors                        | Neutron Service Flavors                    
                                                  |
  | net-mtu                        | Network MTU                                
                                                  |
  | network-ip-availability        | Network IP Availability                    
                                                  |
  | qos-default                    | QoS default policy                         
                                                  |
  | quotas                         | Quota management support                   
                                                  |
  | revision-if-match              | If-Match constraints based on 
revision_number                                                |
  | l3-ha                          | HA Router extension                        
                                                  |
  | provider                       | Provider Network                           
                                                  |
  | multi-provider                 | Multi Provider Network                     
                                                  |
  | quota_details                  | Quota details management support           
                                                  |
  | address-scope                  | Address scope                              
                                                  |
  | extraroute                     | Neutron Extra Route                        
                                                  |
  | net-mtu-writable               | Network MTU (writable)                     
                                                  |
  | subnet-service-types           | Subnet service types                       
                                                  |
  | standard-attr-timestamp        | Resource timestamps                        
                                                  |
  | service-type                   | Neutron Service Type Management            
                                                  |
  | qos-rule-type-details          | Details of QoS rule types                  
                                                  |
  | l3-flavors                     | Router Flavor Extension                    
                                                  |
  | port-security                  | Port Security                              
                                                  |
  | extra_dhcp_opt                 | Neutron Extra DHCP options                 
                                                  |
  | port-security-groups-filtering | Port filtering on security groups          
                                                  |
  | standard-attr-revisions        | Resource revision numbers                  
                                                  |
  | pagination                     | Pagination support                         
                                                  |
  | sorting                        | Sorting support                            
                                                  |
  | security-group                 | security-group                             
                                                  |
  | dhcp_agent_scheduler           | DHCP Agent Scheduler                       
                                                  |
  | router_availability_zone       | Router Availability Zone                   
                                                  |
  | rbac-policies                  | RBAC Policies                              
                                                  |
  | qos-bw-limit-direction         | Direction for QoS bandwidth limit rule     
                                                  |
  | tag-ext                        | Tag support for resources: subnet, 
subnetpool, port, router                                  |
  | standard-attr-description      | standard-attr-description                  
                                                  |
  | ip-substring-filtering         | IP address substring filtering             
                                                  |
  | router                         | Neutron L3 Router                          
                                                  |
  | allowed-address-pairs          | Allowed Address Pairs                      
                                                  |
  | project-id                     | project_id field enabled                   
                                                  |
  | qos-fip                        | Floating IP QoS                            
                                                  |
  | dvr                            | Distributed Virtual Router                 
                                                  |
  
+--------------------------------+----------------------------------------------------------------------------------------------+
  root@ubuntudbs:/opt/backuplocalconf#

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

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to