Bug 680135

Summary: VDSM: VM ran in stateless on spm migrates after storage disconnect-> and gets paused when ran again in source after storage was connected
Product: Red Hat Enterprise Linux 6 Reporter: Dafna Ron <dron>
Component: vdsmAssignee: Dan Kenigsberg <dkenigsb>
Status: CLOSED NOTABUG QA Contact: yeylon <yeylon>
Severity: unspecified Docs Contact:
Priority: low    
Version: 6.1CC: abaron, bazulay, danken, iheim, lpeer, Rhev-m-bugs, srevivo, yeylon, ykaul
Target Milestone: rc   
Target Release: 6.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 680136 Environment:
Last Closed: 2011-03-03 10:38:42 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
logs none

Description Dafna Ron 2011-02-24 13:02:33 UTC
Created attachment 480748 [details]
logs

Description of problem:

run-once stateless VM running on spm and migrated because of storage disconnection will pause due to I/O errors after reconnecting storage and running VM normally on source again. 
log show the following:

QMon-193::INFO::2011-02-24 14:48:02,753::vm::959::vds.vmlog.3d98f3d4-cb8b-44fa-bda6-55866039dbcd::abnormal vm stop device ide0-hd0 error Operation not permitted
QMon-193::DEBUG::2011-02-24 14:48:02,753::QemuMonitor::317::vds.vmlog.3d98f3d4-cb8b-44fa-bda6-55866039dbcd::# VM is stopped due to disk write error: ide0-hd0: Operation not perm
itted


Version-Release number of selected component (if applicable):


How reproducible:
100%

Steps to Reproduce:
1. run stateless VM on run-once on SPM and block communication between host and storage 
2. after VM migrate stop VM
3. run the VM on the source host (not in run once stateless) 

  
Actual results:

the VM will pause due to I/O errors

Expected results:

the VM should run normally. 


Additional info:
logs

Comment 1 Ayal Baron 2011-02-26 09:10:27 UTC
Migrating due to storage failure is not supported.
Correct behaviour is not to migrate the VM at all.
Moving to backend.

Comment 2 lpeer 2011-03-03 06:55:56 UTC
(In reply to comment #1)
> Migrating due to storage failure is not supported.
> Correct behaviour is not to migrate the VM at all.
> Moving to backend.

If the host disconnects from a data SD it changes it's status to non operational state and the VMs are migrated not according to user defined policy.

That is the supported behaviour, no issue to handle in backend.
Ayal I think the issue is not about migrating or not but the pause VM behaviour which i am not sure is wrong.

Please review again and if you don't see issues with the VDSM behaviour you can close this.