Can't set quota for Fixed IPs and quota shows different values

Bug #1580613 reported by Alexander Koryagin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mirantis OpenStack
Status tracked in 10.0.x
10.0.x
Invalid
Undecided
Alexander Koryagin
9.x
Invalid
Undecided
Alexander Koryagin

Bug Description

Hello,
Please take a look at the to issues:
  1) Different components show different values for quota:
  2) It is not possible to set quota for "Fixed IPs".

My env:
MOS 9.0 ISO #217
3x controllers + 2x compute,cinder

Details:
(1) Different components show different values for quotas.

  In Horizon WEB set quota for 'Floating IPs' = 48 for 'admin' project.
  Identity -> Projects -> admin -> Modify Quotas -> Floating IPs = 48

  Check in console for controller:
  # openstack quota show admin | grep floating
      >> OK: floating-ips 48
  # nova quota-show --tenant admin | grep floating
      >> NOK: floating_ips -1
  # neutron quota-show admin | grep floating
      >> NOK: floatingip 50
  All three different numbers: 48, -1, 50

  The same for "Security Groups" = 7:
  # openstack quota show admin | grep secgroups
      >> OK: secgroups 7
  # nova quota-show --tenant admin | grep security_groups
      >> NOK: security_groups -1
  # neutron quota-show admin | grep security_group
      >> NOK: security_group 10
  All three different numbers: 7, -1, 10

(2) It is not possible to set quota for "Fixed IPs".

  There are no such value inside Horizon in 'Quota' tab for existing or during creation of new projects.
  Identity -> Projects -> %project name% -> Modify Quotas
  Identity -> Projects -> Create project -> Quotas
  (see attached 'quotas_create_new_prj.png')

  If I try to set this value in console it remains the same.
  As there are no output, all looks like value was sec successfully.
  But it wasn't and remains to be '-1'.

  # nova quota-update --fixed-ips 7 admin
  # nova quota-show --tenant admin | grep 'fixed_ips'
      >> NOK: fixed_ips -1

  # nova quota-class-update --fixed-ips 7 admin
  # nova quota-class-show admin | grep 'fixed_ips'
      >> NOK: fixed_ips -1

  # openstack quota set --fixed-ips 7 admin
  # openstack quota show admin | grep fixed-ips
      >> NOK: fixed_ips -1

  Inside 'neutron quota-show' there are no 'fixed-ips' quota:
  # neutron quota-show admin ## No fixed-ips

Here is content of my 'openrc' file:
root@node-4:~# cat openrc
    #!/bin/sh
    export OS_NO_CACHE='true'
    export OS_TENANT_NAME='admin'
    export OS_PROJECT_NAME='admin'
    export OS_USERNAME='admin'
    export OS_PASSWORD='admin'
    export OS_AUTH_URL='http://10.109.1.3:5000/v2.0'
    export OS_DEFAULT_DOMAIN='Default'
    export OS_AUTH_STRATEGY='keystone'
    export OS_REGION_NAME='RegionOne'
    export CINDER_ENDPOINT_TYPE='internalURL'
    export GLANCE_ENDPOINT_TYPE='internalURL'
    export KEYSTONE_ENDPOINT_TYPE='internalURL'
    export NOVA_ENDPOINT_TYPE='internalURL'
    export NEUTRON_ENDPOINT_TYPE='internalURL'
    export OS_ENDPOINT_TYPE='internalURL'
    export MURANO_REPO_URL='http://storage.apps.openstack.org/'

Revision history for this message
Alexander Koryagin (akoryagin) wrote :
Revision history for this message
Alexander Koryagin (akoryagin) wrote :
tags: added: area-nova area-openstackclient
Revision history for this message
Bug Checker Bot (bug-checker) wrote : Autochecker

(This check performed automatically)
Please, make sure that bug description contains the following sections filled in with the appropriate data related to the bug you are describing:

actual result

expected result

steps to reproduce

For more detailed information on the contents of each of the listed sections see https://wiki.openstack.org/wiki/Fuel/How_to_contribute#Here_is_how_you_file_a_bug

tags: added: need-info
Revision history for this message
Roman Podoliaka (rpodolyaka) wrote :

What is the quota driver used in Nova?(quota_driver option value in nova.conf)

Revision history for this message
Roman Podoliaka (rpodolyaka) wrote :

^ look like you use NoopQuota driver (which specifically returns -1 to denote the fact that quotas *are not* checked).

Not sure what openstackclient refers to.

Does neutron have a notion of fixed IPs at all? Isn't it ports?

Revision history for this message
Eugene Nikanorov (enikanorov) wrote :

No, it's a derived notion. The quota is for ports, fixed ips are limited implicitly by ports*subnets limit

Revision history for this message
Alexander Koryagin (akoryagin) wrote :

root@node-4:~# grep -i 'quot' /etc/nova/nova.conf
quota_server_group_members=10
quota_ram=51200
quota_driver=nova.quota.NoopQuotaDriver
quota_security_groups=10
quota_cores=100
quota_fixed_ips=-1
quota_security_group_rules=20
quota_floating_ips=100
quota_key_pairs=10
quota_instances=100
quota_injected_file_path_length=4096
quota_server_groups=10
quota_metadata_items=1024
quota_injected_files=50
quota_injected_file_content_bytes=102400

Revision history for this message
Timur Nurlygayanov (tnurlygayanov) wrote :

Ok, it looks like we used default driver and it is expected behaviour.
We are going to check this with Nova Quotas Driver.

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.