[pve-devel] successfull migration but failed resume

Alexandre DERUMIER aderumier at odiso.com
Sun Feb 24 09:34:01 CET 2013


>>I've seen this sometimes. Is there any way to see how the output of the 
>>ssh command was? 

Stefan, when you have this error, do you see a "resume task" in pve-manager task list ?

If not,that mean that it's hang before fork_worker, so it's not qmp "cont" command related

I have send a patch to display errors in migration task list, if an error occur before fork_woker


qm resume code is:


qm resume 
    code => sub {
        my ($param) = @_;

        my $rpcenv = PVE::RPCEnvironment::get();

        my $authuser = $rpcenv->get_user();

        my $node = extract_param($param, 'node');

        my $vmid = extract_param($param, 'vmid');

        my $skiplock = extract_param($param, 'skiplock');
        raise_param_exc({ skiplock => "Only root may use this option." })
            if $skiplock && $authuser ne 'root at pam';

        die "VM $vmid not running\n" if !PVE::QemuServer::check_running($vmid);

        my $realcmd = sub {
            my $upid = shift;

            syslog('info', "resume VM $vmid: $upid\n");

            PVE::QemuServer::vm_resume($vmid, $skiplock);

            return;
        };

        return $rpcenv->fork_worker('qmresume', $vmid, $authuser, $realcmd);
    }});




So it's possible that is hanging on 
        die "VM $vmid not running\n" if !PVE::QemuServer::check_running($vmid);

because config file is not yet available

----- Mail original ----- 

De: "Stefan Priebe - Profihost AG" <s.priebe at profihost.ag> 
À: pve-devel at pve.proxmox.com 
Envoyé: Vendredi 22 Février 2013 15:01:25 
Objet: [pve-devel] successfull migration but failed resume 

Hello, 

I've seen this sometimes. Is there any way to see how the output of the 
ssh command was? 

Feb 22 14:48:05 migration speed: 819.20 MB/s - downtime 49 ms 
Feb 22 14:48:05 migration status: completed 
Feb 22 14:48:06 ERROR: command '/usr/bin/ssh -o 'BatchMode=yes' 
root at 10.255.0.20 qm resume 129 --skiplock' failed: exit code 2 
Feb 22 14:48:07 ERROR: migration finished with problems (duration 00:00:10) 

Greets, 
Stefan 
_______________________________________________ 
pve-devel mailing list 
pve-devel at pve.proxmox.com 
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel 



More information about the pve-devel mailing list