opendevreview | Artem Goncharov proposed openstack/openstacksdk master: Implement acceptance test job https://review.opendev.org/c/openstack/openstacksdk/+/860399 | 07: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 |
gtema | 1) 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 everywhere | 07:45 |
opendevreview | Artem Goncharov proposed openstack/openstacksdk master: Implement acceptance test job https://review.opendev.org/c/openstack/openstacksdk/+/860399 | 07: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 |
gtema | try print(len(conn.connection.projects())) | 07:55 |
gtema | sorry, conn.identity.projects() | 07:56 |
viks__ | gtema: gives same result.. i mean 1000 | 07:59 |
gtema | then 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 server | 08:01 |
gtema | so 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 page | 08:01 |
viks__ | gtema: i have set `list_limit = 1000` in keystone identity section.. is this the issue? | 08:08 |
gtema | it 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 be | 08:09 |
viks__ | gtema: i see in respose `"previous": null, "next": null`.. so what should i be doing to fix this? | 08:14 |
gtema | hard question | 08:15 |
gtema | it 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 case | 08: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 this | 08:19 |
opendevreview | Artem Goncharov proposed openstack/openstacksdk master: Implement acceptance test job https://review.opendev.org/c/openstack/openstacksdk/+/860399 | 11:00 |
jkulik | Could 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't | 11:15 |
jkulik | additionally, openstackclient implements this filter as `security_groups` while that patch mapped the attribute to `security_group_ids` because the Port already contains that attribute | 11:16 |
jkulik | so I'm wondering whether we need to change it now in the new patch or rather in openstackclient | 11:16 |
jkulik | or maybe we can support both `security_groups` and `security_group_ids` as query parameters in openstacksdk | 11:26 |
opendevreview | Artem Goncharov proposed openstack/openstacksdk master: Implement acceptance test job https://review.opendev.org/c/openstack/openstacksdk/+/860399 | 11:27 |
opendevreview | Artem Goncharov proposed openstack/openstacksdk master: Implement acceptance test job https://review.opendev.org/c/openstack/openstacksdk/+/860399 | 13:49 |
opendevreview | Merged openstack/openstacksdk master: Revert "Revert "Add "security_group_ids" to Port's query parameters"" https://review.opendev.org/c/openstack/openstacksdk/+/866008 | 14:31 |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!