-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
It might be a good idea to disable iSCSI & Stratis support for now in Anaconda-mode Cockpit storage #20844
Comments
Yep, agreed. When in Anaconda mode, Cockpit Storage:
|
Yes, makes sense. Let's do that. |
AFAIK this will not work in Anaconda mode ever. The biggest issue is that even if you download the package and install it -> Cockpit will do the formatting. The installed system will miss these packages so it probably won't boot correctly. I would say, that if any feature in Cockpit Storage needs to download packages, that feature should be disabled in Cockpit. That is a general rule here. |
Can this be controlled via the packages that are installed when Anaconda runs? I.e., if stratis is available on the D-Bus, should Cockpit still omit it from its menus when in Anaconda mode? If so, does this need to be configurable somehow, so that different editions can behave differently? If we need configurability, I think I would do that via the existing Anaconda->Cockpit config blob. |
@mvollmer I think it's ok to do package detection and show/hide the storage features accordingly in anaconda mode. @jkonecny12 any opinion on this? |
I think package detection is a good initial step, but I can imagine other possible variables that could play a role, even if the packages end up on the image (possibly by accident):
|
I don't think we can use feature detection here. The issue is that we are targeting Workstation where user can just install any package of their choice anytime. |
Yeah, that is a good point. Really looks more and more that this should be a fixed per variant/spin policy decision, possibly configured via the Anaconda config file or similar mechanism. |
Ok, what do we need to configure exactly? a) Just online / offline? When offline, Cockpit would omit iscsi, nfs, and clevis. b) Or the full palette of optional Cockpit storage features? These are currently btrfs, iscsi, lvm2, vdo, (also legacy vdo), clevis, nfs, stratis, and packagekit. (Currently, packagekit is forced off in Anaconda mode, to prevent installation of on-demand things.) I'll implement b), since that is the most flexible. |
@mvollmer: Yes, don't have any auto-install anything when in Anaconda. It should only be able to use features already available from installed packages only. Examples:
The problem we're hitting in Anaconda, is that Cockpit Storage shows support for things that aren't installed. The Workstation spin doesn't have those, yet it looks like you can use them and Cockpit attempts to install them and fails. It shouldn't even show them, as they're not installed, and we cannot assume there's a network connection (as there usually isn't even one). |
Yes, this was done in #20950. Is there anything else in addition to this that should be done in Cockpit? For example, we already switch off NFS when in Anaconda mode, regardless of whether support for it is installed or not. Should we also switch off iSCSI regardless of whether it is installed? Or should these two decisions maybe be made according to whether the network is available or not. |
#21150, please comment. |
So if I understand it correctly - package not installed + package installation not possible = feature is not available, right ? Yeah, I think that should work for Anaconda. :)
Yeah, I think network being up is definitely a pre-condition for using iSCSI. Also I remember that iSCSI might need some special behavior when setup during the installation to be still reliably usable on the installed system - maybe @rvykydal could chime in if it looks like what Cockpit storage provides could be enough for it to work out of the box ? |
@martinpitt @M4rtinK @mvollmer @jkonecny12 sorry I have not been following this. I am not very supportive on #21150, as my opinion from the very start of the integration of anaconda with cockpit-storage, is that:
@M4rtinK @jkonecny12 have different opinion on this, so we would sync as a team and reply in the PR. |
The team came to conclusion. @garrett sumarized it at #21150 (comment) |
Thanks. So given the discussion here and in #21150 , and with the on-demand install already landed, I don't see anything else here. So I take it the status quo is fine now? Please reopen/yell if I missed something. Thanks! |
When doing some baremetal testing I have noticed that Cockpit storage triggered from Anaconda shows both iSCSI & Stratis options.
The iSCSI option looked functional, but I have not tested it.
The Stratis option was apparently missing some dependencies and showed a concerning error message:
This could be due to the current main environment for the Anaconda WebUI (Live iamge) being an offline installer by default. So it can't download any extra packages & I don't think iSCSI would work without network as well.
Overall I would suggest disabling those options for now, and onnly enabling them again in the future if:
The text was updated successfully, but these errors were encountered: