Fabiano Rosas <faro...@suse.de> writes: > Roman Khapov <rkha...@yandex-team.ru> writes: > > Hi Roman, > >> This is resending of series 20240215082659.1378342-1-rkha...@yandex-team.ru, >> where patch subjects numbers were broken in patch 2/2. >> >> Sometimes, when migration fails, it is hard to find out >> the cause of the problems: you have to grep qemu logs. >> At the same time, there is MIGRATION event, which looks like >> suitable place to hold such error descriptions. > > query-migrate after the event is received should be enough for giving > you the failure reason. We have that in error-desc. See commit > c94143e587 ("migration: Display error in query-migrate irrelevant of > status"). > >> >> To handle situation like this (maybe one day it will be useful >> for other MIGRATION statuses to have additional 'reason' strings), > > I find it unlikely. There's no "reason" for making progress except > that's how things work. Only the exceptional (i.e. failure) statuses > would have a reason. Today that's FAILED only, maybe also > POSTCOPY_PAUSED.
I can't see a need for the proposed feature then. >> the general optional field 'reason' can be added. [...]