| Posted | Nick | Remark | |
|---|---|---|---|
| #openstack-sdks - 2024-04-16 | |||
| 06:57:31 | opendevreview | Tobias Urdin proposed openstack/openstacksdk master: Fix multiple image_id query mappings https://review.opendev.org/c/openstack/openstacksdk/+/910955 | |
| 06:57:51 | opendevreview | Tobias Urdin proposed openstack/openstacksdk master: Fix multiple image_id query mappings https://review.opendev.org/c/openstack/openstacksdk/+/910955 | |
| 06:58:02 | opendevreview | Tobias Urdin proposed openstack/openstacksdk master: Fix multiple image_id query mappings https://review.opendev.org/c/openstack/openstacksdk/+/910955 | |
| 09:07:09 | opendevreview | Bence Romsics proposed openstack/python-openstackclient master: Improve output of 'server migrate --wait' https://review.opendev.org/c/openstack/python-openstackclient/+/915974 | |
| 11:48:01 | lajoskatona | Hi, a quick question perhaps you have some background | |
| 11:48:34 | lajoskatona | ansible-modules-core (https://github.com/ansible/ansible-modules-core/blob/devel/cloud/openstack/README.md) says that it still uses shade instead of SDK | |
| 11:49:12 | lajoskatona | shade states that it is dead and use SDK instead (https://opendev.org/openstack/shade ) | |
| 11:50:49 | lajoskatona | I should go to Kolla team for this bu do you know if Kolla can use https://opendev.org/openstack/ansible-collections-openstack isntead of ansible-modules-core, or by using ansible for kolla (and openstack ansible) you hardcoded to use ansible-modules-core and shade? | |
| 11:52:04 | lajoskatona | perhaps you know who to ask why ansible still depends on shade ? Worst case I can file an issue for ansible-modules-core asking this question but first I thought I ask these in-house :-) | |
| 11:53:00 | lajoskatona | and after reading it it was not "A" question and and was not "Quick", sorry.... | |
| 12:07:50 | frickler | lajoskatona: to your first link: "This repository has been archived by the owner on Oct 31, 2018. It is now read-only." | |
| 12:08:52 | frickler | ansible-collections-openstack is part of the default ansible module collection afaict and uses openstacksdk for some time (and recentish also sdk >= 1.0) | |
| 12:09:18 | frickler | otoh that project is also mostly dead though after redhat lost interest or focus | |
| 12:09:29 | lajoskatona | frickler: ohh, true, so I have to find what ansible is using now to work with Openstack | |
| 12:09:58 | lajoskatona | frickler: uhh, good to know | |
| 12:22:40 | lajoskatona | frickler: thanks | |
| 12:36:34 | opendevreview | Tobias Urdin proposed openstack/openstacksdk master: Add Binero public cloud to vendor support https://review.opendev.org/c/openstack/openstacksdk/+/915984 | |
| 14:08:41 | opendevreview | Mridula Joshi proposed openstack/openstacksdk master: Adding SDK support for ``glance md-namespace-objects-delete`` https://review.opendev.org/c/openstack/openstacksdk/+/901671 | |
| 15:19:44 | opendevreview | Mridula Joshi proposed openstack/python-openstackclient master: Adds CLI support for ``glance md-namespace-properties-delete`` https://review.opendev.org/c/openstack/python-openstackclient/+/905746 | |
| #openstack-sdks - 2024-04-17 | |||
| 10:37:09 | opendevreview | Merged openstack/openstacksdk master: volume: Allow setting volume statuses individually https://review.opendev.org/c/openstack/openstacksdk/+/915722 | |
| 10:37:11 | opendevreview | Merged openstack/openstacksdk master: volume: Add ability to set, unset image metadata https://review.opendev.org/c/openstack/openstacksdk/+/915723 | |
| 10:37:13 | opendevreview | Merged openstack/openstacksdk master: volume: Allow passing a volume type object to retype_volume https://review.opendev.org/c/openstack/openstacksdk/+/915724 | |
| 10:37:15 | opendevreview | Merged openstack/openstacksdk master: Add Tap Mirrors to SDK https://review.opendev.org/c/openstack/openstacksdk/+/886084 | |
| 12:49:20 | opendevreview | Artem Goncharov proposed openstack/codegenerator master: add volume.limit schema https://review.opendev.org/c/openstack/codegenerator/+/916103 | |
| 12:49:21 | opendevreview | Artem Goncharov proposed openstack/codegenerator master: add volume.resource_filters schema https://review.opendev.org/c/openstack/codegenerator/+/916104 | |
| 14:06:29 | ozzzo_work | We're rebuilding our clusters from Train to Wallaby, and we're having some trouble with the compute SDK now. We're calling cloud.compute.hypervisors(details=True) and in Train that returns a bunch of stuff | |
| 14:06:34 | ozzzo_work | free_disk_gb': 2744, 'local_gb': 3574, 'memory_mb_used': 169504,... | |
| 14:06:42 | ozzzo_work | In Wallaby, these values come back "None" | |
| 14:07:09 | ozzzo_work | We get some basic stuff like the hypervisor name and IP, but many of the values are "None" | |
| 14:07:39 | ozzzo_work | Do we need to use a different syntax for Wallaby? | |
| 14:17:50 | opendevreview | Merged openstack/codegenerator master: add volume.limit schema https://review.opendev.org/c/openstack/codegenerator/+/916103 | |
| 14:31:58 | opendevreview | Merged openstack/codegenerator master: add volume.resource_filters schema https://review.opendev.org/c/openstack/codegenerator/+/916104 | |
| 15:26:36 | ozzzo_work | In the code I see "# Lot of attributes are dropped in 2.88" | |
| 15:26:41 | ozzzo_work | https://github.com/openstack/openstacksdk/blob/master/openstack/compute/v2/hypervisor.py#L34 | |
| 15:26:57 | ozzzo_work | Is it possible to use <2.88 with Wallaby? | |
| 15:57:23 | opendevreview | Artem Goncharov proposed openstack/codegenerator master: add volume.snapshot schemas https://review.opendev.org/c/openstack/codegenerator/+/916122 | |
| 16:00:07 | ozzzo_work | When I use CLi it seems to be using 2.1 | |
| 16:05:40 | ozzzo_work | REQ: curl -g -i -X GET https://api-ext.region.ourdomain.com:8774/v2.1/os-hypervisors/detail | |
| 16:30:03 | opendevreview | Merged openstack/codegenerator master: add volume.snapshot schemas https://review.opendev.org/c/openstack/codegenerator/+/916122 | |
| 17:21:42 | stephenfin | ozzzo_work: yeah, you'll need to request an older microversion to get that stuff back. Or better, query placement which has far more accurate and useful info available | |
| 17:22:37 | stephenfin | You can also pass an 'X-OpenStack-Nova-API-Version' header with curl to get microversioned responses back | |
| 17:31:48 | ozzzo_work | stephenfin: What's the best way to request an older version in my SDK call? This is what I'm doing now: | |
| 17:31:49 | ozzzo_work | for hypervisor in cloud.compute.hypervisors(details=True): | |
| 17:38:07 | stephenfin | just pass `microversion='2.xx'` | |
| 17:41:49 | ozzzo_work | I tried this: for hypervisor in cloud.compute.hypervisors(details=True,microversion='2.1'): | |
| 17:42:03 | ozzzo_work | but I get error "openstack.exceptions.InvalidResourceQuery: Invalid query params: microversion" | |
| 17:44:04 | stephenfin | >>> from openstack import connection | |
| 17:44:04 | stephenfin | >>> conn = connection.Connection('devstack-admin') | |
| 17:44:04 | stephenfin | >>> list(conn.compute.hypervisors(detail=True, microversion='2.50')) | |
| 17:44:04 | stephenfin | [...] | |
| 17:44:39 | stephenfin | working fine on my end? | |
| 17:44:39 | stephenfin | using 3.0.1 | |
| 17:46:21 | stephenfin | Also fine on 2.1.0 fwiw | |
| 17:48:25 | ozzzo_work | I must be missing something. I see that you're using "detail=True" but I have "details=True" and if I remove the "s" I get an error: | |
| 17:48:27 | ozzzo_work | openstack.exceptions.InvalidResourceQuery: Invalid query params: microversion,detail | |
| 17:49:09 | ozzzo_work | Maybe I need to import connection separately? I'm just importing openstack | |
| 17:50:05 | ozzzo_work | Then I create the connection with " cloud = openstack.connect(cloud='envvars')" | |
| 17:58:04 | ozzzo_work | Tried that; it didn't make a difference. I see that I'm running the SDK from /app/venv/ent-ansible-2.9.27/lib64/python3.6/site-packages/openstack/resource.py - do I need to use a newer version of the SDK? | |
| 18:16:06 | stephenfin | ozzzo_work: Yeah, no idea what's going on unfortunately. detail (without the 's', i.e. a typo) was just being ignored for me. If I correct it to 'details' I get the actual detailed response. No issues using connect directly from openstack either | |
| 18:16:23 | stephenfin | >>> import openstack | |
| 18:16:24 | stephenfin | >>> cloud = openstack.connect(cloud='devstack-admin') | |
| 18:16:32 | stephenfin | >>> list(cloud.compute.hypervisors(details=True,microversion='2.1')) | |
| 18:16:36 | stephenfin | [...] | |
| 18:17:31 | stephenfin | (also works if I use envvars, fwiw) | |
| 18:18:19 | stephenfin | I'd say you have an old version of openstacksdk tbh | |
| 18:19:40 | stephenfin | Yeah, it fails if I run with openstacksdk 0.59.0. Works on 1.1.0 though. You need a newer SDK version | |
| 18:21:02 | ozzzo_work | looks like that was it; ty stephenfin | |
| #openstack-sdks - 2024-04-18 | |||
| 08:26:53 | opendevreview | Merged openstack/openstacksdk master: Fixed update_metadef_object https://review.opendev.org/c/openstack/openstacksdk/+/908916 | |
| 08:45:54 | opendevreview | Artem Goncharov proposed openstack/codegenerator master: remove unnecessary imports in cinder schemas https://review.opendev.org/c/openstack/codegenerator/+/916170 | |
| 09:37:05 | opendevreview | Merged openstack/codegenerator master: remove unnecessary imports in cinder schemas https://review.opendev.org/c/openstack/codegenerator/+/916170 | |
| #openstack-sdks - 2024-04-19 | |||
| 07:20:02 | opendevreview | Merged openstack/os-client-config master: Update python classifier in setup.cfg https://review.opendev.org/c/openstack/os-client-config/+/905373 | |
| 09:59:55 | opendevreview | Merged openstack/os-service-types master: Bump hacking https://review.opendev.org/c/openstack/os-service-types/+/909334 | |
| 15:12:19 | opendevreview | Sebastian Lohff proposed openstack/openstacksdk master: Allow filtering BGPVPNs https://review.opendev.org/c/openstack/openstacksdk/+/916523 | |
| #openstack-sdks - 2024-04-20 | |||
| 14:22:31 | opendevreview | Artem Goncharov proposed openstack/codegenerator master: add volume.message schemas https://review.opendev.org/c/openstack/codegenerator/+/916573 | |
| 14:22:32 | opendevreview | Artem Goncharov proposed openstack/codegenerator master: fix volume.limit schema https://review.opendev.org/c/openstack/codegenerator/+/916574 | |
| 14:22:32 | opendevreview | Artem Goncharov proposed openstack/codegenerator master: fix volume.manageable-volumes schema https://review.opendev.org/c/openstack/codegenerator/+/916575 | |
| 15:21:35 | opendevreview | Merged openstack/codegenerator master: add volume.message schemas https://review.opendev.org/c/openstack/codegenerator/+/916573 | |
| 15:21:43 | opendevreview | Merged openstack/codegenerator master: fix volume.limit schema https://review.opendev.org/c/openstack/codegenerator/+/916574 | |
| 15:34:44 | opendevreview | Merged openstack/codegenerator master: fix volume.manageable-volumes schema https://review.opendev.org/c/openstack/codegenerator/+/916575 | |
| 18:07:35 | opendevreview | Takashi Kajinami proposed openstack/os-api-ref master: Replace deprecated sphinx.testing.path https://review.opendev.org/c/openstack/os-api-ref/+/916582 | |
| 18:12:04 | opendevreview | Takashi Kajinami proposed openstack/os-api-ref master: Replace deprecated sphinx.testing.path https://review.opendev.org/c/openstack/os-api-ref/+/916582 | |
| #openstack-sdks - 2024-04-21 | |||
| 05:40:30 | opendevreview | Michael Still proposed openstack/openstacksdk master: Remove mypy union line which breaks older pythons. https://review.opendev.org/c/openstack/openstacksdk/+/915199 | |
| #openstack-sdks - 2024-04-22 | |||
| 13:02:38 | opendevreview | Artem Goncharov proposed openstack/codegenerator master: fix volume.attachments schema https://review.opendev.org/c/openstack/codegenerator/+/916628 | |
| 13:56:42 | ozzzo_work | I'm switching from an ancient version of the sdk to 3.10. In 0.59 we were using list_role_assignments which lists all of the role assignments across all projects and users. I'm looking here: | |
| 13:56:43 | ozzzo_work | https://opendev.org/openstack/openstacksdk/src/branch/master/examples/identity/list.py#L84-L109 | |
| 13:57:26 | ozzzo_work | and I don't see anything that will list all role assignments. | |
| 13:57:45 | ozzzo_work | In the new SDK do I need to go project by project to get all of the role assignments? | |
| 13:57:51 | ozzzo_work | Or is there a better way? | |
| 14:08:25 | opendevreview | Simon Hensel proposed openstack/openstacksdk master: Extend project cleanup https://review.opendev.org/c/openstack/openstacksdk/+/915327 | |
| 14:44:55 | opendevreview | Artem Goncharov proposed openstack/codegenerator master: Convert docstrings to md https://review.opendev.org/c/openstack/codegenerator/+/916644 | |
| 14:55:15 | ozzzo_work | experimenting further; it looks like list_role_assignments still works although undocumented, but it seems to return the results in a different format. Where can I find a document that describes the changes from old->new SDK? | |
| 14:58:59 | opendevreview | Merged openstack/codegenerator master: fix volume.attachments schema https://review.opendev.org/c/openstack/codegenerator/+/916628 | |
| 15:06:28 | opendevreview | Tobias Urdin proposed openstack/openstacksdk master: Fix multiple image_id query mappings https://review.opendev.org/c/openstack/openstacksdk/+/910955 | |
| 15:06:40 | opendevreview | Stephen Finucane proposed openstack/openstacksdk master: Fix multiple image_id query mappings https://review.opendev.org/c/openstack/openstacksdk/+/910955 | |
| 16:45:05 | opendevreview | Artem Goncharov proposed openstack/codegenerator master: Convert docstrings to md https://review.opendev.org/c/openstack/codegenerator/+/916644 | |
| 17:04:42 | opendevreview | Merged openstack/openstacksdk master: Remove mypy union line which breaks older pythons. https://review.opendev.org/c/openstack/openstacksdk/+/915199 | |
| 17:04:44 | opendevreview | Merged openstack/openstacksdk master: Add Binero public cloud to vendor support https://review.opendev.org/c/openstack/openstacksdk/+/915984 | |
| 17:06:36 | opendevreview | Merged openstack/openstacksdk master: image: make sure the target for "clear_cache" is valid https://review.opendev.org/c/openstack/openstacksdk/+/913614 | |
| 17:14:34 | opendevreview | Merged openstack/openstacksdk master: Adding SDK support for ``glance md-namespace-objects-delete`` https://review.opendev.org/c/openstack/openstacksdk/+/901671 | |
| 18:12:13 | opendevreview | Merged openstack/openstacksdk master: Fix multiple image_id query mappings https://review.opendev.org/c/openstack/openstacksdk/+/910955 | |