-
Notifications
You must be signed in to change notification settings - Fork 492
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
LIBVIRT_URI not being used, hardcoded qemu:///system
instead.
#3768
Comments
qemu:///system
instead.
…env var Signed-off-by: Steven Armstrong <steven.armstrong@id.ethz.ch>
… scripts Signed-off-by: Steven Armstrong <steven.armstrong@id.ethz.ch>
FTR: I'm working on a PR. Seems to work so far, but want to test some more before submitting it. |
So a bunch of problems here. And questions to upstream. There's roughly 90 places where the Handling all of these cases by replacing I instead propose the following.
This way we can handle all the implementation details in once place. Any new scripts added in the future don't have to worry about LIBVIRT_URI and such things. Given that LIBVIRT_URI is used in many other places then just vmm_mad I propose to define the variable somewhere else then its current location (src/vmm_mad/remotes/kvm/kvmrc). If you agree, where would such a 'global' variable go? And how could it be exposed to the $SCRIPTS_REMOTE_DIR/bin/virsh wrapper script? Is there some central place where all the remote scripts are called from? |
Example script for $SCRIPTS_REMOTE_DIR/bin/virsh
|
IMO it is better to patch the 4 places where "qemu://system" is hard-coded instead of hijacking the virsh binary in a custom path.
The files in question are:
On a side note in why not adapting the ruby code from https://github.com/OpenNebula/one/blob/master/src/vmm_mad/remotes/kvm/poll in the other places? |
Then call the script one-virsh or whatever. Anyway. Upstream does not seem to be interested. I'm not working on this. |
Libvirt uri seems to be hardcoded and not being readed from the sourced env var at /var/lib/one/remotes/etc/vmm/kvm/kvmrc :
export LIBVIRT_URI=qemu+tcp://localhost/system
this is not working then.
http://docs.opennebula.org/5.8/deployment/open_cloud_host_setup/kvm_driver.html#opennebula-configuration
one/src/im_mad/remotes/kvm-probes.d/machines-models.rb
Line 33 in def9661
one/src/im_mad/remotes/kvm-probes.d/machines-models.rb
Line 92 in def9661
one/src/im_mad/remotes/kvm-probes.d/kvm.rb
Line 32 in 441cf1f
Progress Status
The text was updated successfully, but these errors were encountered: