Hi,
I was trying to generate the package manifest(ICICLE) of an existing disk image(an oz
jeos).
Ensured the guest was shutdown and tried this:
########
root@~ $ oz-generate-icicle -d 4 /export/temp/oz-test/mickey.tdl
/etc/libvirt/qemu/mickey.xml
########
<snip of oz-generate-icicle stdout>
#######################################################################################
.
.
DEBUG:oz.Guest.FedoraGuest:Resetting sshd service
DEBUG:oz.Guest.FedoraGuest:Teardown step 3
DEBUG:oz.Guest.FedoraGuest:Resetting iptables rules
DEBUG:oz.Guest.FedoraGuest:Teardown step 4
DEBUG:oz.Guest.FedoraGuest:Resetting announcement to host
DEBUG:oz.Guest.FedoraGuest:Removing icicle-nc binary
DEBUG:oz.Guest.FedoraGuest:Resetting crond service
DEBUG:oz.Guest.FedoraGuest:Teardown step 5
INFO:oz.Guest.FedoraGuest:Cleaning up guestfs handle for mickey
DEBUG:oz.Guest.FedoraGuest:Syncing
DEBUG:oz.Guest.FedoraGuest:Unmounting all
DEBUG:oz.Guest.FedoraGuest:Killing guestfs subprocess
Traceback (most recent call last):
File "/usr/bin/oz-generate-icicle", line 107, in <module>
print guest.generate_icicle(open(libvirt_xml_file, 'r').read())
File "/usr/lib/python2.7/site-packages/oz/RedHat.py", line 388, in
generate_icicle
self.shutdown_guest(guestaddr, libvirt_dom)
File "/usr/lib/python2.7/site-packages/oz/RedHat.py", line 432, in
shutdown_guest
libvirt_dom.destroy()
File "/usr/lib64/python2.7/site-packages/libvirt.py", line 349, in destroy
if ret == -1: raise libvirtError ('virDomainDestroy() failed', dom=self)
libvirt.libvirtError: Requested operation is not valid: domain is not running
#######################################################################################
IIUC, it succeeds till step 5 (which is un-doing the modifications done on the disk image
to allow remote access).
I didn't debug further. Shutting down gracefully fails? 'virDomainDestroy' --
is this
pulling the power plug or doing a graceful shut-down?
It is yet to get to step-6(final one) is where it's failing to generate the ICICLE
document w/ a list of pkgs.
Am I missing anything here?
Version Info:
########################
kashyap@~$ rpm -q oz
oz-0.5.0-2.fc14.noarch
########################
(NOTE:I tried this on both F14, and F15 hosts to no avail.)
PS: Also attached the complete STDOUT of running oz-generate-icicle.
--
/kashyap