-
Notifications
You must be signed in to change notification settings - Fork 125
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
Add support for multiple disks to testcloud plugin #2767
Conversation
6d356d9
to
c2bcbd0
Compare
c2bcbd0
to
2f630e0
Compare
2f630e0
to
162d457
Compare
@happz this looks weird:
|
@happz this would deserve a better error:
|
@happz this does not fail:
|
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.
Some behavior is odd, kindly asking for review
I'm open to suggestions for improvements. |
@thrix right, I’ll add some test coverage, and I’ll use your examples too. |
(shortened a bit for brewity)
I kinda understand why it looks like it, but from user perspective I am wondering if it is important that one disk is with index 1 and second with 10, looking at the booted machine, seems it is the same as if I would use index 0 and index 1? Because of that I would go with:
|
Well, then you should have used Yeah, this is not well thought out, the order is much less important than it might look like. This might be actually a good idea, merge all inputs and then remove all empty slots. We need the index when defining the requirements, so you can refer to the same disk from multiple options (
I'd like to achieve this: hardware:
disk[0].size: = 20GB
disk[1].size: = 15GB but it turns out to be hard to achieve with simple tools I have, it'd require way more work, so I will probably go with removing the empty slots. |
2cf44e5
to
d78fca0
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.
Nice, feel free to close the nitpicking comments.
e0a030c
to
416ff35
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.
LGTM
953982c
to
6b07646
Compare
@thrix I'm putting placeholders back into output, I can't fix #3004 without them for now. Good news is, you won't see them in real life that much, Added an issue to track it, and will follow up, not just to get rid of placeholders but also to clear up the position of "root disk" (or "boot disk"?). |
@happz Test failures are not related to this PR, right? |
I don't think so fwiw. |
Unrelated, but the results for the |
``` TMT_SHOW_TRACEBACK=1 tmt -vv run plans --default \ provision --how virtual --image fedora-39 \ --hardware 'disk[1].size=20GB' \ --hardware 'disk[0].size=15GB' \ login -s provision \ finish ``` Fixes #2765
Co-authored-by: Martin Hoyer <[email protected]>
Co-authored-by: Martin Hoyer <[email protected]>
e8290de
to
f4933f5
Compare
All failures are unrelated now, merging. |
``` TMT_SHOW_TRACEBACK=1 tmt -vv run plans --default \ provision --how virtual --image fedora-39 \ --hardware 'disk[1].size=20GB' \ --hardware 'disk[2].size=15GB' \ login -s provision \ finish ``` Fixes #2765 Co-authored-by: Martin Hoyer <[email protected]>
``` TMT_SHOW_TRACEBACK=1 tmt -vv run plans --default \ provision --how virtual --image fedora-39 \ --hardware 'disk[1].size=20GB' \ --hardware 'disk[2].size=15GB' \ login -s provision \ finish ``` Fixes teemtee#2765 Co-authored-by: Martin Hoyer <[email protected]>
Fixes #2765
Pull Request Checklist