Monday, 2022-06-13

*** abhishekk is now known as akekane|home04:52
*** akekane|home is now known as abhishekk04:52
opendevreviewPranali Deore proposed openstack/glance master: Remove dead code of auth and policy layers  https://review.opendev.org/c/openstack/glance/+/84511407:01
opendevreviewPierre-Samuel Le Stang proposed openstack/glance master: Implement glance-download internal plugin  https://review.opendev.org/c/openstack/glance/+/84031807:51
opendevreviewBenedikt Löffler proposed openstack/python-glanceclient master: Check if stdin has isatty attribute  https://review.opendev.org/c/openstack/python-glanceclient/+/81380208:57
opendevreviewAbhishek Kekane proposed openstack/glance master: [WIP] Immediate caching of an image  https://review.opendev.org/c/openstack/glance/+/84207009:06
opendevreviewAbhishek Kekane proposed openstack/glance master: [WIP] Immediate caching of an image  https://review.opendev.org/c/openstack/glance/+/84207009:09
opendevreviewchenwei proposed openstack/glance master: Update api-ref: versions response for master branch  https://review.opendev.org/c/openstack/glance/+/84557810:36
opendevreviewPranali Deore proposed openstack/glance master: Remove dead code of auth and policy layers  https://review.opendev.org/c/openstack/glance/+/84511411:10
dansmithabhishekk: did your comment mean you tested the cache patch locally and it works?14:04
abhishekkdansmith, yes, I have tried 3-4 scenarios and it is working, I just had to make some changes which you can find in diff14:05
abhishekksome == 3/4 changes14:05
dansmithyeah, I saw, sorry about that14:06
dansmithI didn't even run pep8 on it, was just trying to give some ideas14:06
dansmithlooking at the functional test now14:07
abhishekkno problem, i saw your comment as well and that's why decided to test it :D14:08
abhishekkneed to write better comments in functional test14:09
dansmithare you working on unit tests as well?14:14
abhishekkI can work14:14
abhishekkright now just fixed functional tests, later (mostly tomorrow) will fix unit tests and then add new tests14:15
abhishekkthen will move to tempest patch14:15
dansmithokay, I can take a look at the unit tests14:19
abhishekkack, thank you14:20
* abhishekk will be away for 1 hour14:30
dansmithabhishekk: I'm not sure why we need this:17:31
dansmith# NOTE(abhishekk): Importing the prefetcher just in time to avoid import loop during initialization17:31
abhishekkif you move it to top then we get error at service startup17:32
abhishekklike, wsgi has not attribute JSONRequestDeserializer 17:33
dansmithI don't...17:43
dansmithwhen running tests or starting with devstack?17:43
dansmithall unit and functional run for me with it at the top17:47
dansmithanyway not important, just wasn't sure17:48
opendevreviewDan Smith proposed openstack/glance master: [WIP] Immediate caching of an image  https://review.opendev.org/c/openstack/glance/+/84207017:48
dansmithabhishekk: I'll let you take the WIP off that when you're ready17:49
abhishekkdansmith, ack, I will try to reproduce it again17:50
abhishekkit was while starting with devstack17:51
abhishekkand with uwsgi enabled17:51
dansmithabhishekk: okay, might be good to just validate that it's still there.. no big deal if it is18:06
*** maysams is now known as maysams-afk18:06
abhishekkack18:07
abhishekkdansmith, have you tried restarting g-api service after caching image locally?18:17
dansmithabhishekk: I haven't actually run this in devstack yet :D18:17
dansmithso...no? :P18:17
abhishekkohh, I just tried and looks like it hangs their waiting for graceful exit18:18
abhishekkthis error I was getting on startup on PS 3, https://paste.opendev.org/show/bSuBS6VfhpbMM3cFLaKH/18:20
dansmithabhishekk: okay do you see the info logs for "Signaling cache worker to exit" ?18:21
abhishekkjust applied the latest PS18:22
abhishekkwill check18:22
abhishekknope18:22
dansmithoh,18:23
dansmithrunning uwsgi?18:23
dansmithI made a change in the latest PS for the non-standalone case18:23
abhishekkyeah18:24
dansmithwe didn't signal it before, so because it's not a daemon thread, we'll hang until it exists18:25
simboja_Hello, guys. I am hitting this and hopefully someone can help me out: https://paste.opendev.org/show/bTLo8hU4mBiTWDI7iB6W/18:26
abhishekkack18:26
abhishekksimboja_, looks like some sqlite dependency related issue18:27
dansmithsimboja_: give us some context.. that's related to a new thing in devstack, and if it's failing like that it probably means you updated one thing and not another18:27
simboja_Nothing I know of, I deployed fresh devstack18:28
dansmithdevstack installs that plugin and configures the services to use it, and it looks like it's not actually installed18:28
simboja_Excatly whihc I don't know why18:28
dansmithsimboja_: pastebin your local.conf18:28
simboja_a sec18:28
simboja_https://paste.opendev.org/show/bQV2mFmDaUX6LHepkX1W/18:29
dansmithsimboja_: can you share your devstack.log?18:30
dansmithsimboja_: we might also move to -qa since this is not glance related18:30
simboja_one moment18:30
simboja_https://paste.opendev.org/show/bMZtlydHoutvC3gCANDW/18:31
dansmithsimboja_: I need to see the whole thing not just where it failed18:31
dansmithbecause it installs that plugin almost first thing18:31
abhishekklooks like this is not called, https://review.opendev.org/c/openstack/glance/+/842070/6/glance/common/wsgi_app.py#9818:31
simboja_let me get the entire log18:33
dansmithabhishekk: hmm, can you add some debug there to figure out why?18:33
abhishekkyeah, doing it18:33
abhishekkatexit function drain_workers is not getting called on exit/restart18:43
dansmithabhishekk: oh, well, that's a bigger problem then18:44
abhishekkyeah18:44
dansmithI wonder if atexit under uwsgi doesn't work like we expect18:44
abhishekkhttps://github.com/unbit/uwsgi/issues/206318:44
simboja_dansmith: I can not pastebin, how do I send you the log file as its above limit on pastebin?18:48
abhishekkafter changing atexit.register(drain_workers) to uwsgi.atexit = drain_workers it is exiting gracefully18:48
dansmithsimboja_: post it somewhere, dropbox link or something?18:49
simboja_cool18:49
dansmithabhishekk: is that in python or the uwsgi conf somewhere?18:49
dansmithoh I see18:50
abhishekkhttps://paste.opendev.org/show/bQm6G2G32ou0OFrvXgWu/18:51
abhishekkin python code18:51
simboja_dansmith: https://docs.google.com/document/d/1pEn_XxF-HFbXoecnX7MB_QacCn7q00ITghnFK3GRVk0/edit?usp=sharing18:56
abhishekktomorrow I will configure wsgi and test as well, once verified will add documentation change/reno and lift WIP from it18:56
dansmithabhishekk: cool18:57
dansmithsimboja_: blank doc? can you just share the file via google drive?18:57
simboja_One moment, dont know why Google doc is failing to sync18:58
simboja_Try now dansmith: https://drive.google.com/file/d/1BKyJKvHBBiB5ofp90ElDiPm_rfdGPRsp/view?usp=sharing19:01
dansmithsimboja_: which distro is this?19:03
dansmithjust FYI MYSQL_GATHER_PERFORMANCE=False will work around this, but I want to know why it's failing for you19:05
dansmithif you can try this:19:05
dansmithpython319:05
dansmithimport dbcounter19:05
dansmithprint(dbcounter.__file__)19:05
dansmithI'd be interested19:05
abhishekkdansmith, looks like graceful exit also not work with uwsgi19:06
abhishekkit terminates the thread immediately19:06
abhishekk!!! uWSGI process 231696 got Segmentation Fault !!!19:07
opendevmeetabhishekk: Error: "!!" is not a valid command.19:07
abhishekkJun 13 19:02:12 akekane-rally devstack@g-api.service[231696]: *** backtrace of 231696 ***19:07
dansmithabhishekk: okay, well that thread (on github) also indicates there are some wrinkles :/19:07
abhishekkhmm19:07
dansmithoh well, that seems like a bug.. it shouldn't segv19:07
abhishekkis there another method than terminate?19:08
dansmithother than atexit you mean19:09
dansmith?19:10
abhishekkyeah19:10
dansmithit'll have to be something uwsgi-specific I imagine19:10
dansmithreally the problem is running everything long-running in the same thread as the api.. that's just not done for a reason, and is why all the other services use RPC to workers...19:11
abhishekkyep, but this is glance :D19:12
dansmithhah19:12
* abhishekk signing out for the day19:26

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