Tuesday, 2022-09-06

*** dkehn_ is now known as dkehn01:06
opendevreviewOpenStack Proposal Bot proposed openstack/oslo.cache master: Imported Translations from Zanata  https://review.opendev.org/c/openstack/oslo.cache/+/85600003:18
opendevreviewMerged openstack/oslo.concurrency master: Prove that spawn_n with fair lock is broken  https://review.opendev.org/c/openstack/oslo.concurrency/+/85571309:18
opendevreviewMerged openstack/oslo.concurrency master: Fix fair internal lock used from eventlet.spawn_n  https://review.opendev.org/c/openstack/oslo.concurrency/+/85571409:30
opendevreviewMerged openstack/oslo.concurrency master: Ignore coverage result files  https://review.opendev.org/c/openstack/oslo.concurrency/+/85571609:30
sean-k-mooneyhberaud: gibi  im happy that ^ has been merged looping back to fasteners 09:52
sean-k-mooneyhttps://github.com/harlowja/fasteners/pull/9709:53
sean-k-mooneyim pretty sure i can do what they ask without too much troble09:53
sean-k-mooneyif i submit a patch to oslo for that have you and object to oslo detecting if eventlets is used and passing the fuctor to the ReaderWriterLock constructor09:54
hberaudThen I'm going to release oslo.concurrency09:55
sean-k-mooneyhberaud: ya i would release withthe version that is merged and then early next cycle i can add support in fasteners and oslo to do it the "upstream" way09:56
sean-k-mooneyi dont really want us to wait for a fasterns release 09:56
sean-k-mooneyso i think the oslo release makes sesnse for zed09:57
hberaudWFM09:57
hberaudI'll request a RFE first09:57
sean-k-mooneyRFE or FFE09:58
hberaudFFE :)09:58
sean-k-mooneyok i was worried for a sec that i missed something importnat09:58
hberaudHowever, this not a feature, so I don't think I need to request that09:58
hberaudso at least I think I need a rfe 09:59
sean-k-mooneywell its a bug fix/workaroudn fo an upstream lib incompatiblity so you just need to request an expction form the release team for the non client lib freeze restrictions i think. although you have done this more often then i have so im sure you have got this. im going to update the upstream pull request and ill start on some patches to both repos today10:02
hberaudWell, I missed that oslo.concurrency is an independent deliverable, so we don't need requesting something10:05
sean-k-mooneythe only thing that will be needed is to allow it in upper constraits10:06
hberaudhttps://review.opendev.org/c/openstack/releases/+/85603710:07
hberaudyes10:07
hberaudI'll prepare a patch for the requirements update and discuss that with the team10:08
hberaudstephenfin: o/ Do you mind to have a look to https://review.opendev.org/c/openstack/oslo.config/+/855333 . Thanks in advance13:32
stephenfinhberaud: done13:34
hberaudthanks13:34
opendevreviewsean mooney proposed openstack/oslo.concurrency master: Add support for passing current_thread_functor to fasteners  https://review.opendev.org/c/openstack/oslo.concurrency/+/85612013:48
abishophberaud, damani: hi, me again :D14:22
abishopwith https://review.opendev.org/c/openstack/tooz/+/827492 merged, I'm requesting a new tooz release14:22
hberaudabishop: https://review.opendev.org/c/openstack/releases/+/85612814:36
abishophberaud: thx!14:37
hberaudnp14:38
dtantsurstephenfin: hi! is there a list of changes in oslo.db 12.1.0? the release notes are a bit light on details14:55
dtantsurI'm looking at https://review.opendev.org/c/openstack/ironic/+/855969 now, and trying to understand why it fixes tests that have nothing to do with committing anything.14:56
dtantsurWithout understanding it, we cannot replace the use of autocommit14:56
stephenfindtantsur: The only significant change is that autocommit change. I don't have a local copy of ironic, but a run of the unit tests with the warnings enabled for that particular issue should highlight the autocommit-requiring code https://review.opendev.org/c/openstack/nova/+/837161/1/nova/tests/fixtures/nova.py14:58
dtantsurhmm, I wonder how it looks for the PYTHONWARNINGS variable14:59
dtantsuror rather: I think our testing tools "helpfully" swallow any warnings :(15:00
dtantsuractually, no, they do not15:02
dtantsurstephenfin: I don't see any warnings in the affected tests15:02
stephenfinHmm, that's odd. It would appear my fix is doing the correct thing since I see green https://review.opendev.org/c/openstack/requirements/+/855973/ so I guess it's a case of reverse engineering the reason why it fixes things15:06
dtantsurthat's what I'm doing now :)15:07
dtantsuryeah, your fix seems to work, I don't know why15:07
dtantsurOR I'm still unable to turn SA warnings on15:07
stephenfinAnd just because it's worth asking, ironic is definitely broken with oslo.db 12.1.0, yeah? As in, those gate failures weren't flakes?15:09
dtantsurstephenfin: I consistently reproduce the unit test failures locally15:09
stephenfinOkay, good to know15:10
opendevreviewMerged openstack/oslo.config stable/yoga: Disable a config test if ran under the root user  https://review.opendev.org/c/openstack/oslo.config/+/85533315:11
dtantsurstephenfin: okay, this is causing me headache, so I'll probably just approve your workaround for now..15:16
opendevreviewmike_mp@zzzcomputing.com proposed openstack/oslo.db master: remove sqlalchemy-migrate  https://review.opendev.org/c/openstack/oslo.db/+/85302515:47
sean-k-mooneyyoctozepto:  by the way droping eventlet form nova while desireable is basicaly a major rewrite17:13
sean-k-mooneyyoctozepto: im not convinced using pthread is safe under a wsign server either by the way wit eventlets17:14
sean-k-mooneyfor nova compute we have seen the agent hang if there is a rabbitmq disconenct which makes me think thre is some issue with eventlet and multiple threads that only shows up in the expction path17:17
sean-k-mooneyanyway if you turn off eventlet monkey patching today nova will fail to work. we have also relied on io causing thing to yeild in many cases so that would be hard to unravel17:19
yoctozeptosean-k-mooney: 17:20
yoctozeptosean-k-mooney: I was afraid it might be like this for nova17:21
sean-k-mooneynova, swift cinder and neutron17:22
yoctozeptoregarding pthread in wsgi - I don't know but we basically recommend using pthread for heartbeats with wsgi...17:22
sean-k-mooneyhonestly i would recommend removing that feature17:22
sean-k-mooneyit has no real useful benifit in the wsgi context17:23
sean-k-mooneythe reason it was added was to silence the warning message17:23
yoctozeptowell, the warning was about dying connections which is an inconvenience still, no?17:23
sean-k-mooneythat was cause because the wsgi server kills the thread after the reponce is processed17:23
sean-k-mooneyits annoying in the logs if you dont filter it17:23
sean-k-mooneybut that its17:24
sean-k-mooneywhere as the pthread actully breaks things17:24
sean-k-mooneywhich is why the default was reverted to off17:24
yoctozeptoodd, it should be perfect for heartbeats17:24
sean-k-mooneyit does not only get used for heat beats17:25
sean-k-mooneyeventlet end up something resuming greanthreads/greenlets on it17:25
sean-k-mooneyits why we cant run many of the services with multipel threads under wsgi17:25
sean-k-mooneyand why we have to use multipel processes17:25
sean-k-mooneythis seams to be an issue for any wsgi service that also has rabbit17:26
sean-k-mooneykeystone and palcment dont seeam to have the same issues17:26
sean-k-mooneyso i suspect there is an interaction between pthreads and the rabbitmq driver and eventlet17:26
yoctozeptooh, could be17:27
yoctozeptowell, the monkey patching is monkey business :-)17:27
sean-k-mooney:)17:27
sean-k-mooneyso the rabbit driver is using threading directly17:28
sean-k-mooneyhttps://github.com/eventlet/eventlet/issues/731#issuecomment-96989172117:29
sean-k-mooneybut as melwitt found that has non intuitive behvior17:29
sean-k-mooneythe beahvior of swpan spawn_n is not the same17:30
sean-k-mooneyand Thread.start() resolts in calling spawn_n17:30
sean-k-mooneyspawn_n is nerver ment to return17:31
sean-k-mooneywhich means you can never allow any uncaut exctpion ot escape the sart funciton or its undefiend behavior17:31
sean-k-mooneyim not certin but if https://github.com/openstack/oslo.messaging/blob/master/oslo_messaging/_drivers/amqpdriver.py#L72-L80 raises an excption from task()17:40
sean-k-mooneyi think that is technially a bug17:40
sean-k-mooneybased on https://eventlet.net/doc/modules/greenthread.html#eventlet.greenthread.spawn_n17:42
sean-k-mooneythis is also relate dto https://bugs.launchpad.net/oslo.messaging/+bug/1949964 and https://bugs.launchpad.net/oslo.messaging/+bug/193493717:44

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