neutron net-list with pagination fails on too many subnets
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-neutronclient |
Fix Released
|
Undecided
|
Mykola Yakovliev |
Bug Description
To reproduce the bug you need to have a lot of subnets:
8192 (max uri length) / 40 (length of single subnet filter) = 204 subnets
In this situation when the count of subnets is over this value, the client will try to paginate request but fails because it does not count for a marker.
for i in `seq 1 254`; do neutron net-create test-net-$i ;done
for i in `seq 1 254`; do neutron subnet-create --name test-subnet-$i test-net-$i 172.25.$i.0/24;done
During "neutron net-list" call you will get an exception:
ERROR: neutronclient.shell An unknown exception occurred.
Traceback (most recent call last):
File "/usr/lib/
return run_command(cmd, cmd_parser, sub_argv)
File "/usr/lib/
return cmd.run(known_args)
File "/usr/lib/
return super(OpenStack
File "/usr/lib/
column_names, data = self.take_
File "/usr/lib/
return self.get_
File "/usr/lib/
self.
File "/usr/lib/
_get_
File "/usr/lib/
**search_
File "/usr/lib/
ret = self.function(
File "/usr/lib/
**_params)
File "/usr/lib/
for r in self._paginatio
File "/usr/lib/
res = self.get(path, params=params)
File "/usr/lib/
headers=
File "/usr/lib/
headers=
File "/usr/lib/
content_
File "/usr/lib/
self.
File "/usr/lib/
excess=uri_len - MAX_URI_LEN)
RequestURITooLong: An unknown exception occurred.
The problem happens because subnet pagination does not take in a count "&marker=uuid".
description: | updated |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
Fix proposed to branch: master /review. openstack. org/573821
Review: https:/