qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Anthony Liguori <anthony@codemonkey.ws>
To: Juan Quintela <quintela@redhat.com>
Cc: qemu-devel@nongnu.org, Luiz Capitulino <lcapitulino@redhat.com>
Subject: Re: [Qemu-devel] Re: [PATCH 1/5] Exit if incoming migration fails
Date: Tue, 25 May 2010 13:52:46 -0500	[thread overview]
Message-ID: <4BFC1C7E.90803@codemonkey.ws> (raw)
In-Reply-To: <m3typvesks.fsf@trasno.mitica>

On 05/25/2010 01:37 PM, Juan Quintela wrote:
> Luiz Capitulino<lcapitulino@redhat.com>  wrote:
>    
>> On Tue, 25 May 2010 16:21:01 +0200
>> Juan Quintela<quintela@redhat.com>  wrote:
>>
>>      
>>> Signed-off-by: Juan Quintela<quintela@redhat.com>
>>> ---
>>>   migration.c |   16 ++++++++++------
>>>   migration.h |    2 +-
>>>   vl.c        |    7 ++++++-
>>>   3 files changed, 17 insertions(+), 8 deletions(-)
>>>
>>>        
>    
>>   While I agree on the change, I have two comments:
>>
>> 1. By taking a look at the code I have the impression that most of the
>>     fun failures will happen on the handler passed to qemu_set_fd_handler2(),
>>     do you agree? Any plan to address that?
>>      
> That is outgoing migration, not incoming migration.
> Incoming migration in synchronous..
>
>
>    
>> 1. Is exit()ing the best thing to be done? I understand it's the easiest
>>     and maybe better than nothing, but wouldn't it be better to enter in
>>     paused-forever state so that clients can query and decide what to do?
>>      
> For incoming migration, if it fails in the middle, every bet is off.
> You are in a really inconsistent state, not sure which one, and if
> migration was live, with the other host possibly retaking the disks to
> continue.
>    

I agree that exiting is the only sane behavior for the destination.

Regards,

Anthony Liguori

> In some cases, you can't do anything:
> - you got passed an fd, and fd got closed/image corrupted/...
> - you got passed an exec command like "exec: gzip -d<  foo.gz"
>    If gzip failed once, it will fail forever.
>
> If you are running it by hand, cursor up + enter, and you are back
> If you are using a management application, it is going to be easier to
> restart the process that trying to cleanup everything.
>
> Experience shows that people really tries to do weird things when
> machine is in this state.
>
> Later, Juan.
>
>    

  reply	other threads:[~2010-05-25 18:52 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-25 14:21 [Qemu-devel] [PATCH v2 0/5] Add QMP migration events Juan Quintela
2010-05-25 14:21 ` [Qemu-devel] [PATCH 1/5] Exit if incoming migration fails Juan Quintela
2010-05-25 18:01   ` Luiz Capitulino
2010-05-25 18:37     ` [Qemu-devel] " Juan Quintela
2010-05-25 18:52       ` Anthony Liguori [this message]
2010-05-25 14:21 ` [Qemu-devel] [PATCH 2/5] Factorize common migration incoming code Juan Quintela
2010-05-25 14:21 ` [Qemu-devel] [PATCH 3/5] QMP: Introduce MIGRATION events Juan Quintela
2010-05-25 15:09   ` Anthony Liguori
2010-05-25 15:35     ` [Qemu-devel] " Juan Quintela
2010-05-25 15:52       ` Daniel P. Berrange
2010-05-25 15:57       ` Anthony Liguori
2010-05-25 16:04         ` Juan Quintela
2010-05-25 16:10           ` Anthony Liguori
2010-05-25 18:13             ` Luiz Capitulino
2010-05-25 16:04         ` Daniel P. Berrange
2010-05-25 16:04         ` Juan Quintela
2010-05-25 16:25           ` Daniel P. Berrange
2010-05-25 16:33             ` Anthony Liguori
2010-05-25 16:43               ` Juan Quintela
2010-05-26 10:33                 ` Daniel P. Berrange
2010-05-26 14:54                   ` Anthony Liguori
2010-05-26 15:15                     ` Daniel P. Berrange
2010-05-26 16:55                       ` Anthony Liguori
2010-05-27 13:48                         ` Luiz Capitulino
2010-05-27 15:58                           ` Juan Quintela
2010-05-27 16:07                             ` Luiz Capitulino
2010-05-27 16:07                             ` Anthony Liguori
2010-05-26 10:16               ` Daniel P. Berrange
2010-05-25 18:21       ` Luiz Capitulino
2010-05-25 18:38         ` Juan Quintela
2010-05-25 15:48     ` [Qemu-devel] " Daniel P. Berrange
2010-05-25 18:31   ` Luiz Capitulino
2010-05-25 18:51     ` Anthony Liguori
2010-05-26 13:14       ` Luiz Capitulino
2010-05-25 14:21 ` [Qemu-devel] [PATCH 4/5] QMP: Emit migration events on incoming migration Juan Quintela
2010-05-25 14:21 ` [Qemu-devel] [PATCH 5/5] QMP: Emit migration events on outgoing migration Juan Quintela
  -- strict thread matches above, loose matches on Subject: below --
2010-05-24  8:25 [Qemu-devel] [PATCH 0/5] Add QMP migration events Juan Quintela
2010-05-24  8:25 ` [Qemu-devel] [PATCH 1/5] Exit if incoming migration fails Juan Quintela
2010-05-24  9:02   ` [Qemu-devel] " Paolo Bonzini
2010-05-24 11:53   ` Michael S. Tsirkin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4BFC1C7E.90803@codemonkey.ws \
    --to=anthony@codemonkey.ws \
    --cc=lcapitulino@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=quintela@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).