def cb_wrapper(callback, asyncjob, *args, **kwargs):
try: callback(asyncjob, *args, **kwargs) <------------------------------------line 89
except Exception, e:
# If job is cancelled, don't report error to user.
if (isinstance(e, libvirt.libvirtError) and asyncjob.can_cancel() and asyncjob.job_canceled):
return
/usr/share/virt-manager/virtManager/create.py:
# Build a list of pools we should refresh, if we are creating storage refresh_pools = []
for disk in guest.get_devices("disk"):
if not disk.wants_storage_creation(): continue
pool = disk.get_parent_pool()
if not pool: continue
poolname = pool.name()
if poolname not in refresh_pools: refresh_pools.append(poolname)
/usr/share/virt-manager/virtinst/guest.py, line 478
"""
Actually do the XML logging, guest defining/creating
@param is_initial: If running initial guest creation, else we are continuing the install
@param noboot: Don't boot guest if no install phase
"""
meter = self._build_meter(meter, is_initial)
doboot = not noboot or self.installer.has_install_phase()
if is_initial and doboot:
dom = self.conn.createLinux(start_xml or final_xml, 0) <--------------line 478
else:
dom = self.conn.defineXML(start_xml or final_xml)
if doboot: dom.create()
self.domain = dom meter.end(0)
self.domain = self.conn.defineXML(final_xml)
/usr/lib/python2.7/dist-packages/libvirt.py, line 3497
# virConnect functions from module libvirt-domain
#
def createLinux(self, xmlDesc, flags=0): """Deprecated after 0.4.6.
Renamed to virDomainCreateXML() providing identical functionality.
This existing name will left indefinitely for API compatibility. """
ret = libvirtmod.virDomainCreateLinux(self._o, xmlDesc, flags)
if ret is None:raise libvirtError('virDomainCreateLinux() failed', conn=self) <--------------line 3497
__tmp = virDomain(self,_obj=ret)
return __tmp
/usr/share/ virt-manager/ virtManager/ asyncjob. py:
def cb_wrapper( callback, asyncjob, *args, **kwargs):
callback( asyncjob, *args, **kwargs) <------ ------- ------- ------- ------- --line 89 libvirtError) and
asyncjob. can_cancel( ) and
asyncjob. job_canceled) :
try:
except Exception, e:
# If job is cancelled, don't report error to user.
if (isinstance(e, libvirt.
return
/usr/share/ virt-manager/ virtManager/ create. py:
# Build a list of pools we should refresh, if we are creating storage
refresh_ pools = [] devices( "disk") : storage_ creation( ):
continue
for disk in guest.get_
if not disk.wants_
pool = disk.get_ parent_ pool()
continue
if not pool:
if poolname not in refresh_pools:
/usr/share/ virt-manager/ virtinst/ guest.py, line 414
# Create devices if required (disk images, etc.) all_devices( ):
dev. setup(meter)
if not dry:
for dev in self.get_
if return_xml:
if dry:
# Remove existing VM if requested
self. check_vm_ collision( self.conn, self.name,
do_remove= self.replace)
# Set domain autostart flag if requested
return self.domain
self. installer. cleanup( )
finally:
def continue_ install( self, meter=None,
dry= False, return_xml=False):
"""
/usr/share/ virt-manager/ virtinst/ guest.py, line 478
"""
Actually do the XML logging, guest defining/creating
@param is_initial: If running initial guest creation, else we
are continuing the install meter(meter, is_initial) has_install_ phase()
@param noboot: Don't boot guest if no install phase
"""
meter = self._build_
doboot = not noboot or self.installer.
if is_initial and doboot: createLinux( start_xml or final_xml, 0) <--------------line 478 defineXML( start_xml or final_xml)
dom.create( )
dom = self.conn.
else:
dom = self.conn.
if doboot:
self.domain = dom
meter. end(0)
self.domain = self.conn. defineXML( final_xml)
/usr/lib/ python2. 7/dist- packages/ libvirt. py, line 3497
# virConnect functions from module libvirt-domain
#
def createLinux(self, xmlDesc, flags=0):
"""Deprecated after 0.4.6. XML() providing identical functionality. virDomainCreate Linux(self. _o, xmlDesc, flags) 'virDomainCreat eLinux( ) failed', conn=self) <--------------line 3497 self,_obj= ret)
Renamed to virDomainCreate
This existing name will left indefinitely for API compatibility. """
ret = libvirtmod.
if ret is None:raise libvirtError(
__tmp = virDomain(
return __tmp
def createXML(self, xmlDesc, flags=0):