Thursday, 2026-10-22

opendevreviewMerged openstack/ansible-collections-openstack master: Fix dns zone update issues in CI  https://review.opendev.org/c/openstack/ansible-collections-openstack/+/101134808:30
stephenfincardoe: in what context?08:37
stephenfin(the UUID-like type)08:37
opendevreviewJed Preist proposed openstack/ansible-collections-openstack master: Add target_provision_state option to baremetal_node  https://review.opendev.org/c/openstack/ansible-collections-openstack/+/101085209:57
opendevreviewMerged openstack/openstacksdk master: Fix Barbican key-manager microversion negotiation  https://review.opendev.org/c/openstack/openstacksdk/+/101154710:06
opendevreviewMerged openstack/openstacksdk master: Add Barbican secret store migrate helper  https://review.opendev.org/c/openstack/openstacksdk/+/100240010:06
opendevreviewJed Preist proposed openstack/ansible-collections-openstack master: Add target_provision_state option to baremetal_node  https://review.opendev.org/c/openstack/ansible-collections-openstack/+/101085210:08
opendevreviewMoritz Tanner proposed openstack/ansible-collections-openstack master: image: do a web-download import when uri is given  https://review.opendev.org/c/openstack/ansible-collections-openstack/+/100689910:20
opendevreviewMerged openstack/ansible-collections-openstack master: Handle the cloud parameter as a dict in application_credential module  https://review.opendev.org/c/openstack/ansible-collections-openstack/+/95569511:50
opendevreviewMerged openstack/ansible-collections-openstack master: Use **-operator to unpack dict in volume_type_access  https://review.opendev.org/c/openstack/ansible-collections-openstack/+/100602711:59
opendevreviewMerged openstack/ansible-collections-openstack master: Fix: Include target_project_id in RBAC creation  https://review.opendev.org/c/openstack/ansible-collections-openstack/+/96468412:00
cardoestephenfin: adding typing to functions12:13
stephenfinSo I don't believe you can indicate the "shape" of a string with type hints. You'd need a separate validation framework for this like what pydantic has https://pydantic.dev/docs/validation/2.2/usage/types/uuids/12:19
stephenfinThe best we can do is insist on passing around instances of uuid.UUID rather than str12:19
stephenfinalso worth noting that a lot of things in OpenStack that look like UUIDs aren't actually enforced as UUIDs. Keystone is the main culprit here but iirc it's not the only one12:21
opendevreviewJed Preist proposed openstack/ansible-collections-openstack master: Add target_provision_state option to baremetal_node  https://review.opendev.org/c/openstack/ansible-collections-openstack/+/101085212:35
opendevreviewMoritz Tanner proposed openstack/ansible-collections-openstack master: image: do a web-download import when uri is given  https://review.opendev.org/c/openstack/ansible-collections-openstack/+/100689913:32
sean-k-mooneystephenfin:  uuid.UUID is not a backward compatible change however14:43
sean-k-mooneybut ya i was gong to mention the keyston thing14:44
sean-k-mooneynot all identifies are actully uuids event if that is the defualt generated by some backends14:44
sean-k-mooneythe same is true of the nova flavor id14:44
sean-k-mooneyits a string not a uuid 14:44
sean-k-mooneyit just defaults to a uuid if you leave the api autogenerate it for you14:45
sean-k-mooneystephenfin: cardoe  keystons id cant be a uuid in all case bacue some time it the Acitive directory/kerboeros identifier14:45
sean-k-mooneyalthough if your using federation it alwasy provides a uuid in that one case14:46
cardoeSo I was more thinking of places that we take in "instance_uuid" in the SDK... to use a nova example.14:46
cardoeReally I'm asking for Ironic because I'm trying to lift ironicclient to openstacksdk and we've got "node_ident" and "port_ident"14:47
cardoeWhich is either a UUID or the name of the node or port14:47
sean-k-mooneyso it woudl be possibel to defien a type unition14:47
cardoeBut then it's automatically looked up and converted to the UUID14:47
sean-k-mooneythat is a string with uuid or name validation via regex i think14:47
sean-k-mooneyand use that isntead14:48
cardoeYeah.14:48
sean-k-mooneythe underlying type woudl still be a str14:48
sean-k-mooneybut it woudl vaildatiable i think14:48
cardoeI'd like to have something common that can be shared across multiple places.14:48
sean-k-mooneythats kind of what stephenfin was suggesting too i think14:48
sean-k-mooneythe other thing you coudl do is you can use the abotiy to have multipel deffintion of the same fuction14:51
sean-k-mooneyto have one that accept a sting and a seocnd that asscele a uuid_or_name type14:51
sean-k-mooneythat woudl mean that thing that opt into the new type get the validation14:51
sean-k-mooneyadn older users can still pass the raw string14:51
sean-k-mooneyi.e. sort of liek this14:53
sean-k-mooneyhttps://github.com/openstack/openstacksdk/blob/master/openstack/compute/v2/_proxy.py#L468-L48614:53
cardoeYep. I love me some @overload14:53
sean-k-mooneybut instead of the empy ...14:53
sean-k-mooneyyou could provide a body for the stricter one that does the type check and then passse the data through14:54
cardoeAnother item I was thinking about... "openstack --version"... there's no consideration of the other clients that might be installed or showing their version14:54
sean-k-mooneywell its the version of openstack client14:54
sean-k-mooneynot the verion of the plugins 14:54
sean-k-mooneyso it should not includ the other plugins inits out put but you coudl add a --plugin-versions14:55
cardoeRight. Just saying it makes a difference.14:56
sean-k-mooneyi personally just use pip show but i get that you might not have pip installed in all cases14:56
cardoeJust had someone with up to date python-openstackclient but out of date plugins14:56
sean-k-mooneyah14:56
sean-k-mooneyhaving some plugin list or version commands/flags  could help with that for sure14:57
cardoeyeah cause I posted on the launchpad asking them for openstack --version and they gave it but of course the lag of async comms14:57
cardoeAnd then I had to tell them to pip show... which they told me they didn't use pip... so I had to ask how they installed it and then go around and around that.14:58
cardoeIf I could have said paste openstack --version and openstack --plugin-versions like you had suggested from the get go it would have been quicker14:59
cardoeAnyway, just something that was top of mind.14:59
JayFconsider also adding a --all-versions or similar15:00
JayFjust to make that common interaction one command15:00
cardoeYeah that would be good.15:00
cardoeJayF: the bug was that python-ironicclient doing the lookup of the node that I believe you merged the other day.15:00
cardoefor context15:01
JayFI remember that and am not just nodding as if I remember15:01
* JayF nods as if he remembers15:01
cardoeIronic API takes in a node UUID only and the CLI doesn't make that clear that it had to be the UUID and we passed along the value.15:02
cardoeI fixed it by making the client lookup the node UUID from the supplied user input.15:02
cardoeBut if we had types on those methods, it would have made things more clear.15:02
opendevreviewStephen Finucane proposed openstack/python-openstackclient master: quota: Fix behavior of -c opt for quota show  https://review.opendev.org/c/openstack/python-openstackclient/+/101189215:18
opendevreviewMichael Sherman proposed openstack/openstacksdk stable/2026.2: config: Pass status code retry options to adapter  https://review.opendev.org/c/openstack/openstacksdk/+/101190016:44
opendevreviewMichael Sherman proposed openstack/openstacksdk stable/2026.1: Allow configuring connect_retry_delay  https://review.opendev.org/c/openstack/openstacksdk/+/101190216:58
opendevreviewMichael Sherman proposed openstack/openstacksdk stable/2026.1: Read connect_retry_delay in get_session_client  https://review.opendev.org/c/openstack/openstacksdk/+/101190316:58
opendevreviewMichael Sherman proposed openstack/openstacksdk stable/2026.1: config: Pass status code retry options to adapter  https://review.opendev.org/c/openstack/openstacksdk/+/101190416:58
opendevreviewStephen Finucane proposed openstack/python-openstackclient master: quota: Fix behavior of -c opt for quota show  https://review.opendev.org/c/openstack/python-openstackclient/+/101189217:04
shermanmhey, I was submitting backports for https://review.opendev.org/c/openstack/openstacksdk/+/1011585, but noticed that for 2026.1 and earlier, 17:13
shermanmjgilaber's  https://review.opendev.org/c/openstack/openstacksdk/+/986350 wasn't backported yet.  I'm happy to submit backports for that as well, but didn't want to do a rudeness :) 17:13
stephenfinshermanm: Feel free to backport both as stacked changes :)17:39
shermanm+1, will do17:39
stephenfincardoe: I missed the rest of that thread but I don't think there is much more we can do currently17:42
cardoealright. was just curious before I spent time hacking away at it.17:42
stephenfinLong-term, I'd like to copy what pydantic does and make better use of typing.Annotated to express these kinds of things but that's a bit off yet17:43
stephenfinhttps://docs.python.org/3/library/typing.html#typing.Annotated17:43
cardoeYeah that'd be great.17:43
stephenfinpassing type=uuid.UUID to resource.Body _might_ work, but I've never tested it17:43
opendevreviewStephen Finucane proposed openstack/openstacksdk stable/2026.1: config: Pass status code retry options to adapter  https://review.opendev.org/c/openstack/openstacksdk/+/101190417:47
shermanmah, good catch on the stacked cherry-pick by version, instead of each from master backwards17:49
stephenfinyeah, that's just convention to ensure we don't miss any branches17:49
shermanma follow-up question on these "missing methods on the sdk" fixes. What is the actual authoritative source of what args/methods should be there?17:49
stephenfinerr, a little more context?17:50
shermanme.g. status_code_retry was accepted, but silently ignored17:50
shermanmbut how do we know that it's supposed to be there17:50
shermanmsame for status_code_retry_delay retriable_status_codes17:51
stephenfinI imagine we should support practically everything that Adapter supports17:51
stephenfinat least where it makes sense to configure said thing globally17:51
shermanmbasically I'm imagining an automated test that just enumerates everything on Adapter, and makes sure we can accept it17:52
shermanmto avoid more "this thing is missing" bugs down the road17:52
stephenfinfortunately Adapter is fully typed now, so the list of option is accepts/expects is finite https://github.com/openstack/keystoneauth/blob/master/keystoneauth1/adapter.py#L131-L16017:53
stephenfinI don't necessarily want a test to validate that, since (a) it's unlikely to change often and (b) when it does, it would break our gate and force a ksa bump, but I imagine a one-off script would be very feasible17:54
stephenfin*I don't think we necessarily17:55
stephenfinactually, we can go one better: openstack.proxy.Proxy (which is what we ultimatly construct an instance of) has a near-identical __init__ signature. We could have test against _that_ since it's in-tree17:57
shermanmis there a clean way to warn if an unsupported option is passed instead of just silently dropping it?17:58
shermanmnot sure if we're passing through kwargs in a way that makes it impractical17:58
stephenfinwell you can't: kwargs is passed straight through to `constructor` [1], which default to openstack.proxy.Proxy [2], and that accepts a finite set of arguments (no kwargs) [3]18:07
stephenfin[1] https://github.com/openstack/openstacksdk/blob/a0d83104c392c50851c6f6eaddb3cbb44f0d3c03/openstack/config/cloud_region.py#L131118:08
stephenfin[2] https://github.com/openstack/openstacksdk/blob/a0d83104c392c50851c6f6eaddb3cbb44f0d3c03/openstack/config/cloud_region.py#L124818:08
stephenfin[3] https://github.com/openstack/openstacksdk/blob/a0d83104c392c50851c6f6eaddb3cbb44f0d3c03/openstack/proxy.py#L101-L13818:08
opendevreviewMichael Sherman proposed openstack/openstacksdk stable/2025.2: Allow configuring connect_retry_delay  https://review.opendev.org/c/openstack/openstacksdk/+/101191718:09
opendevreviewMichael Sherman proposed openstack/openstacksdk stable/2025.2: Read connect_retry_delay in get_session_client  https://review.opendev.org/c/openstack/openstacksdk/+/101191818:09
opendevreviewMichael Sherman proposed openstack/openstacksdk stable/2025.2: config: Pass status code retry options to adapter  https://review.opendev.org/c/openstack/openstacksdk/+/101191918:09
shermanmah, that context helps, thanks!  18:15
opendevreviewMichael Sherman proposed openstack/openstacksdk stable/2025.1: Allow configuring connect_retry_delay  https://review.opendev.org/c/openstack/openstacksdk/+/101192719:04
opendevreviewMichael Sherman proposed openstack/openstacksdk stable/2025.1: Read connect_retry_delay in get_session_client  https://review.opendev.org/c/openstack/openstacksdk/+/101192819:04
opendevreviewMichael Sherman proposed openstack/openstacksdk stable/2025.1: config: Pass status code retry options to adapter  https://review.opendev.org/c/openstack/openstacksdk/+/101192919:04
opendevreviewMerged openstack/openstacksdk stable/2026.2: config: Pass status code retry options to adapter  https://review.opendev.org/c/openstack/openstacksdk/+/101190019:32
opendevreviewMerged openstack/openstacksdk stable/2026.1: Allow configuring connect_retry_delay  https://review.opendev.org/c/openstack/openstacksdk/+/101190220:15
opendevreviewMerged openstack/openstacksdk master: zuul: Re-enable post-review queue  https://review.opendev.org/c/openstack/openstacksdk/+/100628120:24
opendevreviewmelanie witt proposed openstack/openstacksdk master: accelerator: Set _max_microversion for Resources  https://review.opendev.org/c/openstack/openstacksdk/+/101195220:51
shermanmI'm seeing zuul failures for backports to 2025.1 and 2025.2, but they seem to be for pre-existing things?21:01
shermanmI think the cause is this mypy fix not being backported to those, but not 100% sure https://opendev.org/openstack/openstacksdk/commit/bffe676997463b61954c67602e7a3a49cb77590021:01
opendevreviewBoris Bobrov proposed openstack/openstacksdk master: Fix find_domain to resolve from token on Forbidden  https://review.opendev.org/c/openstack/openstacksdk/+/98160522:07
opendevreviewMichael Sherman proposed openstack/openstacksdk stable/2025.2: Allow configuring connect_retry_delay  https://review.opendev.org/c/openstack/openstacksdk/+/101191722:43
opendevreviewMichael Sherman proposed openstack/openstacksdk stable/2025.2: Read connect_retry_delay in get_session_client  https://review.opendev.org/c/openstack/openstacksdk/+/101191822:43
opendevreviewMichael Sherman proposed openstack/openstacksdk stable/2025.2: config: Pass status code retry options to adapter  https://review.opendev.org/c/openstack/openstacksdk/+/101191922:43
opendevreviewMichael Sherman proposed openstack/openstacksdk stable/2025.2: Fix mypy type check errors  https://review.opendev.org/c/openstack/openstacksdk/+/101196022:43
opendevreviewMichael Sherman proposed openstack/openstacksdk stable/2025.2: [stable-only] pre-commit: Bump flake8-import-order  https://review.opendev.org/c/openstack/openstacksdk/+/101196122:43
opendevreviewMichael Sherman proposed openstack/openstacksdk stable/2025.1: Allow configuring connect_retry_delay  https://review.opendev.org/c/openstack/openstacksdk/+/101192722:56
opendevreviewMichael Sherman proposed openstack/openstacksdk stable/2025.1: Read connect_retry_delay in get_session_client  https://review.opendev.org/c/openstack/openstacksdk/+/101192822:56
opendevreviewMichael Sherman proposed openstack/openstacksdk stable/2025.1: config: Pass status code retry options to adapter  https://review.opendev.org/c/openstack/openstacksdk/+/101192922:56
opendevreviewMichael Sherman proposed openstack/openstacksdk stable/2025.1: Fix mypy type check errors  https://review.opendev.org/c/openstack/openstacksdk/+/101196222:56
opendevreviewMichael Sherman proposed openstack/openstacksdk stable/2025.1: [stable-only] pre-commit: Bump flake8-import-order  https://review.opendev.org/c/openstack/openstacksdk/+/101196322:56
opendevreviewStephen Finucane proposed openstack/keystoneauth master: typing: Accept Adapters in discover  https://review.opendev.org/c/openstack/keystoneauth/+/101164223:08
opendevreviewStephen Finucane proposed openstack/keystoneauth master: discover: Handle key-manager microversion discovery automatically  https://review.opendev.org/c/openstack/keystoneauth/+/101196423:08
opendevreviewStephen Finucane proposed openstack/openstacksdk stable/2025.2: [Stable-only] Drop mypy testing  https://review.opendev.org/c/openstack/openstacksdk/+/101196723:31
opendevreviewStephen Finucane proposed openstack/openstacksdk stable/2025.1: [Stable-only] Drop mypy testing  https://review.opendev.org/c/openstack/openstacksdk/+/101196823:32

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