-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Manage and use own storage pool #1956
Manage and use own storage pool #1956
Conversation
/test e2e-libvirt |
gah, that's not at all a useful log from |
/test e2e-libvirt |
1 similar comment
/test e2e-libvirt |
We'll be using the newly added API to create a custom storage pool in a following patch.
Don't assume `default` storage pool and create a new custom one. Fixes openshift#1457.
/test e2e-libvirt |
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 (I haven’t tested this yet), apart from the path used for the storage pool. I’ll check the SELinux behaviour.
Installer now manages and uses its own storage pool so this info is now redundant.
/test e2e-aws Also as per bot's orders :) /assign @abhinavdahiya |
74546e6 is |
seems it still needs |
Thanks. Do you mean only that commit is approved? |
I’m not sure mine counts, but here goes: /lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: abhinavdahiya, skitt, zeenix The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@skitt thanks, obviously it does. :) /test e2e-aws |
Yup, I need to flex my muscles a bit more ;-). |
/hold Sorry I'm late to this, but since the I completely agree with the premise of this - users should not have to manually create the "default" storage pool before running the installer But consider this - it has always been intended that libvirt installation would result in the https://www.redhat.com/archives/libvir-list/2008-August/msg00179.html (Whether this was a good idea or not is another matter - I'm just explaining the intent!) My conclusion - openshift-install should follow this approach and just create the default storage pool if it doesn't exist. Why? I think |
@markmc I created #1457 months ago and spent considerable amount of time implementing storage pools in terraform-provider-libvirt. In my discussion with Openshift devs, nobody objected to this before either so can you imagine my frustration on you blocking this at the last mile of a rather long journey? People expecting images to be under a very specific location is not a great argument IMO and certainly not a good one to present this late. I already updated the code to not assume a specific path for images: openshift/cluster-api-provider-libvirt#144 If your code assumes a path, please update it as that is not the correct thing to do. As mentioned before As for the need for this, this is part of my effort to hopefully move us to the session libvirt connection by default or at least be able to use session libvirt if user asks for it. Currently Installer happily let's you provide a libvirt connection URL but it can't actually handle anything other than the system libvirt connection. One reason that is the case is assumption of default storage pool in a specific location. |
Yes, that's where the assumption of
|
I actually thought about that but how do you implement this? Can you tell TF to not fail if the resource already exists and not manage it? I couldn't think of any easy solution there and since every libvirt client should use it's own storage pool, I didn't see investing time on solving this non-problem. |
The hold was to ask you to give the point some consideration before merging, that's all /hold cancel |
/retest Please review the full test history for this PR and help us cut down flakes. |
@markmc oh ok. I'm terribly sorry that I ended up sounding so rude. It wasn't intentional. |
@zeenix: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
Due to openshift/installer#1956 , now by default the location of the qcow2 images are part of `/var/lib/libvirt/openshift/<cluster_name>_<random_hash>` so this change will make sure we are copy correct file as part of our CI.
Due to openshift/installer#1956 , now by default the location of the qcow2 images are part of `/var/lib/libvirt/openshift/<cluster_name>_<random_hash>` so this change will make sure we are copying the correct file as part of our CI.
Due to openshift/installer#1956 , now by default the location of the qcow2 images are part of `/var/lib/libvirt/openshift/<cluster_name>_<random_hash>` so this change will make sure we are copying the correct file as part of our CI.
Don't assume
default
storage pool and create a new custom one.Fixes #1457.