[Bug 1936419] [NEW] API does not support limits parameter

Heather Lemon 1936419 at bugs.launchpad.net
Thu Jul 15 17:17:29 UTC 2021


Public bug reported:

The API only supports a list_all for networks.

        """Fetches a list of all networks for a project."""
        # Pass filters in "params" argument to do_request
        return self.list('networks', self.networks_path, retrieve_all,
                         **_params)

Needs additional function with acceptable limit params.
If I have 100 networks, all 100 networks are returned.
This affects both horizon and the cli.

openstack network list -f json --limit 1

usage: openstack network list [-h] [-f {csv,json,table,value,yaml}] [-c COLUMN] [--quote {all,minimal,none,nonnumeric}] [--noindent] [--max-width <integer>] [--fit-width] [--print-empty][--sort-column SORT_COLUMN] [--external | --internal] [--long] [--name <name>] [--enable | --disable] [--project <project>][--project-domain <project-domain>] [--share | --no-share] [--status <status>] [--provider-network-type <provider-network-type>][--provider-physical-network <provider-physical-network>] [--provider-segment <provider-segment>] [--agent <agent-id>] [--tags <tag>[,<tag>,...]][--any-tags <tag>[,<tag>,...]] [--not-tags <tag>[,<tag>,...]] [--not-any-tags <tag>[,<tag>,...]]
openstack network list: error: unrecognized arguments: --limit 1

** Affects: python-openstackclient (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to python-openstackclient in Ubuntu.
https://bugs.launchpad.net/bugs/1936419

Title:
  API does not support limits parameter

Status in python-openstackclient package in Ubuntu:
  New

Bug description:
  The API only supports a list_all for networks.

          """Fetches a list of all networks for a project."""
          # Pass filters in "params" argument to do_request
          return self.list('networks', self.networks_path, retrieve_all,
                           **_params)

  Needs additional function with acceptable limit params.
  If I have 100 networks, all 100 networks are returned.
  This affects both horizon and the cli.

  openstack network list -f json --limit 1

  usage: openstack network list [-h] [-f {csv,json,table,value,yaml}] [-c COLUMN] [--quote {all,minimal,none,nonnumeric}] [--noindent] [--max-width <integer>] [--fit-width] [--print-empty][--sort-column SORT_COLUMN] [--external | --internal] [--long] [--name <name>] [--enable | --disable] [--project <project>][--project-domain <project-domain>] [--share | --no-share] [--status <status>] [--provider-network-type <provider-network-type>][--provider-physical-network <provider-physical-network>] [--provider-segment <provider-segment>] [--agent <agent-id>] [--tags <tag>[,<tag>,...]][--any-tags <tag>[,<tag>,...]] [--not-tags <tag>[,<tag>,...]] [--not-any-tags <tag>[,<tag>,...]]
  openstack network list: error: unrecognized arguments: --limit 1

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-openstackclient/+bug/1936419/+subscriptions




More information about the Ubuntu-openstack-bugs mailing list