openstack bgp [dragent|speaker] list filter commands dont return

Bug #2067039 reported by Maximilian Stinsky
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
python-neutronclient
Triaged
High
Lajos Katona

Bug Description

Upgrading python-neutronclient above version 9.0.0 leads to no returned values for filtered openstack bgp commands.

Example with version 9.0.0:
openstack bgp dragent list --bgp-speaker a5429ab8-38e6-4b0e-8f77-6f41c20521a3
+--------------------------------------+-------------------------+-------+-------+
| ID | Host | State | Alive |
+--------------------------------------+-------------------------+-------+-------+
| 1e65c58c-9926-46f6-b956-1bbff15103a1 | DE-ES-001-04-10-34-v4 | True | :-) |
| 1f6e3787-85a5-4489-ac5d-32b637bf6810 | DE-IX-002-02-06-05-2-v4 | True | :-) |
| c8f7735e-c695-408b-9c36-85d5788141be | DE-ES-001-04-10-04-5-v4 | True | :-) |
| d62cfb9a-6072-486e-b765-ecd04373e980 | DE-IX-002-02-06-01-2-v4 | True | :-) |
| fda30451-97f0-42c2-8d23-01c242a7df03 | DE-ES-001-04-10-04-6-v4 | True | :-) |
+--------------------------------------+-------------------------+-------+-------+

With version 10.0.0 and above:
openstack bgp dragent list --bgp-speaker a5429ab8-38e6-4b0e-8f77-6f41c20521a3
+----+------------+------+-------------------+-------+-------+--------+
| ID | Agent Type | Host | Availability Zone | Alive | State | Binary |
+----+------------+------+-------------------+-------+-------+--------+
| | | | | | | |
+----+------------+------+-------------------+-------+-------+--------+

Same happens for the openstack bgp speaker list --agent command. with versions above 9.0.0 the returned list is empty.

Tags: bgp
Revision history for this message
Brian Haley (brian-haley) wrote :

My guess is this was broken by accident when this code was changed to use the openstacksdk code [0] and dependencies.

So maybe my first question is did you also update the openstacksdk code and related libraries?

I'll ask Lajos to take a look at it as a quick looks the calls seem ok, but could be something here.

[0] https://review.opendev.org/c/openstack/python-neutronclient/+/868321

Changed in python-neutronclient:
status: New → Triaged
importance: Undecided → High
Revision history for this message
Lajos Katona (lajos-katona) wrote :

Monday I come back and check it also.

tags: added: bgp
Revision history for this message
Maximilian Stinsky (mstinsky) wrote :

Hi Brian, hi Lajos,

I tested it with different openstacksdk versions between 1.0.0 and 3.0.0.
Regarding other libraries I just pip installed the neutronclient via:
pip3 install python-neutronclient==$version

pip does not complain about any incompatible requirements so I assume the defined requirements for python-neutronclient should be met.

Revision history for this message
Lajos Katona (lajos-katona) wrote :

I run into another issue when tried to check this issue: https://bugs.launchpad.net/neutron/+bug/2067296

Changed in python-neutronclient:
assignee: nobody → Lajos Katona (lajos-katona)
Revision history for this message
Lajos Katona (lajos-katona) wrote :

Could you please add this patch to your openstacksdk package:
https://review.opendev.org/c/openstack/openstacksdk/+/920670 ?

Revision history for this message
Maximilian Stinsky (mstinsky) wrote :

Hi Lajos,

I applied your patch to openstacksdk version 3.0.0 and can confirm that python-neutronclient >= 10.0.0 is returning values again.

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.