Skip to content
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

fix(web): storage reprobe #1911

Merged

Conversation

joseivanlopez
Copy link
Contributor

@joseivanlopez joseivanlopez commented Jan 16, 2025

Problem

If the system is set as deprecated (e.g., after activating iSCSI devices), then the web client automatically reprobes the storage devices and recalculates the proposal. That is done by 3 different calls (fetch config, probe, and set config). This makes the process very unreliable if more than one reprobing is done at the same time. As side effect, the current storage config could be lost, getting the initial storage proposal instead.

Solution

Add a new D-Bus method for reprobing in an atomic way. The system is set as "no deprecated" at the end of the action. Now clients can simultaneously call to reprobe without any risk.

@joseivanlopez joseivanlopez changed the title Fix storage reprobe fix(web): storage reprobe Jan 17, 2025
@joseivanlopez joseivanlopez marked this pull request as ready for review January 17, 2025 07:16
* @fixme Make DriveEditor to work when the device is not found (e.g., after disabling
* a iSCSI device).
*/
if (device === undefined) return null;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please create a Trello card for this.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

@ancorgs ancorgs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@joseivanlopez joseivanlopez merged commit 938378d into agama-project:storage-config-ui Jan 17, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants