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

storage: cockpit-storage: select newly created mdarrays if the user created them #658

Merged
merged 5 commits into from
Mar 4, 2025

Conversation

KKoukiou
Copy link
Contributor

No description provided.

@KKoukiou KKoukiou force-pushed the raid-testcase-fedora-beta branch 3 times, most recently from 75745e8 to e03aa2b Compare March 4, 2025 11:20
KKoukiou added 3 commits March 4, 2025 13:18
…reated them

Inn blivet we recognize two "types" of MD array:
* The array is directly on top of disks: in this case we consider the array to be a disk
(similar to a hardware RAID) and create the partition table on the array
* The array is on top of partitions: from our pov this is a device and we allow only a single
filesystem (or other format like lvmpv) on top of it and if it has partitions they are ignored

For the first scenario, we need to re-set 'SelectedDisks' in backend,
for the new mdarrays to be handled as such.
One test is RAID on top of disks, the other test is RAID on top of
partitions.
@KKoukiou KKoukiou force-pushed the raid-testcase-fedora-beta branch from e03aa2b to 2508bd5 Compare March 4, 2025 12:18
Copy link
Contributor

@rvykydal rvykydal left a comment

Choose a reason for hiding this comment

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

Looks good to me.

message: cockpit.format(
_(
"Invalid RAID configuration detected.\n" +
"If your RAID array is created directly on top of disks, a partition table must be created on the array.\n" +
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@vojtechtrefny we discussed this last week, I think we should move this logic elsewere, (blivet and fedora documentation)
But for resolving fast the bug, can you please review this error message?

Copy link
Contributor

Choose a reason for hiding this comment

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

Strictly speaking, the first part is not true -- we support disks with filesystem without partition table, it's just not something generally recommend (and doesn't make much sense during installation anyway). But I am not really sure what will Anaconda do with disks like that (I think default behaviour is to create a new partition table on all selected disks) so I guess it makes sense to mark it as unsupported.

@KKoukiou
Copy link
Contributor Author

KKoukiou commented Mar 4, 2025

@rvykydal added one more test with the corresponding code logic for detecting invalid raid configuration.

Copy link
Contributor

@vojtechtrefny vojtechtrefny left a comment

Choose a reason for hiding this comment

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

Looks good to me.

message: cockpit.format(
_(
"Invalid RAID configuration detected.\n" +
"If your RAID array is created directly on top of disks, a partition table must be created on the array.\n" +
Copy link
Contributor

Choose a reason for hiding this comment

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

Strictly speaking, the first part is not true -- we support disks with filesystem without partition table, it's just not something generally recommend (and doesn't make much sense during installation anyway). But I am not really sure what will Anaconda do with disks like that (I think default behaviour is to create a new partition table on all selected disks) so I guess it makes sense to mark it as unsupported.

Use rsync instead of cp to exclude unnecessary paths (/dev, /proc, /sys, etc.),
ensuring a more reliable system transfer, as cp got stuck often.
@KKoukiou KKoukiou force-pushed the raid-testcase-fedora-beta branch 2 times, most recently from 26be4f5 to 2c06a27 Compare March 4, 2025 16:09
@KKoukiou KKoukiou force-pushed the raid-testcase-fedora-beta branch from 2c06a27 to 8d70d7a Compare March 4, 2025 16:26
@KKoukiou
Copy link
Contributor Author

KKoukiou commented Mar 4, 2025

The remaining test failures are unrelated.

@KKoukiou KKoukiou merged commit 7705e26 into rhinstaller:main Mar 4, 2025
15 of 17 checks passed
@KKoukiou KKoukiou deleted the raid-testcase-fedora-beta branch March 4, 2025 17:11
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.

3 participants