yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #59763
[Bug 1649665] [NEW] Erroneous limit parameter not included in error message for neutron port-list --limit
Public bug reported:
Running a "previously happy on Mitaka" cleanup script which included a:
neutron port-list --all-tenants --limit -1
command now returns an error under Newton:
stack@np-cp1-c0-m1-mgmt:~/rjones2$ neutron port-list --all-tenants --limit -1
Bad limit request: Limit must be an integer 0 or greater and not '%d'.
Neutron server returns request_ids: ['req-27f59b03-d063-4bd2-a84f-43a6545c1f41']
Independent of whether the command should still accept a -1, it would
seem the error message is in error - the percent-d should be the value
provided to the --limit option. Looking at
https://github.com/openstack/neutron/blob/master/neutron/api/api_common.py
one can see that "limit" is not added to msg in _get_limit_param.
** 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/1649665
Title:
Erroneous limit parameter not included in error message for neutron
port-list --limit
Status in neutron:
New
Bug description:
Running a "previously happy on Mitaka" cleanup script which included
a:
neutron port-list --all-tenants --limit -1
command now returns an error under Newton:
stack@np-cp1-c0-m1-mgmt:~/rjones2$ neutron port-list --all-tenants --limit -1
Bad limit request: Limit must be an integer 0 or greater and not '%d'.
Neutron server returns request_ids: ['req-27f59b03-d063-4bd2-a84f-43a6545c1f41']
Independent of whether the command should still accept a -1, it would
seem the error message is in error - the percent-d should be the value
provided to the --limit option. Looking at
https://github.com/openstack/neutron/blob/master/neutron/api/api_common.py
one can see that "limit" is not added to msg in _get_limit_param.
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1649665/+subscriptions
Follow ups