-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unmount Ignores User + Matches non-CDROM disks #33
Comments
This is an interesting one... The code itself should come to a hard stop if the user chooses 'no' as any mounted disks on VMs have been known to break the application of updates. What it defintiely shouldn't do is:
Definitely a bug. Marking as so. |
Got the fix for this in my dev tree at present. Shouldn't be long till this is committed. Better late than never! |
Closing this now :) |
Hi I've just updated patcher on one of my servers and I am still seeing a similar error. An error occured when attempting to unmount the CD Images. I think there is nothing mounted on dom(0) that appears to relate: So it must be the VM on the server and short of deleting the actual drive from the VM (or shutting down the VM, which I have not tried as yet - production environment). But if the drive is "empty" then what is the issue. Once again an answer of Yes or No, gives the same error result which says that umount cannot be used for this CD drive. Thoughts ? Thanks |
Try adding the Suggestion; pipe it into
|
Hi On a different topic, I noted this error with removing a file: Downloading: XS62ESP1020.zip Applying Patch 6057cfe5-811d-46f1-82e1-6da737a0a038 Tony |
Yup that's fine; we check to see if the source package file has been left behind, and clean it up if it is. As the file wasn't found, there's nothing to clean. Though, do check your working directory to make sure there's no *-src-pkg.tar.bz2 files present in case something went wrong in the filename detection. :) |
From the debug log, nothing different to what I am seeing already (as per below). The log includes a long list of every patch file applied and to be applied, not sure if that is relevant ? I have 4 dom(0) hosts and 2 have run ok, and 2 have this vbd issue just with different UUID's and both are showsn as hdd. Both show the vdi-uuid as . I have tried full shutdown and restarts. Both hosts have in common: only 1 VM Windows server 2008 and 2012. Both completed hosts have in common multiple VM's of Windows and Linux platforms. Not that I think 1 VM vs many is the issue, but I am looking for commonalities. NOTE: Installation of these items will require a reboot! CD images are currently mounted to one or more VMs. Would you like to auto-umount these now? [y/n]: Unmounting CD Images from VMs An error occured when attempting to unmount the CD Images. Please manually unmount, and run the patcher again. From the console xe vbd-listuuid ( RO) : 4986acf4-2830-8e6d-973f-f6387c2c08e7 Double checking everything, the VM on this host has 2 x VHD's being hda and hdb and a DVD physical drive. hdd and the rogue UUID does not appear to exist other than in the listing. Just not clear on how to safely remove it or clarify what it actually relates to. cheers |
OK I see now; seems safe enough to ignore devices which have a status of Will workaround this in code. |
Managed to reproduce this by:
I guess the ideal fix here would be to build an array of CD devices located, strip any set to For now, I've committed a change which introduces a quick 'heads-up' to the end user, and allows the user to continue after reviewing the reported errors; the output will change to the following:
At least for now we can ignore and continue :) |
Hi Darren, Thanks for working through this. I agree with the synopsis and that it is an issue that can be ignored for the purpose of processing patches. Also I have downloaded the latest release and it is working right now on the two servers that had this issue as per the new option to "continue anyway". cheers |
Hi Darren Just confirming that both servers have now been successfully patched with the new release of patcher.py Thanks again for your assistance and for this script. Excellent work ! cheers |
Good to hear! I'll hold this open with the view to one day changing the code to handle this without user intervention. |
Hi,
To start, thanks for this utility, it has helped enourmously for my Xen environment.
I am now running patcher.py on an HP DL360 with Xen 6.2 with one VM only. I've tried with the VM powered up and down but no difference. Responding yes or no to auto-unmount gives the same answer, i.e. it seems to be forcing unmount even if told not to. I have yet to examine python code.
Example output with Y for yes to auto-umount
CD images are currently mounted to one or more VMs.
These must be unmounted before starting the patching process.
Would you like to auto-umount these now? [y/n]: y
Unmounting CD Images from VMs
An error occured when attempting to unmount the CD Images.
Error is: Operation could not be performed because the drive is empty
vbd: 4986acf4-2830-8e6d-973f-f6387c2c08e7
Please manually unmount, and run the patcher again.
Example output with N for no to auto-umount
CD images are currently mounted to one or more VMs.
These must be unmounted before starting the patching process.
Would you like to auto-umount these now? [y/n]: n
Unmounting CD Images from VMs
An error occured when attempting to unmount the CD Images.
Error is: Operation could not be performed because the drive is empty
vbd: 4986acf4-2830-8e6d-973f-f6387c2c08e7
Please manually unmount, and run the patcher again.
mount shows as:
mount
/dev/cciss/c0d0p1 on / type ext3 (rw)
none on /proc type proc (rw)
none on /sys type sysfs (rw)
none on /dev/pts type devpts (rw)
none on /dev/shm type tmpfs (rw)
/opt/xensource/packages/iso/XenCenter.iso on /var/xen/xc-install type iso9660 (ro,loop=/dev/loop0)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
umount /var/xen/xc-install does umount the only .iso listed above
xe vbd-list
uuid ( RO) : 4986acf4-2830-8e6d-973f-f6387c2c08e7
vm-uuid ( RO): 572656b5-3e05-e864-1f25-c34ed0a06b58
vm-name-label ( RO): MyServerName
vdi-uuid ( RO):
empty ( RO): true
device ( RO): hdd
Appears to show that the vbd is not available.
I suspect it may be a raid rebuild in progress rather than a removable drive issue and I'll check it again in a few hours to see if the drive becomes available.
The purpose of the post is to check if there is anything in the patcher.py that needs to be reviewed to address the Y / N umount getting the same response. I would have expected N to just move on.
Thanks again.
Tony
The text was updated successfully, but these errors were encountered: