Skip to content

Conversation

@joseivanlopez
Copy link
Contributor

@joseivanlopez joseivanlopez commented Mar 27, 2025

Add basic support for LVM in the web UI:

  • Add, edit and delete new volume groups.
  • Add, edit and delete new logical volumes.

Out of scope:

  • Reuse existings volume groups.
  • Thin pools and thin volumes.
  • Create physical volumes manually.

joseivanlopez and others added 30 commits March 7, 2025 15:00
- Includes the name used for searching the device when the device
  is not found.
- The model includes all the devices, including devices with errors.
- Min size is even generated when a device is not found.
Show the volume groups used for the installation and their logical
volumes.

Note: The volume groups and logical volumes cannot be edited yet. 

![Screenshot From 2025-03-07
11-35-51](https://github.com/user-attachments/assets/a0ebfef4-326d-4701-af62-8192fe22d166)

![Screenshot From 2025-03-06
16-05-56](https://github.com/user-attachments/assets/cd76a837-d024-491d-916e-daba5c33dd0e)
Merge after-release-beta2 into storage-lvm.
Popups now automatically adjust their width when no variant is provided,
preventing them from being unnecessarily wide with short content.

It also removes deprecated size properties.
Adjusted the layout of the form to improve its visual "flow and rhythm".
The title can now be any valid ReactNode, not just a string.
## Problem

Commit a1a016b introduced some
side-effects here and there that are easy to fix by adjusting affected
layouts.

## Solution

Allow popups to use an auto width when no variant is given plus
reworking the login form.
Override PatternFly styles to ensure that a FormGroup aligns to the
start of its flex container instead of stretching to fill all available
space by default.

https://developer.mozilla.org/en-US/docs/Web/CSS/justify-content#normal
joseivanlopez and others added 14 commits March 26, 2025 15:31
- Add, edit and delete logical volumes.
Refactor the alert design to stop rendering them as "boxes", which were
cluttering the interface. Instead, they now use a left border and a
gradient background to maintain visual hints about the scope of their
content without the boxy appearance.
Refactor the alert design to stop rendering them as "boxes", which were
cluttering the interface. Instead, they now use a left border and a
gradient background to maintain visual hints about the scope of their
content without the boxy appearance.

| Before | After  |
|-|-|
| ![localhost_8080_
(29)](https://github.com/user-attachments/assets/d9e717ae-ac7d-4e3a-b02d-89a82173d253)
| ![localhost_8080_
(28)](https://github.com/user-attachments/assets/c52a50ba-dc47-47db-b573-7263eb2aca5c)
|
Changes on top of latest LVM features
Allow managing LVM logical volumes (add, edit and delete).

Notes: 

* *LogicalVolumePage* and *PartitionPage* components must be refactored.
* The validation in both pages should be adaped in order to follow the
same approach as the rest of the UI (i.e., validating on accept).

Disclaimer: 

The code in this PR was done in a hurry for including LVM managent in
SLE16 Beta3. It does not satisfy our expected quality thresholds and
will be refactored as soon as possible.
@joseivanlopez joseivanlopez marked this pull request as ready for review March 27, 2025 11:51
Copy link
Contributor

@imobachgs imobachgs left a comment

Choose a reason for hiding this comment

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

Obviously, I am not going through 7k lines of code :-) However, all that code have been reviewed in several PRs, the changes files look good and the CI problems are not related to it.

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.

I have not gone through all the code either. But I have tested the result, including the redefined regexp and it looks good to me.

@joseivanlopez joseivanlopez merged commit 26bedf0 into master Mar 27, 2025
9 of 11 checks passed
@joseivanlopez joseivanlopez deleted the storage-lvm branch March 27, 2025 12:33
@imobachgs imobachgs mentioned this pull request Mar 27, 2025
imobachgs added a commit that referenced this pull request Mar 27, 2025
bmwiedemann pushed a commit to bmwiedemann/openSUSE that referenced this pull request Mar 27, 2025
https://build.opensuse.org/request/show/1256469
by user IGonzalezSosa + anag+factory
- Version 13

- Add basic support for creating LVM volume groups and logical
  volumes (gh#agama-project/agama#2216).

- Change switches by checkboxes (gh#agama-project/agama#2168).
- Restructure the encryption form (gh#agama-project/agama#2168).

- Properly handle empty lists of unsupported AutoYaST elements
  (gh#agama-project/agama#2196).

- Stop parsing errors from SCC at frontend side and simply render
  them as returned by the backend (gh#agama-project/agama#2193).

- Stop displaying the hostname alert once the system is registered
  (gh#agama-project/agama#2183).

- Allow temporary removal of the root file system
 (gh#agama-project/agama#2160).
bmwiedemann pushed a commit to bmwiedemann/openSUSE that referenced this pull request Mar 27, 2025
https://build.opensuse.org/request/show/1256470
by user IGonzalezSosa + anag+factory
- Version 13

- Extend storage model for basic LVM support
  (gh#agama-project/agama#2216).

- Install registred addon product (its *-release package)
  (related to jsc#AGM-100)

- Support for autoyast manual files deployment with exception
  of deploying directories and files_script
  (gh#agama-project/agama#2121)

- Add extensions from the registration server (automatic
  installation only) (jsc#AGM-100)

- Symlink the /mnt/etc/resolv.conf to the NetworkManager running
  one in order to have DNS resolution in the chroot post scripts
  (bsc#1235617, gh#agama-project/agama#2179).

  (gh#agama-project/agama#2140).
  will be proposed by storage. Currently works only for BLS.
@imobachgs imobachgs mentioned this pull request Apr 22, 2025
imobachgs added a commit that referenced this pull request Apr 22, 2025
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.

5 participants