Wednesday, 2025-04-23

fricklergtema: seems there is a repeatable dns quota error in the neutron job for https://review.opendev.org/c/openstack/openstacksdk/+/947874 (stable/2023.2). given that it is EOL soon (but I wanted to backport to unmaintained branches, too) would you rather make the job n-v or drop it completely, too? (openstacksdk-functional-devstack-networking)08:55
gtemafrickler - sure, no problems with that08:55
gtemaoh, need to be more carful reading it - I would prefer n-v, perhaps this way we can spot more issues (real ones) rather than when the job is gone completely08:57
fricklerack, will do10:02
lajoskatonagtema: Hi, quick question: is there a way to have no-auth connection with openstacksdk, we had similar with neutronclient, see : https://opendev.org/openstack/neutron/src/branch/master/neutron/tests/fullstack/resources/process.py#L26010:29
lajoskatonagtema: I saw some tests for ironic which mentions noauth in SDK unit tests (perhaps I saw them there), but not sure what I need for such in an env like Neutron's fullstack environment where we have running Neutron services but nothing else10:30
gtemaLajoskatona, it should be possible, but at least one of the issues that comes at my mind is absence of service catalog. It is possible to still use SDK by using absolute urls though. I would need to check how is it possible 11:01
lajoskatonagtema:by absolute URLS you mean like set the url like http://localhost:9696/networking/v2/networks  for every calls?11:16
gtemayes11:16
gtemaor maybe not. I remember I was long time ago using something like connection.network.post("http://localhost:9696/networking/v2/networks", XXX) for cases where SDK was not supporting the service or the resource11:18
gtemabut it should be possible to also inject artificial catalog or set the base url for the service11:18
gtemalajoskatona: but yeah, something like https://opendev.org/openstack/openstacksdk/src/branch/master/openstack/tests/unit/cloud/test_operator_noauth.py#L74 is exactly what I was expecting11:20
gtemayou would just need to use network_endpoint_override instead, but maybe other samples would also work for you11:21
opendevreviewDr. Jens Harbott proposed openstack/openstacksdk stable/2023.2: [stable-only] zuul: handle broken jobs  https://review.opendev.org/c/openstack/openstacksdk/+/94787411:23
lajoskatonagtema: ack, I check it with network_endpoint_override, thanks for the help11:29
gtemawlcm, let me know if that does not work11:29
lajoskatonagtema: I tried with openstack.connect( auth_type='none',    network_endpoint_override='http://127.0.0.1:10272/networking/v2.0')    # neutron fullstack starts 1 neutron env (like server, ovs-agent etc...) for every test, so that's why the port is weird12:24
lajoskatonagtema: and I got this kind of exceptions:       File "/home/lajoskatona/neutron/.tox/dsvm-fullstack/lib/python3.12/site-packages/keystoneauth1/discover.py", line 1505, in _run_discovery12:24
lajoskatona    raise exceptions.DiscoveryFailure(12:24
lajoskatona    keystoneauth1.exceptions.discovery.DiscoveryFailure: Unable to find a version discovery document at http://127.0.0.1:10272/networking/v2.0, the service is unavailable or misconfigured. Required version range (any - any), version hack disabled.12:24
lajoskatonaI tried with /v2 only but the same result12:25
gtemaok, weird12:25
gtemalajoskatona - can you pls try without version suffix at all? Neutron does not support those12:27
lajoskatonawith url like http://127.0.0.1:10272 it failed the same way : testtools.runtest.MultipleExceptions: ((<class 'keystoneauth1.exceptions.discovery.DiscoveryFailure'>, DiscoveryFailure('Unable to find a version discovery document at http://127.0.0.1:16089, the service is unavailable or misconfigured. Required version range (any - any), version hack disabled.'), <traceback object at 0x7523148d6340>), (<class 'fixtur12:31
lajoskatonaror'>, SetupError({}), <traceback object at 0x752314853ac0>))12:31
lajoskatonaok, not exactly the same way....12:32
gtemahttp://127.0.0.1:10272/networking12:38
gtemathis is where normally version discovery document is present12:39
gtemabut since you point to some unauth endpoint maybe version discovery middleware (or whatever this is) is not present there at all12:40
opendevreviewDoug Goldstein proposed openstack/ansible-collections-openstack master: Allow role_assignment module to work cross domain  https://review.opendev.org/c/openstack/ansible-collections-openstack/+/94728513:13
lajoskatonagtema: I have to dig these things more it seems: testtools.runtest.MultipleExceptions: ((<class 'keystoneauth1.exceptions.discovery.DiscoveryFailure'>, DiscoveryFailure('Unable to find a version discovery document at http://127.0.0.1:14298/networking, the service is unavailable or misconfigured. Required version range (any - any), version hack disabled.'), <traceback object at 0x7c7568df4640>), (<class 'fixtures13:14
lajoskatonar'>, SetupError({}), <traceback object at 0x7c756911dcc0>)) ,13:14
lajoskatonagtema: thanks, I have to leave now, but come back if I find any solid thing for this problem :-)13:14
gtematja, sad. I assume in tests you are not starting all applications and though version discovery is not working13:14
opendevreviewDoug Goldstein proposed openstack/ansible-collections-openstack master: Allow role_assignment module to work cross domain  https://review.opendev.org/c/openstack/ansible-collections-openstack/+/94728514:23
opendevreviewRoberto Alfieri proposed openstack/ansible-collections-openstack master: Fix example in the dns_zone_info module doc  https://review.opendev.org/c/openstack/ansible-collections-openstack/+/94248716:15
opendevreviewGavin Chappell proposed openstack/ansible-collections-openstack master: Don't compare current state for `reboot_*` actions  https://review.opendev.org/c/openstack/ansible-collections-openstack/+/94688017:18
opendevreviewMerged openstack/ansible-collections-openstack master: Fix disable_gateway_ip for subnet  https://review.opendev.org/c/openstack/ansible-collections-openstack/+/94092717:46
opendevreviewAndrew Bonney proposed openstack/ansible-collections-openstack master: Add support for managing network segments  https://review.opendev.org/c/openstack/ansible-collections-openstack/+/94412118:54

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