-
Notifications
You must be signed in to change notification settings - Fork 144
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
Provision a guest with multiple disks #2536
Comments
Possible workaround: disk:
- size: ">= 0"
- size: ">= 0"
- size: ">= 0"
- size: ">= 0" This would turn into requesting 4 disks of any size. |
As proposed in #2721, we could have keywords in collections: disk:
count: ">= 4" |
We have many testcases,which need more than two disks,the disk.count param would benefit us a lot:) |
The suggested feature, with its specification proposed in #2789, and with changes proposed by me in #2790 (comment), did not seem to attract any real support from the rest of tmt community. Quite frankly, it was a bust. @guazhang @skycastlelily would you mind commenting on how frequently you and your test face this kind of request in your tests and related work? Plus, more real-live use cases and demonstration of the added value, compared to the "copy & paste" workaround from #2536 (comment), are needed to get the necessary traction. A note to the "copy and paste" workaround: it's equivalent to the |
Thanks for this note @happz. I didn't realize that use case and with it in mind I have to scratch all my complains . |
Sorry, when discussing the proposal yesterday I did not know about this issue so I completely missed the motivation mentioned here.
@skycastlelily, @martinhoyer, what's the common number of disks you usually request in your test cases? I would just like to better understand what is a common scenario here.
Shouldn't the list of two disks be mapped to any guest which has at least two disks? I think it would be much more reasonable default. For example, when I just need a larger disk I would state: disk:
- size: >= 4 GB In this case I'd say it does not make sense to limit search for single-disk guests only. Does it? |
That's hard to tell, given how I suppose we should not leave space for such guessing, and define what exactly That's why I like the idea of adding |
Tough question. I think disk @fsuba might have better insight on what is a usual requirement for Stratis/VDO/LVM testing. From my (distant) point of view, if a tester has a complex hardware requirements, they probably know specific hosts that fits them, so it should just be a matter of specifying a list of hostnames to choose from. So I wouldn't go crazy with hard-to-implement filters. |
Hi, maybe we can add another parameter to filter disk model. |
|
We do, but this can be already done with |
Hi, sorry for the late reply, I was on sick leave.
Three. Without count, we need specify - size > 8G three times. And we do have some testcases ( besides the three-disks ones)needing more than two disks(disk.count >= 2) , so, disk.count would really benefit us:) |
we need multiple disks server for some testing, like raid.
but looks tmt don't support it, so could we add this function in provision ?
maybe like --hardware "disk.size >= 500GB" --hardware "disk.count >= 4"
The text was updated successfully, but these errors were encountered: