Skip to content

Conversation

rushikeshjadhav
Copy link
Contributor

The test by reducing disk:
- Does not apply to "thin" type SR due to thin LVM limitations.
- Identifies disks used for LVM, chooses a disk and empty it.
- Once the disk is removed from LVM, linstor service is restarted to recognise the SR size change.

The test by reducing host:
- Selects a non master host to evacuate and eject from pool.
- Ensures that the host selected is not linstor-controller, if it is then moves the controller services to another host.
- Evacuates host selected, stops linstor services and unplugs PBD.
- Deletes selected node from linstor pool.
- Restarts services to recognise the SR size change.

…hecks.

Added docstring explaining what this new method does vs `disk_is_available`.
Added type hints.

Signed-off-by: Rushikesh Jadhav <[email protected]>
…specifying or auto-detecting Linstor SR expansion disks.

Signed-off-by: Rushikesh Jadhav <[email protected]>
…tor_sr_expand_host`

Signed-off-by: Rushikesh Jadhav <[email protected]>
Added `test_linstor_sr_expand_disk` to detect & assert change in SR size.

The test:
- Ensures `--expansion-sr-disk` disk(s) are available on the hosts.
- Configures LVM onto it and integrates into Linstor SR pool.
- Expands SR capacity and validates the increase.

Signed-off-by: Rushikesh Jadhav <[email protected]>
…tor SR by integrating a new host into the storage pool.

The test:
- Ensures the new host has available disks and installs required Linstor packages.
- Configures LVM and integrates it into Linstor SR pool.
- Expands SR capacity and validates the increase.
- Handles cleanup by removing the node.

Signed-off-by: Rushikesh Jadhav <[email protected]>
…ving a disk.

The test:
- Does not apply to "thin" type SR due to thin LVM limitations.
- Identifies disks used for LVM, chooses a disk and empty it.
- Once the disk is removed from LVM, linstor service is restarted to recognise the SR size change.

Signed-off-by: Rushikesh Jadhav <[email protected]>
…ving a host.

The test:
- Selects a non master host to evacuate and eject from pool.
- Ensures that the host selected is not linstor-controller, if it is then moves the controller services to another host.
- Evacuates host selected, stops linstor services and unplugs PBD.
- Deletes selected node from linstor pool.
- Restarts services to recognise the SR size change.

Signed-off-by: Rushikesh Jadhav <[email protected]>
@rushikeshjadhav rushikeshjadhav requested review from ydirson, Nambrok and stormi and removed request for ydirson May 21, 2025 08:46
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.

1 participant