-
Notifications
You must be signed in to change notification settings - Fork 55
feat: support for unattended zFCP configuration #2551
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
Conversation
Ok(self.client.put_void("/storage/dasd/config", config).await?) | ||
} | ||
|
||
pub async fn supported(&self) -> Result<bool, DASDHTTPClientError> { | ||
Ok(self.client.get("/storage/dasd/supported").await?) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps it might be good to have a /storage/supported
or /storage/features
that returns which features are actually supported in a single place. But I guess it is out of scope here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
makes sense for me, but I would do it in separate PR as it affects also web UI
pub async fn set_config(&self, config: &ZFCPConfig) -> Result<(), ZFCPHTTPClientError> { | ||
if !self.supported().await? { | ||
// TODO: should we add tracing error here? | ||
return Ok(()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By now I would most probably add a warning.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
question is if we should add tracing
to agama-lib as currently it is only in agama-server and agama-network
Co-authored-by: Imobach González Sosa <[email protected]>
1991184
to
ddca271
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Problem
There is missing support to activate zFCP devices in unattended agama.
Solution
Implement it and also together with it fix also wrong dasd export at https://bugzilla.suse.com/show_bug.cgi?id=1246102
Testing
Manually tested with following profile ( first select product and then test it using
agama config load
. We cannot test it with full unatttended profile as our only s390 machine with zfcp available is already installed, so we tested it on installed system )Documentation
related PR agama-project/agama-project.github.io#96