Skip to content

Additional ceph disks for clusters#84

Open
dahoat-sprecher wants to merge 3 commits intoseapath:mainfrom
dahoat-sprecher:daho-additional-ceph-disks
Open

Additional ceph disks for clusters#84
dahoat-sprecher wants to merge 3 commits intoseapath:mainfrom
dahoat-sprecher:daho-additional-ceph-disks

Conversation

@dahoat-sprecher
Copy link

@dahoat-sprecher dahoat-sprecher commented Mar 6, 2026

Hello to All,

As we noticed, the guest.xml.j2 contained partial support for (one) additional disk(s) for VMs. This Pull Request adds this feature also to clusters for an arbitrary amount of disks. However, this contains also a breaking change as the inventory for a VM uses a map instead of a list:

 additional_disk:
     vdb: "../files/data.qcow2" # TODO: Replace with your disk image

However, this permits explicitly naming additional disks.
See also: seapath/ansible#893

Best regards,
Daniel

dahoat-sprecher and others added 3 commits February 25, 2026 14:37
Modifications so that also cluster setups support multiple disks per VM.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Daniel Hofer <daniel.hofer@sprecher-automation.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Daniel Hofer <daniel.hofer@sprecher-automation.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Daniel Hofer <daniel.hofer@sprecher-automation.com>
@sonarqubecloud
Copy link

sonarqubecloud bot commented Mar 6, 2026

Copy link
Member

@eroussy eroussy left a comment

Choose a reason for hiding this comment

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

Hi @dahoat-sprecher

Thanks for the PR, it is a complicated one and it will have to be tested properly.
I have made some comments here and on the ansible PR. I will have another SEAPATH maintainer have a look also

</disk>
""".format(
rbd_secret, POOL_NAME, ceph_image, hosts_list,
dev, target_disk_bus
Copy link
Member

Choose a reason for hiding this comment

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

I don't think it is relevant to pass the dev variable here. You can just iterate over the number of disk in python and increment the letter (vdb, vdc ...)


logger = logging.getLogger(__name__)

"""
Copy link
Member

Choose a reason for hiding this comment

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

Can you squash your first two commits together ?

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.

Create VM with multiple disks

2 participants