Activity log for bug #2045803

Date Who What changed Old value New value Message
2023-12-06 19:29:11 Lukas Piwowarski bug added bug
2023-12-06 19:29:11 Lukas Piwowarski attachment added filtering_bug_example.txt https://bugs.launchpad.net/bugs/2045803/+attachment/5726841/+files/filtering_bug_example.txt
2023-12-06 19:45:37 Lukas Piwowarski description There seems to be an inconsistency in filtering resources [1] using boolean options. For example, when I try to filter out members of a pool using admin_state_up boolean value then values like 'true' and 'false' work as expected. However, when I want to filter out all members using the backup (or other boolean fields like 'enabled') field then 'true'/'false' values do not work as expected. The user must use the values stored in the database 1/0 instead. curl -H 'Content-Type: application/json' \ -H 'Accept: application/json' \ -H 'X-Auth-Token: XXXXX' \ http://xxxxx/load-balancer/v2.0/lbaas/pools/XXXX/members?backup=true I get non-backup members from the pool in the response (see the attached file for more examples). [1] https://docs.openstack.org/api-ref/load-balancer/v2/#filtering-and-column-selection There seems to be an inconsistency in filtering resources [1] using boolean options. For example, when I try to filter out members of a pool using admin_state_up boolean value then values like 'true' and 'false' work as expected. However, when I want to filter out all members using the backup (or other boolean fields like 'enabled') field then 'true'/'false' values do not work as expected. The user must use the values stored in the database 1/0 instead. curl -H 'Content-Type: application/json' \      -H 'Accept: application/json' \      -H 'X-Auth-Token: XXXXX' \      http://xxxxx/load-balancer/v2.0/lbaas/pools/XXXX/members?backup=true I get non-backup members from the pool in the response. See the attached file for more examples. In the file, I work with 1 backup member and 2 default members. [1] https://docs.openstack.org/api-ref/load-balancer/v2/#filtering-and-column-selection
2023-12-06 20:22:51 Gregory Thiemonge octavia: importance Undecided Medium
2023-12-06 20:22:51 Gregory Thiemonge octavia: status New Confirmed
2023-12-07 12:48:59 OpenStack Infra octavia: status Confirmed In Progress
2023-12-18 14:34:31 Gregory Thiemonge octavia: assignee Gregory Thiemonge (gthiemonge)
2024-05-22 20:28:26 OpenStack Infra octavia: status In Progress Fix Released