Tuesday, 2026-08-11

gmaandansmith: i checked/tested it, it is same reason why you are not seeing in-progress task in log because of the order of RPC server wait and manager shutdown. rpcserver.wait <it waits and finishes the stop_instance>    ->    manager.graceful_shutdown() <there is no task to log>  this is log example https://pastebin.com/yj96YiRJ02:02
gmaanand with https://review.opendev.org/c/openstack/nova/+/996583, the order is rpcserver.stop <stop any new request>  -> manager.graceful_shutdown() <it logs all in-progress tasks>    ->  rpcserver.wait() <continue waiting for first RPC server tasks to finish> . This is log example with this change and you can see the proper in-progress task logging https://pastebin.com/q0Mm9bNF02:03
gmaanAug 11 01:28:44 ubuntu-resolute nova-compute[289050]: INFO nova.manager [-] Graceful shutdown initiated with 1 in-progress tasks: stop_instance(instance=c4b95ab0-1098-45a9-b03e-7139e1ce5bfc, request_id=req-9746ce32-bcb0-4913-8861-b1499d6abfd6, elapsed=8.216098441998838)02:04
opendevreviewTakashi Kajinami proposed openstack/nova master: Stub kernel support check of AMD-SEV in tests  https://review.opendev.org/c/openstack/nova/+/99978002:04
opendevreviewGhanshyam Maan proposed openstack/nova master: Task tracking mechanism for graceful shutdown  https://review.opendev.org/c/openstack/nova/+/99629902:06
gmaandansmith: ^^ i added the exact logs checks in the tests02:07
gmaandansmith: This is a better example where I started 1 start, 2 stop instance operations. It logs all in-progress at start, logs as soon as any task is completed, and keeps logging overall progress every 10 sec; at the end, it summarizes the number of completed and failed tasks. https://pastebin.com/3fLsiMwG02:47
opendevreviewGhanshyam Maan proposed openstack/nova master: Task tracking mechanism for graceful shutdown  https://review.opendev.org/c/openstack/nova/+/99629903:50
opendevreviewGhanshyam Maan proposed openstack/nova master: Track and log the main RPC server in-progress task  https://review.opendev.org/c/openstack/nova/+/99658304:14
opendevreviewGhanshyam Maan proposed openstack/nova master: Unify the thread poool executors into a central factory  https://review.opendev.org/c/openstack/nova/+/99857104:14
opendevreviewGhanshyam Maan proposed openstack/nova master: Shutdown thread pool executors during service shutdown  https://review.opendev.org/c/openstack/nova/+/100021104:14
opendevreviewGhanshyam Maan proposed openstack/nova master: Add doc and release notes for the graceful shutdown task tracking  https://review.opendev.org/c/openstack/nova/+/99714104:15
opendevreviewGhanshyam Maan proposed openstack/nova master: Task tracking mechanism for graceful shutdown  https://review.opendev.org/c/openstack/nova/+/99629904:27
opendevreviewGhanshyam Maan proposed openstack/nova master: Track and log the main RPC server in-progress task  https://review.opendev.org/c/openstack/nova/+/99658304:27
opendevreviewGhanshyam Maan proposed openstack/nova master: Unify the thread poool executors into a central factory  https://review.opendev.org/c/openstack/nova/+/99857104:27
opendevreviewGhanshyam Maan proposed openstack/nova master: Shutdown thread pool executors during service shutdown  https://review.opendev.org/c/openstack/nova/+/100021104:27
opendevreviewGhanshyam Maan proposed openstack/nova master: Add doc and release notes for the graceful shutdown task tracking  https://review.opendev.org/c/openstack/nova/+/99714104:27
opendevreviewKubilay Kaptanoglu proposed openstack/nova master: Fix simple-tenant-usage state schema for deleted instances  https://review.opendev.org/c/openstack/nova/+/100041508:09
*** mhen_ is now known as mhen10:36
opendevreviewRocky proposed openstack/nova master: Add workaround to skip cross-cell service version check  https://review.opendev.org/c/openstack/nova/+/100044212:02
*** LarsErik1 is now known as LarsErikP12:18
opendevreviewKubilay Kaptanoglu proposed openstack/nova master: Fix simple-tenant-usage state schema for deleted instances  https://review.opendev.org/c/openstack/nova/+/100041513:02
opendevreviewDaniel Marques Caires proposed openstack/nova master: nova: cast set_host_enabled on disable  https://review.opendev.org/c/openstack/nova/+/99846413:42
dansmithgmaan: hmm, I'm not sure I understand, but let me apply that on top while I let the caffeine soak in and see if it helps13:43
dansmithgmaan: nova-compute still exits immediately13:46
opendevreviewAnton Iacobaeus proposed openstack/nova master: doc: Add documentation for Intel TDX  https://review.opendev.org/c/openstack/nova/+/100008114:11
opendevreviewAnton Iacobaeus proposed openstack/nova master: libvirt: reject_mem_enc_instances  https://review.opendev.org/c/openstack/nova/+/100008214:11
opendevreviewAnton Iacobaeus proposed openstack/nova master: libvirt: Add os_firmware_secure  https://review.opendev.org/c/openstack/nova/+/100047214:11
gmaandansmith: ohk, what is graceful_shutdown_timeout value14:58
dansmithgmaan: 18015:38
dansmithI gotta run soon, back later15:39
gmaanthen it should work. and i hope manager_shutdown_timeout is not set so default 160 applies 15:57
gmaandansmith: just to make sure,  'nova-compute still exits immediately' you mean instance stay active right and stop instance is being interrupted by shutdown immediately and instance did not go to shutoff state  16:02
bryanfraschettiHi folks, I hope you're doing well. Would someone be able to take a look at this patch series https://review.opendev.org/q/topic:%22improve_attachment_resiliance_against_timeout%22? It prevents situations where cinder and nova become out of sync due to volume attachment timeouts (launchpad.net/bugs/2141355) and adds a nova-manage command that could be used to remedy such situations16:24
opendevreviewsean mooney proposed openstack/nova master: libvirt: Support Cyborg PCI ARQ managed mode  https://review.opendev.org/c/openstack/nova/+/99457918:33
opendevreviewsean mooney proposed openstack/nova master: doc: Add guide for NVIDIA vGPU with SR-IOV variant drivers  https://review.opendev.org/c/openstack/nova/+/99416018:33
opendevreviewDaniel Marques Caires proposed openstack/nova master: nova: cast set_host_enabled on disable  https://review.opendev.org/c/openstack/nova/+/99846418:37
opendevreviewDaniel Marques Caires proposed openstack/nova master: Add functional regression test for bug #2156927  https://review.opendev.org/c/openstack/nova/+/100054818:38
opendevreviewGhanshyam Maan proposed openstack/nova master: Unify the thread poool executors into a central factory  https://review.opendev.org/c/openstack/nova/+/99857119:37
dansmithgmaan: correct..20:08
gmaandansmith: other thing to check is systemd timeout TimeoutStopSec, i think that is set as 300 sec in devstack but if that is less than that will stop service immediately 20:11
dansmithgmaan: I'm doing a manual kill, not using systemd20:12
gmaannot sure why its not working, I tried with manual kill also and it works fine for me20:25
gmaancan you please paste the log when stop is started and ended 20:26
dansmithgmaan: yeah, I'll do some debug myself, I've just had a bunch of other things going on here20:28
gmaank20:29
dansmithgmaan: hmm, I dunno what was going on but my devstack VM OOMed and I had to restart it ... after that it all seems to be running properly21:50
dansmithI dunno, must have been something not picking up the code changes I was making or something21:50
dansmithhowever, while I was in graceful shutdown, I sent a stop command for a second instance and it looks like it was received/ignored by nova-compute which AFAIK means it won't be left on the rabbit queue21:51
dansmithwhen I restarted, it indeed didn't seem to pick up the queued stop request21:51
dansmithI was hoping we'd be able to close the connection so that rabbit would hold inbound requests like that for playback after the shutdown and restart but it appears not.. what is the expectation/21:51
dansmith?21:51
cardoeAny chance https://review.opendev.org/c/openstack/nova/+/989002 can land?21:55
gmaandansmith: yes, it should have stayed in rabbit Q and picked up if compute is coming up again 22:18
gmaancompute main rpc server is stopped so it should not have picked by compute22:19
gmaanlet me try22:19
gmaandansmith: humm it worked for me. did you send 2nd stop immediately after service stop? I am wondering if rpcserver stop was racing with that22:24
gmaani stop instance1 then stopped service, waited for few sec and then stop on instance2. shutdown waited for instance1 stop to complete and then instance1 was in shutoff state and instance2 as active22:31
gmaanwhen i started the service again (after 60 sec as i added sleep of 35 sec in stop_instance so want to make sure 2nd stop is not picked by compute), instance2 went to shutoff state22:32
dansmithgmaan: but the message from nova-compute that it received and is ignoring it means that we received it (i.e. dequeued from rabbit, no?)22:41
gmaandansmith: yes, once received it is gone from rabiit q 22:42
gmaanbut if 2nd stop was received by compute then it should have completed as we do wait on main  RPC server so that already picked up things will be completed before shutdiown22:43
dansmithReceived method (60, 30) during closing channel 1. This method will be ignored22:43
dansmithright^ ?22:43
gmaanignored but whom? compute22:44
dansmiththat's in the n-cpu log.. my point is, the fact that it's being even noticed by n-cpu means the message is being dequeued from rabbit right?22:45
gmaanyes, it should be dequeued 22:45
dansmithI'm confused22:46
dansmithAfter I started the shutdown and manager is waiting for tasks to complete (the first stop) I issued the second stop.. looks like to me after the  first task is completed and we go to do the actual shutdown is when the above message is logged, right before we actually terminate22:47
dansmithgmaan: https://paste.opendev.org/show/boU5DwvAGi3WLacQcn1r/22:47
dansmiththose first few lines show the end of waiting for the first stop, second stop was already sent at that point22:48
dansmiththen actual shutdown starts "graceful shutdown finished", then "Received method during closing channel" and then stopping RPC server, then again for some reason22:49
dansmithbut those were like a minute or two after I sent the second stop22:49
gmaancan you paste a few more log above that. whn shutdown started22:49
gmaanbecause that time we do stop main rpcserver where 2nd stop_instance should not be picked22:49
dansmithit waited for minutes, so nore than a few lines but..22:50
dansmithhttps://paste.opendev.org/show/bGlDyiz2mraL9dQ3DSfd/22:50
dansmithfirst line is graceful start, then waiting for 1 in-progress, somewhere in there is when I issued the second stop22:51
dansmiththen L72 is when the first stop finishes its artificial sleep delay and actually completes22:51
gmaanso L5 is where we stop rpc server and i cannot see where is 2ns stop_instance is receveid 22:53
dansmithright (on L5)..  isn't this us receiving something on the should-be-closed channel? > Received method (60, 30) during closing chan22:54
dansmithnel 1. This method will be ignored22:54
dansmithafter restart I don't see my logs that stop gets called again, which is why I'm assuming it is ^22:57
dansmithone of my instances is wedged because I was testing the manila share stuff before this.. perhaps I'll try getting a fully clean environment and try to reproduce this in case I've got something stuck that is getting in the way22:57
gmaanneed to check on oslo.messaging side what is this exactly because in rpcserver.stop() listener stopped listening anything from queue 22:58
dansmithack, that was my expectation of course22:58
dansmitheither way, that aside, it's cool to see the graceful shutdown waiting for the stop task as expected now22:58
gmaanit worked for me but yeah please try on clean env. let me check those warning in my cpu log again. i did not gave attension to those as 2nd stop was picked up and successful after compute came up22:59
gmaandansmith: i can see those amqp warnings even my scenario is passing means 2nd stop was picked up once compute is started again23:06
gmaani will check these warnings if those are from loopingcall; or so23:07
gmaanlater, need to pick kids from school23:07

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