opendevreview | Artem Goncharov proposed openstack/openstacksdk master: Implement acceptance test job https://review.opendev.org/c/openstack/openstacksdk/+/860399 | 09:15 |
---|---|---|
opendevreview | Stephen Finucane proposed openstack/python-openstackclient master: Wait for volume being available to set bootable or readonly https://review.opendev.org/c/openstack/python-openstackclient/+/845991 | 09:55 |
opendevreview | Merged openstack/python-openstackclient master: doc: Update nova command mapping https://review.opendev.org/c/openstack/python-openstackclient/+/858952 | 10:03 |
opendevreview | Stephen Finucane proposed openstack/python-openstackclient master: zuul: Merge osc-functional-devstack-base into only child https://review.opendev.org/c/openstack/python-openstackclient/+/863898 | 10:04 |
opendevreview | Artem Goncharov proposed openstack/openstacksdk master: Implement acceptance test job https://review.opendev.org/c/openstack/openstacksdk/+/860399 | 10:05 |
opendevreview | Mark Goddard proposed openstack/ansible-collections-openstack master: Add baremetal_deploy_template module https://review.opendev.org/c/openstack/ansible-collections-openstack/+/874755 | 10:07 |
opendevreview | Stephen Finucane proposed openstack/python-openstackclient master: Add missing documentation for state options for "image set" https://review.opendev.org/c/openstack/python-openstackclient/+/813393 | 10:15 |
opendevreview | Gaël THEROND proposed openstack/ansible-collections-openstack master: Add module to filter available volume services. https://review.opendev.org/c/openstack/ansible-collections-openstack/+/868480 | 11:03 |
opendevreview | Merged openstack/python-openstackclient master: Deprecate positional args for 'volume group create' https://review.opendev.org/c/openstack/python-openstackclient/+/874151 | 12:32 |
opendevreview | Merged openstack/python-openstackclient master: volume: Remove duplication from 'consistency group create' opts https://review.opendev.org/c/openstack/python-openstackclient/+/873730 | 12:32 |
opendevreview | Merged openstack/python-openstackclient master: Add port ranges on floating ip portforwardings cli https://review.opendev.org/c/openstack/python-openstackclient/+/836870 | 12:32 |
opendevreview | Merged openstack/python-openstackclient master: Fix really long help strings https://review.opendev.org/c/openstack/python-openstackclient/+/867272 | 12:32 |
opendevreview | Merged openstack/python-openstackclient master: Update 'host list' and 'host show' command to use sdk https://review.opendev.org/c/openstack/python-openstackclient/+/866818 | 12:32 |
opendevreview | Merged openstack/python-openstackclient master: Wait for volume being available to set bootable or readonly https://review.opendev.org/c/openstack/python-openstackclient/+/845991 | 12:32 |
opendevreview | Merged openstack/python-openstackclient master: Drop default from ask_user_yesno question https://review.opendev.org/c/openstack/python-openstackclient/+/868674 | 12:32 |
opendevreview | Merged openstack/python-openstackclient master: Add missing documentation for state options for "image set" https://review.opendev.org/c/openstack/python-openstackclient/+/813393 | 12:53 |
opendevreview | Artem Goncharov proposed openstack/openstacksdk master: Implement acceptance test job https://review.opendev.org/c/openstack/openstacksdk/+/860399 | 13:37 |
opendevreview | Gaël THEROND proposed openstack/ansible-collections-openstack master: Add module to filter available volume services. https://review.opendev.org/c/openstack/ansible-collections-openstack/+/868480 | 13:38 |
ozzzo_work | I'm trying to use the SDK to pull a list of security groups with "cloud.network.security_groups()" | 14:07 |
ozzzo_work | That works fine for small clusters but on large clusters it times out with: 504 Gateway Time-out: The server didn't respond in time. | 14:07 |
ozzzo_work | I tried adding --timeout=1000 but it seems to be ignored; the call times out after 60 seconds | 14:08 |
ozzzo_work | https://paste.openstack.org/show/b96XXB9Us8utAlk57DCt/ | 14:08 |
ozzzo_work | What am I missing? | 14:08 |
gtema | then you either implement some reasonable filter or you analyze your SGs in a loop, since "security_groups()" return generator | 14:08 |
ozzzo_work | how do I loop through the generator? | 14:09 |
gtema | for sg in cloud.network.security_groups(): | 14:09 |
ozzzo_work | ok I'll try that | 14:09 |
gtema | if even that doesnot help try adding "limit=100" parameter into the listing call. That should instruct server to only return 100 entries per "page" | 14:10 |
ozzzo_work | Does the timeout not work? I see it here: https://github.com/openstack/openstacksdk/blob/master/openstack/config/loader.py#L755 | 14:16 |
gtema | how do you pass it? | 14:17 |
ozzzo_work | I'm passing it when I open the connection at line 57 | 14:27 |
gtema | ah, I overseen paste | 14:29 |
gtema | generally it uses it, but it is not able to instruct server (proxy) to wait longer. In your case since you get 504 it means that proxy server of your cloud is not capable to get response in defined time | 14:30 |
gtema | timeout will not help you further. You need to start using "limit" option to the list | 14:30 |
ozzzo_work | ok | 14:31 |
ozzzo_work | is there a document on paging? | 14:31 |
gtema | https://docs.openstack.org/api-ref/network/v2/index.html?expanded=list-security-groups-detail#pagination | 14:35 |
gtema | but you need to only use "limit" which limits page size, pagination as such is managed by sdk itself | 14:36 |
ozzzo_work | that works, ty! | 14:50 |
opendevreview | Gaël THEROND proposed openstack/ansible-collections-openstack master: Add module to filter available volume services. https://review.opendev.org/c/openstack/ansible-collections-openstack/+/868480 | 15:12 |
lutimura | Hi guys. I've a question about OpenStackClient (OSC) plugins discovery order. | 17:19 |
lutimura | I have a custom plugin that introduces some commands to the OSC's CLI and also overrides some of the entry points defined by other plugins (e.g., python-glanceclient). Due to these entry points overrides, the order in which my plugin is loaded in OSC is extremely important to determine whether the CLI will be able to redirect the Glance-related commands to my entry points or not (for example, to python-glanceclient's entry points instead). | 17:19 |
lutimura | So my question is, currently, is there a way to set the plugin load order in OSC? To ensure all custom plugins are loaded last? | 17:19 |
frickler | lutimura: I don't think that we (want to) support that use case. IMO the best solution for your issue would be to also patch the existing plugins to drop the commands you want to override. or even better, submit your changes upstream for those plugins | 18:48 |
opendevreview | Merged openstack/os-api-ref master: Fix the 'No such file or directory' error https://review.opendev.org/c/openstack/os-api-ref/+/874332 | 19:04 |
gtema | +1 to fricler's statement | 19:04 |
lutimura | frickler: Thanks for answering. I agree with you. It really makes more sense to keep the plugins focused on extending the CLI instead of overwriting existing entry points (of other plugins). Anyways, I'll think about some alternatives and I'll definitely consider the possibility of going upstream. Again, thank you. | 20:15 |
opendevreview | Christopher Parks proposed openstack/openstacksdk master: Add share types to shared file systems. https://review.opendev.org/c/openstack/openstacksdk/+/783123 | 21:21 |
opendevreview | Christopher Parks proposed openstack/openstacksdk master: Add share types to shared file systems. https://review.opendev.org/c/openstack/openstacksdk/+/783123 | 21:34 |
opendevreview | Christopher Parks proposed openstack/openstacksdk master: Add share types to shared file systems. https://review.opendev.org/c/openstack/openstacksdk/+/783123 | 21:47 |
opendevreview | Arvid Requate proposed openstack/keystoneauth master: New auth plugin v3oidcdeviceauthz https://review.opendev.org/c/openstack/keystoneauth/+/869876 | 22:28 |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!