-
Notifications
You must be signed in to change notification settings - Fork 91
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
Avoid usage of umount
in ISOSR
when legacy_mode
is used
#579
base: master
Are you sure you want to change the base?
Avoid usage of umount
in ISOSR
when legacy_mode
is used
#579
Conversation
`umount` should not be called when `legacy_mode` is enabled, otherwise a mounted dir used during SR creation is unmounted at the end of the `create` call (and also when a PBD is unplugged) in `detach` block. Signed-off-by: Ronan Abhamon <[email protected]>
I'd be very surprised if |
Well, |
Well, it's technical debt as far as Citrix is concerned and a candidate for removal, we just haven't got around to do so. |
I'll try to be the voice of users somehow. I can see how it's technical debt from the technical side, but local ISO SRs are a valid use case (ideally, on a separate mounted partition as in the case that revealed the issue discussed here), so I would be concerned if the code were removed without an alternate solution offered to users. Would both code cleaning and a new feature - a separate local ISO SR driver? A new driver in smapiv3? - be done at the same time or is it the official XAPI project position that ISO SRs on local disks are not a valid use case? |
You can see it still used in this 2018 article: https://linuxconfig.org/how-to-add-iso-image-storage-repository-on-xenserver-7-linux Or in the XS forum: https://discussions.citrix.com/topic/395569-how-to-add-local-iso-repository-to-xenserver-72/ An internet search for local ISO SRs on Citrix hypervisor also gives this old KB that I saw users still refer to https://support.citrix.com/article/CTX121671 Interaction with XCP-ng users also regularly reveals that in small setups (single hosts, two hosts...) a local ISO SR is needed to avoid depending on a SMB or NFS ISO SR to be able to create any VM. |
yes, for XenServer 3.2, a release, out of support for over a decade. This code is untested and unmaintained and therefore at risk of being broken by changes that do not anticipate the needs for it. |
I understand that. My concern remains that, to my knowledge, a fair amount of users - granted, probably users small enough that they are not important to Citrix - do depend on it already. The use case was important enough at the time of XS 5.0 that a KB was created, users relied on it, and I never saw an announcement saying that it is not valid anymore (there may be one I haven't seen). That's why I'm wondering about what the feature will become. This legacy_mode thing is clearly something that should probably go, but what about a replacement for it such as a dedicated |
Doing this "properly" would be relatively straightforward as a small subclass of the ISOSR class that just defined empty, no-op implementations for |
Thanks for the pointers. We will choose what to do if/when the legacy code gets removed. I still suspect you would get a few surprised Citrix Hypervisor users though. We already have a fork of Now, about this very PR, wouldn't it be possible to accept it? It does fix a bug, should not break any existing tests, and makes the feature tested, a feature that is maybe not officially supported (you might want to have the KB updated and/or include it in the list of deprecated features in the next CH release) but is used nonetheless. And this does not prevent you from removing the whole |
umount
should not be called whenlegacy_mode
is enabled, otherwise a mounted dirused during SR creation is unmounted at the end of the
create
call (and alsowhen a PBD is unplugged) in
detach
block.Signed-off-by: Ronan Abhamon [email protected]