Hello Anton: "neutron-vpnaas" registers two quotas: * Vpn_endpoint_groups: https://github.com/openstack/neutron-vpnaas/blob/f82e5c7415646844654ffb97c02f52541be0c906/neutron_vpnaas/extensions/vpn_endpoint_groups.py#L83 * Vpnaas: https://github.com/openstack/neutron-vpnaas/blob/f82e5c7415646844654ffb97c02f52541be0c906/neutron_vpnaas/extensions/vpnaas.py#L499
These values are present in the API. Actually "neutron" CLI commands shows it because it prints what the API call returns. However OSC sets a static list of resources [1] for "network" quotas. Those 9 elements are in the "openstack quota list" output you printed. What you need is to improve OSC, reading what is returned in the API call and adding new elements that could be freely registered, as Neutron quota engine allows. BTW, you'll probably need to add those new parameters to [2], that is the Network Quota resource object the API is using to return the information. I'll add OSC to this bug. Regards. [1]https://github.com/openstack/python-openstackclient/blob/8f07476e53c8dd9ddeb4bd13f8e186c920eba1ee/openstackclient/common/quota.py#L69-L79 [2]https://github.com/openstack/openstacksdk/blob/master/openstack/network/v2/quota.py ** Also affects: python-openstackclient Importance: Undecided Status: New ** Changed in: neutron Importance: Undecided => Medium -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to neutron. https://bugs.launchpad.net/bugs/1967142 Title: No way to set quotas for neutron-vpnaas resources using openstack CLI tool Status in neutron: New Status in python-openstackclient: New Bug description: I can't find a way to set up VPN quotas using the CLI tools: neither the openstack CLI nor deprecated neutron CLI has this feature. I can only update VPN quotas using a direct API request (e.g. via curl). And can only list VPN quotas using neutron CLI tool. [root@node4578 ~]# curl -ks -H "x-auth-token: $token" -X PUT https://192.168.1.10:9696/v2.0/quotas/e28d46f9ce084b21a163f72ce1a49adf -d '{"quota": {"ipsec_site_connection": 5}}' {"quota": {"subnet": -1, "ikepolicy": -1, "subnetpool": -1, "network": -1, "ipsec_site_connection": 5, "endpoint_group": -1, "ipsecpolicy": -1, "security_group_device": -1, "security_group_rule": -1, "vpnservice": -1, "floatingip": -1, "security_group": -1, "router": -1, "rbac_policy": -1, "port": -1}} [root@node4578 ~]# [root@node4578 ~]# neutron quota-show e28d46f9ce084b21a163f72ce1a49adf neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead. +-----------------------+-------+ | Field | Value | +-----------------------+-------+ | endpoint_group | -1 | | floatingip | -1 | | ikepolicy | -1 | | ipsec_site_connection | 5 | | ipsecpolicy | -1 | | network | -1 | | port | -1 | | rbac_policy | -1 | | router | -1 | | security_group | -1 | | security_group_device | -1 | | security_group_rule | -1 | | subnet | -1 | | subnetpool | -1 | | vpnservice | -1 | +-----------------------+-------+ [root@node4578 ~]# openstack quota list --network --detail --project e28d46f9ce084b21a163f72ce1a49adf +----------------------+--------+----------+-------+ | Resource | In Use | Reserved | Limit | +----------------------+--------+----------+-------+ | subnets | 0 | 0 | -1 | | routers | 0 | 0 | -1 | | security_group_rules | 0 | 0 | -1 | | subnet_pools | 0 | 0 | -1 | | security_groups | 0 | 0 | -1 | | rbac_policies | 0 | 0 | -1 | | floating_ips | 0 | 0 | -1 | | networks | 0 | 0 | -1 | | ports | 0 | 0 | -1 | +----------------------+--------+----------+-------+ [root@node4578 ~]# To manage notifications about this bug go to: https://bugs.launchpad.net/neutron/+bug/1967142/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : [email protected] Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp

