-
Notifications
You must be signed in to change notification settings - Fork 18
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
Conversation
75745e8
to
e03aa2b
Compare
…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.
e03aa2b
to
2508bd5
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.
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" + |
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.
@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?
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.
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.
@rvykydal added one more test with the corresponding code logic for detecting invalid raid configuration. |
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.
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" + |
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.
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.
26be4f5
to
2c06a27
Compare
Resolves: rhbz#2344434
2c06a27
to
8d70d7a
Compare
The remaining test failures are unrelated. |
No description provided.