Hi <meta charset="utf-8"><span class="Apple-style-span" style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px; ">Nikolay,</span><div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;"><br>
</span></font></div><div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;">Could you paste the output of </span></font><div><meta charset="utf-8"><span class="Apple-style-span" style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px; "> ssh <OVZ_cluster_node> "</span>/var/tmp/one/im/run_probes ovz"</div>
<div>?</div><div><br></div><div>Change /var/tmp/one to your <meta charset="utf-8">SCRIPTS_REMOTE_DIR if you changed it in your oned.conf file.<br clear="all"><br>Regards,<br>Carlos.</div><div><br></div><div><span style="border-collapse:collapse;color:rgb(136, 136, 136);font-family:arial, sans-serif;font-size:13px">--<br>
Carlos Martín, MSc<br>Project Major Contributor<br><span style="background-color:rgb(255, 255, 204);color:rgb(34, 34, 34);background-repeat:initial initial">OpenNebula</span> - The Open Source Toolkit for Cloud Computing<br>
<a href="http://www.opennebula.org/" style="color:rgb(42, 93, 176)" target="_blank">www.<span style="background-color:rgb(255, 255, 204);color:rgb(34, 34, 34);background-repeat:initial initial">OpenNebula</span>.org</a> | <a href="mailto:cmartin@opennebula.org" style="color:rgb(42, 93, 176)" target="_blank">cmartin@<span style="background-color:rgb(255, 255, 204);color:rgb(34, 34, 34);background-repeat:initial initial">opennebula</span>.org</a></span><br>
<br><br><div class="gmail_quote">On 18 February 2011 17:27, <span dir="ltr"><<a href="mailto:knawnd@gmail.com">knawnd@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Dear all,<br>
<br>
Trying to implement IM driver for OpenVZ cluster nodes I faced with the following problem:<br>
<br>
$ onehost list<br>
ID NAME CLUSTER RVM TCPU FCPU ACPU TMEM FMEM STAT<br>
2 <cluster_node1> xen_x64 0 200 200 200 3.1G 128M on<br>
3 <cluster_node2> ovz_x32 0 0 0 100 0K 0K err<br>
<br>
oned.log:<br>
[...]<br>
Fri Feb 18 18:54:47 2011 [InM][D]: Host 3 successfully monitored.<br>
Fri Feb 18 18:54:47 2011 [ONE][E]: syntax error, unexpected $end, expecting VARIABLE at line 2, columns 1:2<br>
Fri Feb 18 18:54:47 2011 [InM][E]: Error parsing host information:<br>
[...]<br>
<br>
I added oneadmin user into /etc/sudoers file and commented out the line "Defaults requiretty":<br>
$ egrep "oneadmin|requiretty" /etc/sudoers<br>
#Defaults requiretty<br>
oneadmin ALL=(ALL) NOPASSWD: ALL<br>
<br>
(I couldn't figure out more secure and elegant way to get info from OpenVZ host having libvirt interface installed. Any suggestions on that?)<br>
<br>
and did the following changes in ovz.rb file:<br>
$ diff /usr/lib/one/remotes/im/ovz.d/ovz.rb /usr/lib/one/remotes/im/kvm.d/kvm.rb<br>
29c29<br>
< nodeinfo_text = `sudo virsh -c openvz:///system nodeinfo`<br>
---<br>
> nodeinfo_text = `virsh -c qemu:///system nodeinfo`<br>
90c90<br>
< print_info("HYPERVISOR","ovz")<br>
---<br>
> print_info("HYPERVISOR","kvm")<br>
<br>
"sudo virsh -c openvz:///system nodeinfo" running under oneadmin user from front-end node gives the following output:<br>
[oneadmin@<ONE_front-end>$ ssh <OVZ_cluster_node> sudo virsh -c openvz:///system nodeinfo<br>
CPU model: i686<br>
CPU(s): 1<br>
CPU frequency: 2793 MHz<br>
CPU socket(s): 1<br>
Core(s) per socket: 1<br>
Thread(s) per core: 1<br>
NUMA cell(s): 1<br>
Memory size: 2056216 kB<br>
<br>
I was hoping to apply the same solution as written in "KVM Driver Guide 2.0" (<a href="http://opennebula.org/documentation:rel2.0:kvmg" target="_blank">http://opennebula.org/documentation:rel2.0:kvmg</a>) since ONE uses the libvirt interface as well to interact with KVM hosts:<br>
...The following steps are required in the cluster nodes to get the KVM driver running:<br>
[...]<br>
* The user with access to these remotes hosts on behalf of OpenNebula (typically <oneadmin>) has to pertain to the <libvirtd> and <kvm> groups in order to use the deaemon and be able to launch VMs.<br>
<br>
but I can't following that way since there is no libvirt group and libvirtd is run under root (I had to build libvirt from tarball available at its home page since CentOS has a pretty old one in its repos without openvz support).<br>
<br>
Any help on that is highly appreciated!<br>
Nikolay.<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
</blockquote></div><br></div></div>