Change in vdsm[master]: BZ#845994 VM failed to start after file injection.

ghammer at redhat.com ghammer at redhat.com
Tue Aug 14 09:08:41 UTC 2012


Gal Hammer has posted comments on this change.

Change subject: BZ#845994 VM failed to start after file injection.
......................................................................


Patch Set 3: (2 inline comments)

....................................................
File vdsm_hooks/fileinject/before_vm_start.py
Line 4: import sys
Line 5: import hooking
Line 6: import traceback
Line 7: import guestfs
Line 8: import tempfile
Done
Line 9: 
Line 10: '''
Line 11: fileinject vdsm hook
Line 12: ====================


Line 23: syntax:
Line 24:     fileinject=/<target file name> : <file content>
Line 25:     fileinject=/myfile:some file content\netc...
Line 26: '''
Line 27: 
Done
Line 28: def inject_file(filepath, content, drive, diskformat):
Line 29:     injected = False
Line 30:     gfs = guestfs.GuestFS()
Line 31:     try:


--
To view, visit http://gerrit.ovirt.org/6956
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: Ibb705a7153b1d2662a1c113bbbb5c694c568cabd
Gerrit-PatchSet: 3
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Gal Hammer <ghammer at redhat.com>
Gerrit-Reviewer: Dan Kenigsberg <danken at redhat.com>
Gerrit-Reviewer: Eduardo <ewarszaw at redhat.com>
Gerrit-Reviewer: Gal Hammer <ghammer at redhat.com>
Gerrit-Reviewer: Peter V. Saveliev <peet at redhat.com>
Gerrit-Reviewer: Shahar Havivi <shavivi at redhat.com>


More information about the vdsm-patches mailing list