Wednesday, 2023-03-15

opendevreviewArtem Goncharov proposed openstack/openstacksdk master: Implement acceptance test job  https://review.opendev.org/c/openstack/openstacksdk/+/86039907:42
viks__hi, how do i list projects if i have more than say 1000 projects either using openstack sdk or openstackclient(commandline)... i do not see any `marker` option?07:44
gtema1) using sdk you do not need to do it - it fetches automatically everything for you 2) marker and limit are "magic" params in sdk and are available pretty much everywhere07:45
opendevreviewArtem Goncharov proposed openstack/openstacksdk master: Implement acceptance test job  https://review.opendev.org/c/openstack/openstacksdk/+/86039907:54
viks__gtema: thanks... when i check my db on project table it lists around `2142` rows.. but using sdk, when i do `print(len(conn.list_projects()))` it gives me 1000.. what am i missing here?07:55
gtematry print(len(conn.connection.projects()))07:55
gtemasorry, conn.identity.projects()07:56
viks__gtema: gives same result.. i mean 100007:59
gtemathen a deeper debugging is required. What you can try is after ìmport openstackaddopenstack.enable_logging(debug=True)` - this will print you out all the requests going to the server08:01
gtemaso if you see that few requests are going to the server - sdk is doing all right. If not - maybe keystone gives some wrong information back why it is not trying to fetch next page08:01
viks__gtema:  i have set `list_limit = 1000` in keystone identity section.. is this the issue?08:08
gtemait depends. If Keystone in the response identifies there are more - SDK will try to fetch next page. But if KS is not even giving this page by hardly limiting - may be08:09
viks__gtema: i see in respose `"previous": null, "next": null`.. so what should i be doing to fix this?08:14
gtemahard question08:15
gtemait is most likely then a misimplementation of keystone, but honestly you should NEVER have so many projects in single domain - I guess it was never designed to be working properly in such case08:15
viks__gtema: ok.. let me investigate further.. i have created 1 project for each user... tht is why so many projects.. let me check more on this08:19
opendevreviewArtem Goncharov proposed openstack/openstacksdk master: Implement acceptance test job  https://review.opendev.org/c/openstack/openstacksdk/+/86039911:00
jkulikCould someone take another look at https://review.opendev.org/c/openstack/openstacksdk/+/866008 please? python-openstackclient seems to support "openstack port list --security-group" now, but openstacksdk still doesn't11:15
jkulikadditionally, openstackclient implements this filter as `security_groups` while that patch mapped the attribute to `security_group_ids` because the Port already contains that attribute11:16
jkulikso I'm wondering whether we need to change it now in the new patch or rather in openstackclient11:16
jkulikor maybe we can support both `security_groups` and `security_group_ids` as query parameters in openstacksdk11:26
opendevreviewArtem Goncharov proposed openstack/openstacksdk master: Implement acceptance test job  https://review.opendev.org/c/openstack/openstacksdk/+/86039911:27
opendevreviewArtem Goncharov proposed openstack/openstacksdk master: Implement acceptance test job  https://review.opendev.org/c/openstack/openstacksdk/+/86039913:49
opendevreviewMerged openstack/openstacksdk master: Revert "Revert "Add "security_group_ids" to Port's query parameters""  https://review.opendev.org/c/openstack/openstacksdk/+/86600814:31

Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!