[one-users] bug in context variables
Hi, I just found, that if context.sh variables contains character $ in value, then it is interpreted as variable name. As a workaround (partial) I put sed -e s/=\/='/ -e s/\$/'/ /mnt/context.sh /tmp/context.sh . /tmp/context.sh rm /tmp/context.sh into my init.sh. Probably it would be better to escape $ and other characters in values or put values to single quotes (what makes difficult to pass single quotes itself in values also). Regards, Rolandas Naujikas ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] Multiple OCCI GUIs pointing to a single instance of OpenNebula
On 20 February 2013 17:28, Gerry O'Brien ge...@scss.tcd.ie wrote: Attached is our .conf file and below are the error and log files. We run one occi server on the machine running the oned daemon but we are trying to run a second occi server on a different machine. Regards, Gerry /usr/lib/one/ruby/cloud/CloudServer.rb:82:in `initialize': getaddrinfo: Name or service not known (SocketError) from /usr/lib/one/ruby/cloud/CloudServer.rb:82:in `new' from /usr/lib/one/ruby/cloud/CloudServer.rb:82:in `is_port_open?' from /usr/lib/ruby/1.8/timeout.rb:67:in `timeout' from /usr/lib/one/ruby/cloud/CloudServer.rb:80:in `is_port_open?' from /usr/share/opennebula/occi/occi-server.rb:102 Could you check if you can reach the xmlrpc server (one_xmlrpc) from the node in which the OCCI server is running. Check -- Daniel Molina Project Engineer OpenNebula - The Open Source Solution for Data Center Virtualization www.OpenNebula.org | dmol...@opennebula.org | @OpenNebula ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] BLACK and WHITE_PORTS with open vswitch
Hi Jaime, continuing with the openvswitch driver, I think I've found a bug, this occurs when you create 2 VNETs with the same range of IPs, then if ONE decides to put two VMs in the same node you have the same MAC for two VMs, the problem arrives if you have defined BLACK or WHITE ports or ICMP rules, then you will have all the dropped ports to the two machines. This is caused by the rules with ovs-ofctl are applied by MAC, then as you have the same MAC in different VMs, the openvswitch does not know which port is referring and it applies the rule for the two ports. I've resolved the problem by adding the tag dl_vlan when you are adding the rule, with this tag you specify the vlan tag that the port you want to filter has. If you don't have tags in the vlans I think this problem does not have solution, but in my case, I have modified the sunstone interface to don't show the VLAN select and is sending YES If you think this can be a bug, I can upload the situation and the solution in the issue tracker. In a few days I'm going to make the white and black ports full functionality. Attached you can find the file /var/lib/one/remotes/vnm/ovswitch/OpenvSwitch.rb Cheers, The diff between the original and the new file: 55a56,61 if @nic[:vlan_id] vlan = @nic[:vlan_id] else vlan = CONF[:start_vlan] + @nic[:network_id].to_i end 72,76c78 if @nic[:vlan] == YES add_flow(tcp,dl_dst=#{@nic[:mac]},tp_dst=#{p},dl_vlan=#{vlan},:drop) else add_flow(tcp,dl_dst=#{@nic[:mac]},tp_dst=#{p},:drop) end --- add_flow(tcp,dl_dst=#{@nic[:mac]},tp_dst=#{p},:drop) 85,89c87 if @nic[:vlan] == YES add_flow(udp,dl_dst=#{@nic[:mac]},tp_dst=#{p},dl_vlan=#{vlan},:drop) else add_flow(udp,dl_dst=#{@nic[:mac]},tp_dst=#{p},:drop) end --- add_flow(udp,dl_dst=#{@nic[:mac]},tp_dst=#{p},:drop) 97,101c95 if @nic[:vlan] == YES add_flow(icmp,dl_dst=#{@nic[:mac]},dl_vlan=#{vlan},:drop) else add_flow(icmp,dl_dst=#{@nic[:mac]},:drop) end --- add_flow(icmp,dl_dst=#{@nic[:mac]},:drop) 147,154d140 def vlan if @nic[:vlan_id] return @nic[:vlan_id] else return CONF[:start_vlan] + @nic[:network_id].to_i end end On 02/19/2013 11:19 AM, Jaime Melis wrote: Hi Oriol I don't know if creating that many rules will impact Open vSwitch's performance, I guess it's something you could ask in the Open vSwitch mailing list, or give it a try yourself and see if it works fine. In any case I think that the approach you described above is the correct one. cheers, Jaime On Mon, Feb 18, 2013 at 1:24 PM, Oriol Martí oma...@cesca.cat mailto:oma...@cesca.cat wrote: Hi Jaime, looking at the file /var/lib/one/remotes/vnm/ovswitch/OpenvSwitch.rb My idea is to add that black_ports look for : and do the command add_flow(tcp,dl_dst=#{@nic[:mac]},tp_dst=#{p},:drop) for every port in the range. With the white_port, the normal behaviour is all closed but the indicated ports? my idea is to do the drop for all the ports but the indicated ports. Is this correct? I'm not sure if this big amount of rules can add extra load to the node or it can derive to problems... Thanks, On 02/18/2013 12:33 PM, Jaime Melis wrote: Hi Oriol, yes, WHITE_PORTS is not implement, and neither are port ranges with semi-colon: http://opennebula.org/documentation:rel3.8:openvswitch#network_filtering The reason is because iptables filters won't work with Open vSwitch, so port filtering is implemented via OpenFlow. If you find a way to improve the drivers it would be really nice. Let me know if I can help in any way. cheers, Jaime On Mon, Feb 18, 2013 at 11:52 AM, Oriol Martí oma...@cesca.cat mailto:oma...@cesca.cat wrote: Hi, I'm deploying the Open vswitch driver and when I create one VM with the BLACK and WHITE_PORTS it doesn't work. I've seen the code and I'm not sure, but I think that white port is not implemented and the black ports only is doing a strip for , not by :, then if you want to configure a VM with all the ports closed and only opened the 80 is very difficult to do because you would have to write all the ports, one by one, and is impossible to indicate a range of ports like 80:65535 I'm thinking to write the code necessary to do that, but I'm not sure, because I don't know the reason why is not finished Does anybody know something about that? Best regards, ___ Users mailing list Users@lists.opennebula.org mailto:Users@lists.opennebula.org
Re: [one-users] Opennebula scheduler does not fullfil requirements
Hi, Do you still have this problem? I have just done a quick test in opennebula 3.8.3 and works fine for me... Could you paste the complete VM template? Regards -- Carlos Martín, MSc Project Engineer OpenNebula - The Open-source Solution for Data Center Virtualization www.OpenNebula.org | cmar...@opennebula.org | @OpenNebulahttp://twitter.com/opennebulacmar...@opennebula.org On Mon, Feb 18, 2013 at 11:17 PM, Alberto Picón Couselo alpic...@gmail.comwrote: Hi, there. I have a problem trying to deploy a KVM VMs using Opennebula 3.8. We have XEN and KVM hypervisors. When we specify REQUIREMENTS=HYPERVISOR=\xen\ in a XEN VM template, the scheduler filters and chooses the hypervisor host correctly. However, when we create a KVM host and specify REQUIREMENTS=HYPERVISOR=\kvm\ in a KVM VM template, it never fullfil requirements and the VM is never deployed. We have checked KVM host, and it is monitored correctly: ID: 7 NAME : kvm-4 CLUSTER : - STATE : MONITORED IM_MAD: im_kvm VM_MAD: vmm_kvm VN_MAD: 802.1Q LAST MONITORING TIME : 02/18 23:07:19 HOST SHARES TOTAL MEM : 47.3G USED MEM (REAL) : 245.2M USED MEM (ALLOCATED) : 0K TOTAL CPU : 1600 USED CPU (REAL) : 0 USED CPU (ALLOCATED) : 0 RUNNING VMS : 0 MONITORING INFORMATION ARCH=x86_64 CPUSPEED=1596 FREECPU=1600.0 FREEMEMORY=49308672 HOSTNAME=kvm-4 HYPERVISOR=kvm NETRX=0 NETTX=468 TOTALCPU=1600 TOTALMEMORY=49559748 USEDCPU=0.0 USEDMEMORY=251076 The KVM VM Template states: REQUIREMENTS=HYPERVISOR=\kvm\ If we deploy the KVM VM, the scheduler log output is as follows: Mon Feb 18 22:55:44 2013 [SCHED][D]: Host 1 filtered out. It does not fullfil REQUIREMENTS. Mon Feb 18 22:55:44 2013 [SCHED][D]: Host 2 filtered out. It does not fullfil REQUIREMENTS. Mon Feb 18 22:55:44 2013 [SCHED][D]: Host 7 filtered out. It does not fullfil REQUIREMENTS. Mon Feb 18 22:55:44 2013 [SCHED][I]: Selected hosts: PRIHID VM: 57 --- We have tried to use NAME directive too, using: REQUIREMENTS=NAME=\kvm-4\ and it does not fullfil requirements either. We have created the host using Sunstone and onehost command line tool we same results. What am I doing wrong? Thank you very much in advance, Alberto Picón ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] default gateway setting in VM
If I'm not mistaken, I believe you need to add the following context to your VM template as well, otherwise the context script will not supply the gateway information (this is just an example): ETH0_GATEWAY = $NETWORK [GATEWAY, NETWORK= \ public \ ] - Original Message - From: Alexandre De Carvalho alexandre7.decarva...@gmail.com To: users@lists.opennebula.org Sent: Thursday, February 21, 2013 5:53:57 AM Subject: [one-users] default gateway setting in VM Hi, I have a problem with my default gateway setting in vm. I create a virtual network in advanced mode like this : NAME = Test TYPE = RANGED # Now we'll use the host private network (physical) BRIDGE = vbr0 NETWORK_ADDRESS = 192.168.77.0/24 IP_START = 192.168.77.1 # Custom Attributes to be used in Context GATEWAY = 192.168.77.254 So my default gateway should be 192.168.77.254. But when i see my default gateway setting in vm with this command (route -n), i don't see this gateway (192.168.77.254) but these one's 192.168.77.1. How can i resolve my problem ? Best regards , Alexandre De Carvalho ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org NOTICE: Protect the information in this message in accordance with the company's security policies. If you received this message in error, immediately notify the sender and destroy all copies.___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] problem with vifs
-- Constantino Vázquez Blanco, PhD, MSc Project Engineer OpenNebula - The Open-Source Solution for Data Center Virtualization www.OpenNebula.org | @tinova79 | @OpenNebula Hello, I would need a bit more of information on this: * Which version of ESX are you using? * Which version of OpenNebula are you using? * What is the output of onedatastore list? Best regards, -Tino On Wed, Feb 20, 2013 at 9:15 PM, ahernan...@tesla.cujae.edu.cu wrote: I try intanciate template, but when try create a swap disk, present this problem: Wed Feb 13 18:17:25 2013 [ImM][I]: expr: division by zero Wed Feb 13 18:17:25 2013 [ImG][D]: Message received: LOG E 78 cp: Command vifs --server --username oneadmin --password DataCimex --mkdir [123]56fa9e3f2811640aee66b9d086c05fe0 failed: Use of uninitialized value $username in scalar chomp at /usr/share/perl/5.14/VMware/VILib.pm line 687. The most important is that vifs need --server to conect ... I NEED KNOW HOW PUSH THE SERVER THAT NEED THE COMMAND vifs. I need know what is the file where push the server 48 Aniversario de la Cujae, Una obra de la Revolucion Cubana | 2 de diciembre de 1964 | http://cujae.edu.cu Consulte la enciclopedia colaborativa cubana. http://www.ecured.cu ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] BLACK and WHITE_PORTS with open vswitch
Hi Oriol, this occurs when you create 2 VNETs with the same range of IPs, Is there any particular reasons for using the same subnet on two different network? Simon On Thu, Feb 21, 2013 at 5:16 AM, Oriol Martí oma...@cesca.cat wrote: Hi Jaime, continuing with the openvswitch driver, I think I've found a bug, this occurs when you create 2 VNETs with the same range of IPs, then if ONE decides to put two VMs in the same node you have the same MAC for two VMs, the problem arrives if you have defined BLACK or WHITE ports or ICMP rules, then you will have all the dropped ports to the two machines. This is caused by the rules with ovs-ofctl are applied by MAC, then as you have the same MAC in different VMs, the openvswitch does not know which port is referring and it applies the rule for the two ports. I've resolved the problem by adding the tag dl_vlan when you are adding the rule, with this tag you specify the vlan tag that the port you want to filter has. If you don't have tags in the vlans I think this problem does not have solution, but in my case, I have modified the sunstone interface to don't show the VLAN select and is sending YES If you think this can be a bug, I can upload the situation and the solution in the issue tracker. In a few days I'm going to make the white and black ports full functionality. Attached you can find the file /var/lib/one/remotes/vnm/ovswitch/OpenvSwitch.rb Cheers, The diff between the original and the new file: 55a56,61 if @nic[:vlan_id] vlan = @nic[:vlan_id] else vlan = CONF[:start_vlan] + @nic[:network_id].to_i end 72,76c78 if @nic[:vlan] == YES add_flow(tcp,dl_dst=#{@nic[:mac]},tp_dst=#{p},dl_vlan=#{vlan},:drop) else add_flow(tcp,dl_dst=#{@nic[:mac]},tp_dst=#{p},:drop) end --- add_flow(tcp,dl_dst=#{@nic[:mac]},tp_dst=#{p},:drop) 85,89c87 if @nic[:vlan] == YES add_flow(udp,dl_dst=#{@nic[:mac]},tp_dst=#{p},dl_vlan=#{vlan},:drop) else add_flow(udp,dl_dst=#{@nic[:mac]},tp_dst=#{p},:drop) end --- add_flow(udp,dl_dst=#{@nic[:mac]},tp_dst=#{p},:drop) 97,101c95 if @nic[:vlan] == YES add_flow(icmp,dl_dst=#{@nic[:mac]},dl_vlan=#{vlan},:drop) else add_flow(icmp,dl_dst=#{@nic[:mac]},:drop) end --- add_flow(icmp,dl_dst=#{@nic[:mac]},:drop) 147,154d140 def vlan if @nic[:vlan_id] return @nic[:vlan_id] else return CONF[:start_vlan] + @nic[:network_id].to_i end end On 02/19/2013 11:19 AM, Jaime Melis wrote: Hi Oriol I don't know if creating that many rules will impact Open vSwitch's performance, I guess it's something you could ask in the Open vSwitch mailing list, or give it a try yourself and see if it works fine. In any case I think that the approach you described above is the correct one. cheers, Jaime On Mon, Feb 18, 2013 at 1:24 PM, Oriol Martí oma...@cesca.cat wrote: Hi Jaime, looking at the file /var/lib/one/remotes/vnm/ovswitch/OpenvSwitch.rb My idea is to add that black_ports look for : and do the command add_flow(tcp,dl_dst=#{@nic[:mac]},tp_dst=#{p},:drop) for every port in the range. With the white_port, the normal behaviour is all closed but the indicated ports? my idea is to do the drop for all the ports but the indicated ports. Is this correct? I'm not sure if this big amount of rules can add extra load to the node or it can derive to problems... Thanks, On 02/18/2013 12:33 PM, Jaime Melis wrote: Hi Oriol, yes, WHITE_PORTS is not implement, and neither are port ranges with semi-colon: http://opennebula.org/documentation:rel3.8:openvswitch#network_filtering The reason is because iptables filters won't work with Open vSwitch, so port filtering is implemented via OpenFlow. If you find a way to improve the drivers it would be really nice. Let me know if I can help in any way. cheers, Jaime On Mon, Feb 18, 2013 at 11:52 AM, Oriol Martí oma...@cesca.cat wrote: Hi, I'm deploying the Open vswitch driver and when I create one VM with the BLACK and WHITE_PORTS it doesn't work. I've seen the code and I'm not sure, but I think that white port is not implemented and the black ports only is doing a strip for , not by :, then if you want to configure a VM with all the ports closed and only opened the 80 is very difficult to do because you would have to write all the ports, one by one, and is impossible to indicate a range of ports like 80:65535 I'm thinking to write the code necessary to do that, but I'm not sure, because I don't know the reason why is not finished Does anybody know something about that? Best regards, ___ Users mailing list
[one-users] opennebula 3.8.1 + clvm
Hi guys, my setup: centos 6.3 opennebula 3.8.1 clvm (cman, corosync) drbd 8.4.2 ---snip--- bash-4.1$ grep -vE '^($|#)' /etc/one/oned.conf MANAGER_TIMER = 10 HOST_MONITORING_INTERVAL = 30 VM_POLLING_INTERVAL= 30 SCRIPTS_REMOTE_DIR=/var/lib/one/remotes/ PORT = 2633 DB = [ backend = sqlite ] VNC_BASE_PORT = 5900 DEBUG_LEVEL = 3 NETWORK_SIZE = 254 MAC_PREFIX = 02:00 DEFAULT_IMAGE_TYPE= OS DEFAULT_DEVICE_PREFIX = hd IM_MAD = [ name = im_kvm, executable = one_im_ssh, arguments = -r 0 -t 15 kvm ] VM_MAD = [ name = vmm_kvm, executable = one_vmm_exec, arguments = -t 15 -r 0 kvm, default= vmm_exec/vmm_exec_kvm.conf, type = kvm ] TM_MAD = [ executable = one_tm, arguments = -t 15 -d dummy,lvm,shared,qcow2,ssh,vmfs,iscsi ] DATASTORE_MAD = [ executable = one_datastore, arguments = -t 15 -d fs,vmware,vmfs,iscsi,lvm ] HM_MAD = [ executable = one_hm ] AUTH_MAD = [ executable = one_auth_mad, authn = ssh,x509,ldap,server_cipher,server_x509 ] SESSION_EXPIRATION_TIME = 900 VM_RESTRICTED_ATTR = CONTEXT/FILES VM_RESTRICTED_ATTR = NIC/MAC VM_RESTRICTED_ATTR = NIC/VLAN_ID VM_RESTRICTED_ATTR = RANK IMAGE_RESTRICTED_ATTR = SOURCE ---snip--- ---snip--- bash-4.1$ onedatastore show 100 DATASTORE 100 INFORMATION ID : 100 NAME : production USER : oneadmin GROUP : oneadmin CLUSTER: drbd DS_MAD : lvm TM_MAD : shared BASE PATH : /var/lib/one/datastores/100 PERMISSIONS OWNER : um- GROUP : u-- OTHER : --- DATASTORE TEMPLATE DS_MAD=lvm HOST=localhost NAME=production TM_MAD=shared VG_NAME=vg-one IMAGES 4 ---snip--- At the moment i'm not able to create a VM. The logs: ---snip--- Thu Feb 21 15:36:13 2013 [TM][D]: Message received: LOG I 4 Command execution fail: /var/lib/one/remotes/tm/shared/clone localhost:vg-one.lv-one-4 priv002:/var/lib/one//datastores/0/4/disk.0 4 100 Thu Feb 21 15:36:13 2013 [TM][D]: Message received: LOG I 4 clone: Cloning /var/lib/one/datastoresvg-one.lv-one-4 in priv002:/var/lib/one//datastores/0/4/disk.0 Thu Feb 21 15:36:13 2013 [TM][D]: Message received: LOG E 4 clone: Command cd /var/lib/one/datastores/0/4; cp -r /var/lib/one/datastoresvg-one.lv-one-4 /var/lib/one/datastores/0/4/disk.0 failed: Warning: Permanently added 'priv002,192.168.255.2' (RSA) to the list of known hosts. Thu Feb 21 15:36:13 2013 [TM][D]: Message received: LOG I 4 cp: cannot stat `/var/lib/one/datastoresvg-one.lv-one-4': No such file or directory Thu Feb 21 15:36:13 2013 [TM][D]: Message received: LOG E 4 Error copying localhost:vg-one.lv-one-4 to priv002:/var/lib/one//datastores/0/4/disk.0 Thu Feb 21 15:36:13 2013 [TM][D]: Message received: LOG I 4 ExitCode: 1 Thu Feb 21 15:36:13 2013 [TM][D]: Message received: TRANSFER FAILURE 4 Error copying localhost:vg-one.lv-one-4 to priv002:/var/lib/one//datastores/0/4/disk.0 ---snip--- Changing TM_MAD to lvm instead of shared i got this error: ---snip--- Thu Feb 21 15:48:33 2013 [TM][D]: Message received: LOG I 5 Command execution fail: /var/lib/one/remotes/tm/lvm/clone localhost:vg-one.lv-one-4 priv002:/var/lib/one//datastores/0/5/disk.0 5 100 Thu Feb 21 15:48:33 2013 [TM][D]: Message received: LOG E 5 clone: Command set -e Thu Feb 21 15:48:33 2013 [TM][D]: Message received: LOG I 5 mkdir -p /var/lib/one/datastores/0/5 Thu Feb 21 15:48:33 2013 [TM][D]: Message received: LOG I 5 sudo lvcreate -s -L512 -n lv-one-4-5-0 /dev/vg-one/lv-one-4 Thu Feb 21 15:48:33 2013 [TM][D]: Message received: LOG I 5 ln -s /dev/vg-one/lv-one-4-5-0 /var/lib/one/datastores/0/5/disk.0 failed: Warning: Permanently added 'priv002,192.168.255.2' (RSA) to the list of known hosts. Thu Feb 21 15:48:33 2013 [TM][D]: Message received: LOG I 5 lv-one-4 must be active exclusively to create snapshot Thu Feb 21 15:48:33 2013 [TM][D]: Message received: LOG E 5 Error cloning /dev/vg-one/lv-one-4 to /dev/vg-one/lv-one-4-5-0 Thu Feb 21 15:48:33 2013 [TM][D]: Message received: LOG I 5 ExitCode: 5 Thu Feb 21 15:48:33 2013 [TM][D]: Message received: TRANSFER FAILURE 5 Error cloning /dev/vg-one/lv-one-4 to /dev/vg-one/lv-one-4-5-0 ---snip--- It tells me that lv-one-4 isnt active but it is on both nodes: lv-one-4 vg-one -wi-a--- 8,00g Any ideas? i followed the documenation of LVM but there are no hints to solve this problem. Best regards, Tobias ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] Multiple OCCI GUIs pointing to a single instance of OpenNebula
On 21/02/2013 10:14, Daniel Molina wrote: On 20 February 2013 17:28, Gerry O'Brien ge...@scss.tcd.ie wrote: Attached is our .conf file and below are the error and log files. We run one occi server on the machine running the oned daemon but we are trying to run a second occi server on a different machine. Regards, Gerry /usr/lib/one/ruby/cloud/CloudServer.rb:82:in `initialize': getaddrinfo: Name or service not known (SocketError) from /usr/lib/one/ruby/cloud/CloudServer.rb:82:in `new' from /usr/lib/one/ruby/cloud/CloudServer.rb:82:in `is_port_open?' from /usr/lib/ruby/1.8/timeout.rb:67:in `timeout' from /usr/lib/one/ruby/cloud/CloudServer.rb:80:in `is_port_open?' from /usr/share/opennebula/occi/occi-server.rb:102 Could you check if you can reach the xmlrpc server (one_xmlrpc) from the node in which the OCCI server is running. Check Hi Daniel, How do I test this? With a telnet connection? Regards, Gerry -- Gerry O'Brien Systems Manager School of Computer Science and Statistics Trinity College Dublin Dublin 2 IRELAND 00 353 1 896 1341 ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
[one-users] can't ping and ssh vm
Hi, I can't ping or ssh vm. how can i resolve my problem ? -- Cordialement, Alexandre DE CARVALHO ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] can't ping and ssh vm
hi alexandre, which ip are you pinging to? stefano On 02/21/2013 04:09 PM, Alexandre De Carvalho wrote: Hi, I can't ping or ssh vm. how can i resolve my problem ? -- Cordialement, Alexandre DE CARVALHO ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] Multiple OCCI GUIs pointing to a single instance of OpenNebula
On 21 February 2013 16:02, Gerry O'Brien ge...@scss.tcd.ie wrote: On 21/02/2013 10:14, Daniel Molina wrote: On 20 February 2013 17:28, Gerry O'Brien ge...@scss.tcd.ie wrote: Attached is our .conf file and below are the error and log files. We run one occi server on the machine running the oned daemon but we are trying to run a second occi server on a different machine. Regards, Gerry /usr/lib/one/ruby/cloud/CloudServer.rb:82:in `initialize': getaddrinfo: Name or service not known (SocketError) from /usr/lib/one/ruby/cloud/CloudServer.rb:82:in `new' from /usr/lib/one/ruby/cloud/CloudServer.rb:82:in `is_port_open?' from /usr/lib/ruby/1.8/timeout.rb:67:in `timeout' from /usr/lib/one/ruby/cloud/CloudServer.rb:80:in `is_port_open?' from /usr/share/opennebula/occi/occi-server.rb:102 Could you check if you can reach the xmlrpc server (one_xmlrpc) from the node in which the OCCI server is running. Check Hi Daniel, How do I test this? With a telnet connection? Yes. Check there is no firewall running in the opennebula host. -- Daniel Molina Project Engineer OpenNebula - The Open Source Solution for Data Center Virtualization www.OpenNebula.org | dmol...@opennebula.org | @OpenNebula ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] can't ping and ssh vm
my frontend is in 10.0.1.3 and my vm in 10.0.2.1 Alexandre 2013/2/21 Stefano Nicotri stefano.nico...@gmail.com hi alexandre, which ip are you pinging to? stefano On 02/21/2013 04:09 PM, Alexandre De Carvalho wrote: Hi, I can't ping or ssh vm. how can i resolve my problem ? -- Cordialement, Alexandre DE CARVALHO ___ Users mailing listUsers@lists.opennebula.orghttp://lists.opennebula.org/listinfo.cgi/users-opennebula.org -- Cordialement, Alexandre DE CARVALHO ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] can't ping and ssh vm
10.0.2.1 is the ip assigned to the vm by the system? in this case, this is not the ip on which the machine will be listening on. you can get the right ip with ifconfig getting into the vm through vnc. stefano On 02/21/2013 04:15 PM, Alexandre De Carvalho wrote: my frontend is in 10.0.1.3 and my vm in 10.0.2.1 Alexandre 2013/2/21 Stefano Nicotri stefano.nico...@gmail.com mailto:stefano.nico...@gmail.com hi alexandre, which ip are you pinging to? stefano On 02/21/2013 04:09 PM, Alexandre De Carvalho wrote: Hi, I can't ping or ssh vm. how can i resolve my problem ? -- Cordialement, Alexandre DE CARVALHO ___ Users mailing list Users@lists.opennebula.org mailto:Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org -- Cordialement, Alexandre DE CARVALHO ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] can't ping and ssh vm
the ips you assigned to the virtual network (10.0.2.0/24) are used by the system to manage the virtual machines, and never coincide with the ip on which the vms are listening (I have not understood why I am quite new...). you can get the ip you need (to be used with ssh) by connecting to the vm with vnc (in the host: root@host:~# vncviewer 0.0.0.0:IMAGE_ID, where IMAGE_ID is the numerical id assigned by the system to the vm) and using the ifconfig command. unfortunately I am not able to explain why it behaves in this way. maybe someone more expert than me could help you... stefano On 02/21/2013 04:21 PM, Alexandre De Carvalho wrote: i create a virtual network in 10.0.2.0/24 http://10.0.2.0/24. Yes 10.0.2.1 is the ip assigned to the vm by the system 2013/2/21 Stefano Nicotri stefano.nico...@gmail.com mailto:stefano.nico...@gmail.com 10.0.2.1 is the ip assigned to the vm by the system? in this case, this is not the ip on which the machine will be listening on. you can get the right ip with ifconfig getting into the vm through vnc. stefano On 02/21/2013 04:15 PM, Alexandre De Carvalho wrote: my frontend is in 10.0.1.3 and my vm in 10.0.2.1 Alexandre 2013/2/21 Stefano Nicotri stefano.nico...@gmail.com mailto:stefano.nico...@gmail.com hi alexandre, which ip are you pinging to? stefano On 02/21/2013 04:09 PM, Alexandre De Carvalho wrote: Hi, I can't ping or ssh vm. how can i resolve my problem ? -- Cordialement, Alexandre DE CARVALHO ___ Users mailing list Users@lists.opennebula.org mailto:Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org -- Cordialement, Alexandre DE CARVALHO -- Cordialement, Alexandre DE CARVALHO ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] BLACK and WHITE_PORTS with open vswitch
Hi Simon, I don't have any reason for using the same subnet, but if you have different users and they don't see the virtual networks created by other users, this situation can occur. It's very common to create a private VNET and assign 192.168.1.0/24 for example, then if the same mac VMs are in the same node, the filtering rules are applied to the two nodes... Cheers, ;)riol On 02/21/2013 03:28 PM, Simon Boulet wrote: Hi Oriol, this occurs when you create 2 VNETs with the same range of IPs, Is there any particular reasons for using the same subnet on two different network? Simon On Thu, Feb 21, 2013 at 5:16 AM, Oriol Martí oma...@cesca.cat mailto:oma...@cesca.cat wrote: Hi Jaime, continuing with the openvswitch driver, I think I've found a bug, this occurs when you create 2 VNETs with the same range of IPs, then if ONE decides to put two VMs in the same node you have the same MAC for two VMs, the problem arrives if you have defined BLACK or WHITE ports or ICMP rules, then you will have all the dropped ports to the two machines. This is caused by the rules with ovs-ofctl are applied by MAC, then as you have the same MAC in different VMs, the openvswitch does not know which port is referring and it applies the rule for the two ports. I've resolved the problem by adding the tag dl_vlan when you are adding the rule, with this tag you specify the vlan tag that the port you want to filter has. If you don't have tags in the vlans I think this problem does not have solution, but in my case, I have modified the sunstone interface to don't show the VLAN select and is sending YES If you think this can be a bug, I can upload the situation and the solution in the issue tracker. In a few days I'm going to make the white and black ports full functionality. Attached you can find the file /var/lib/one/remotes/vnm/ovswitch/OpenvSwitch.rb Cheers, The diff between the original and the new file: 55a56,61 if @nic[:vlan_id] vlan = @nic[:vlan_id] else vlan = CONF[:start_vlan] + @nic[:network_id].to_i end 72,76c78 if @nic[:vlan] == YES add_flow(tcp,dl_dst=#{@nic[:mac]},tp_dst=#{p},dl_vlan=#{vlan},:drop) else add_flow(tcp,dl_dst=#{@nic[:mac]},tp_dst=#{p},:drop) end --- add_flow(tcp,dl_dst=#{@nic[:mac]},tp_dst=#{p},:drop) 85,89c87 if @nic[:vlan] == YES add_flow(udp,dl_dst=#{@nic[:mac]},tp_dst=#{p},dl_vlan=#{vlan},:drop) else add_flow(udp,dl_dst=#{@nic[:mac]},tp_dst=#{p},:drop) end --- add_flow(udp,dl_dst=#{@nic[:mac]},tp_dst=#{p},:drop) 97,101c95 if @nic[:vlan] == YES add_flow(icmp,dl_dst=#{@nic[:mac]},dl_vlan=#{vlan},:drop) else add_flow(icmp,dl_dst=#{@nic[:mac]},:drop) end --- add_flow(icmp,dl_dst=#{@nic[:mac]},:drop) 147,154d140 def vlan if @nic[:vlan_id] return @nic[:vlan_id] else return CONF[:start_vlan] + @nic[:network_id].to_i end end On 02/19/2013 11:19 AM, Jaime Melis wrote: Hi Oriol I don't know if creating that many rules will impact Open vSwitch's performance, I guess it's something you could ask in the Open vSwitch mailing list, or give it a try yourself and see if it works fine. In any case I think that the approach you described above is the correct one. cheers, Jaime On Mon, Feb 18, 2013 at 1:24 PM, Oriol Martí oma...@cesca.cat mailto:oma...@cesca.cat wrote: Hi Jaime, looking at the file /var/lib/one/remotes/vnm/ovswitch/OpenvSwitch.rb My idea is to add that black_ports look for : and do the command add_flow(tcp,dl_dst=#{@nic[:mac]},tp_dst=#{p},:drop) for every port in the range. With the white_port, the normal behaviour is all closed but the indicated ports? my idea is to do the drop for all the ports but the indicated ports. Is this correct? I'm not sure if this big amount of rules can add extra load to the node or it can derive to problems... Thanks, On 02/18/2013 12:33 PM, Jaime Melis wrote: Hi Oriol, yes, WHITE_PORTS is not implement, and neither are port ranges with semi-colon: http://opennebula.org/documentation:rel3.8:openvswitch#network_filtering The reason is because iptables filters won't work with Open vSwitch, so port filtering is implemented via OpenFlow. If you find a way to improve the drivers it would be really nice. Let me know if I can help in any way. cheers, Jaime
Re: [one-users] BLACK and WHITE_PORTS with open vswitch
Hi Oriol, you are totally right. That's an important bug that needs to be taken care of. Your contributions are very welcome. Can you upload them to the issue tracker? thanks! cheers, Jaime On Thu, Feb 21, 2013 at 11:16 AM, Oriol Martí oma...@cesca.cat wrote: Hi Jaime, continuing with the openvswitch driver, I think I've found a bug, this occurs when you create 2 VNETs with the same range of IPs, then if ONE decides to put two VMs in the same node you have the same MAC for two VMs, the problem arrives if you have defined BLACK or WHITE ports or ICMP rules, then you will have all the dropped ports to the two machines. This is caused by the rules with ovs-ofctl are applied by MAC, then as you have the same MAC in different VMs, the openvswitch does not know which port is referring and it applies the rule for the two ports. I've resolved the problem by adding the tag dl_vlan when you are adding the rule, with this tag you specify the vlan tag that the port you want to filter has. If you don't have tags in the vlans I think this problem does not have solution, but in my case, I have modified the sunstone interface to don't show the VLAN select and is sending YES If you think this can be a bug, I can upload the situation and the solution in the issue tracker. In a few days I'm going to make the white and black ports full functionality. Attached you can find the file /var/lib/one/remotes/vnm/ovswitch/OpenvSwitch.rb Cheers, The diff between the original and the new file: 55a56,61 if @nic[:vlan_id] vlan = @nic[:vlan_id] else vlan = CONF[:start_vlan] + @nic[:network_id].to_i end 72,76c78 if @nic[:vlan] == YES add_flow(tcp,dl_dst=#{@nic[:mac]},tp_dst=#{p},dl_vlan=#{vlan},:drop) else add_flow(tcp,dl_dst=#{@nic[:mac]},tp_dst=#{p},:drop) end --- add_flow(tcp,dl_dst=#{@nic[:mac]},tp_dst=#{p},:drop) 85,89c87 if @nic[:vlan] == YES add_flow(udp,dl_dst=#{@nic[:mac]},tp_dst=#{p},dl_vlan=#{vlan},:drop) else add_flow(udp,dl_dst=#{@nic[:mac]},tp_dst=#{p},:drop) end --- add_flow(udp,dl_dst=#{@nic[:mac]},tp_dst=#{p},:drop) 97,101c95 if @nic[:vlan] == YES add_flow(icmp,dl_dst=#{@nic[:mac]},dl_vlan=#{vlan},:drop) else add_flow(icmp,dl_dst=#{@nic[:mac]},:drop) end --- add_flow(icmp,dl_dst=#{@nic[:mac]},:drop) 147,154d140 def vlan if @nic[:vlan_id] return @nic[:vlan_id] else return CONF[:start_vlan] + @nic[:network_id].to_i end end On 02/19/2013 11:19 AM, Jaime Melis wrote: Hi Oriol I don't know if creating that many rules will impact Open vSwitch's performance, I guess it's something you could ask in the Open vSwitch mailing list, or give it a try yourself and see if it works fine. In any case I think that the approach you described above is the correct one. cheers, Jaime On Mon, Feb 18, 2013 at 1:24 PM, Oriol Martí oma...@cesca.cat wrote: Hi Jaime, looking at the file /var/lib/one/remotes/vnm/ovswitch/OpenvSwitch.rb My idea is to add that black_ports look for : and do the command add_flow(tcp,dl_dst=#{@nic[:mac]},tp_dst=#{p},:drop) for every port in the range. With the white_port, the normal behaviour is all closed but the indicated ports? my idea is to do the drop for all the ports but the indicated ports. Is this correct? I'm not sure if this big amount of rules can add extra load to the node or it can derive to problems... Thanks, On 02/18/2013 12:33 PM, Jaime Melis wrote: Hi Oriol, yes, WHITE_PORTS is not implement, and neither are port ranges with semi-colon: http://opennebula.org/documentation:rel3.8:openvswitch#network_filtering The reason is because iptables filters won't work with Open vSwitch, so port filtering is implemented via OpenFlow. If you find a way to improve the drivers it would be really nice. Let me know if I can help in any way. cheers, Jaime On Mon, Feb 18, 2013 at 11:52 AM, Oriol Martí oma...@cesca.cat wrote: Hi, I'm deploying the Open vswitch driver and when I create one VM with the BLACK and WHITE_PORTS it doesn't work. I've seen the code and I'm not sure, but I think that white port is not implemented and the black ports only is doing a strip for , not by :, then if you want to configure a VM with all the ports closed and only opened the 80 is very difficult to do because you would have to write all the ports, one by one, and is impossible to indicate a range of ports like 80:65535 I'm thinking to write the code necessary to do that, but I'm not sure, because I don't know the reason why is not finished Does anybody know something about that? Best regards, ___
Re: [one-users] can't ping and ssh vm
Hi Alexandre, what OpenNebula version are you using? can you share with us: your bridge configuration, routing configuration and virtual machine template? cheers, Jaime On Thu, Feb 21, 2013 at 4:21 PM, Alexandre De Carvalho alexandre7.decarva...@gmail.com wrote: i create a virtual network in 10.0.2.0/24. Yes 10.0.2.1 is the ip assigned to the vm by the system 2013/2/21 Stefano Nicotri stefano.nico...@gmail.com 10.0.2.1 is the ip assigned to the vm by the system? in this case, this is not the ip on which the machine will be listening on. you can get the right ip with ifconfig getting into the vm through vnc. stefano On 02/21/2013 04:15 PM, Alexandre De Carvalho wrote: my frontend is in 10.0.1.3 and my vm in 10.0.2.1 Alexandre 2013/2/21 Stefano Nicotri stefano.nico...@gmail.com hi alexandre, which ip are you pinging to? stefano On 02/21/2013 04:09 PM, Alexandre De Carvalho wrote: Hi, I can't ping or ssh vm. how can i resolve my problem ? -- Cordialement, Alexandre DE CARVALHO ___ Users mailing listUsers@lists.opennebula.orghttp://lists.opennebula.org/listinfo.cgi/users-opennebula.org -- Cordialement, Alexandre DE CARVALHO -- Cordialement, Alexandre DE CARVALHO ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org -- Jaime Melis Project Engineer OpenNebula - The Open Source Toolkit for Cloud Computing www.OpenNebula.org | jme...@opennebula.org ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] The STAT flag of Host is Error.
Hi Enric, is this your current configuration? $ cat /etc/polkit-1/localauthority/50-local.d/50-org.libvirt.unix.manage-opennebula.pkla Identity=unix-user:oneadmin Action=org.libvirt.unix.manage #Action=org.libvirt.unix.monitor ResultAny=yes ResultInactive=yes ResultActive=yes $ cat /etc/libvirt/qemu.conf user = oneadmin group = oneadmin dynamic_ownership = 0 also, can you try without SELinux enabled? (setenforce 0) cheers, Jaime On Wed, Feb 20, 2013 at 3:46 PM, Enric Pere Pages Montanera vprotrain...@gmail.com wrote: Hi all, I am having the same issue described in this thread, I tried your suggestions but unfortunately they are not working for me. I tried - Add unix_sock_group = oneadmin - Add unix_sock_ro_perms = 0777 - Add unix_sock_rw_perms = 0777 - Add auth_unix_rw = none I tried it without auth and with polkit auth, but still not able to connect to the hypervisor. It is weird cause I was able to do the same with the same host in the past. I am working on a SL63, just to let you know ... I have access to another ONE system which exactly the same config (OS,etc) and there everything seems working. Any thoughts? BR, Enric 2012/10/8 André Monteiro andre.mont...@gmail.com Can you do a virsh -c qemu:///system? If not its a OS problem, not ONE. If yes, I'm working on a SL6.2, on the vmm_exec_kvm.conf the line EMULATOR = /usr/libexec/qemu-kvm must have your correct path of qemu-kvm, does /usr/libexec/qemu-kvm exists? -- André Monteiro On Mon, Oct 8, 2012 at 12:31 PM, Tuan Le Doan tuan.fet...@gmail.comwrote: Andre, Yes, my location is /var/lib/one/etc/vmm_exec/vmm_exec_kvm.conf. I made like your suggestion, howerver it's still error :( 2012/10/8 André Monteiro andre.mont...@gmail.com Hello, Sorry, that's my /opt/opennebula is my self-contained installation folder, you must edit your own folder, something like /srv/cloud/one/etc/vmm or /var/lib/one/etc/. -- André Monteiro On Mon, Oct 8, 2012 at 11:50 AM, Tuan Le Doan tuan.fet...@gmail.comwrote: Dear Andre, I didn't find /opt/opennebula/etc/vmm_exec/vmm_exec_kvm.conf I'm using CentOS 6.3, is there some different? Thank you. 2012/10/8 André Monteiro andre.mont...@gmail.com Hello, The one time I had that problem I couldn't connect to hypervisor from virsh. Try virsh -c qemu:///system to confirm that. My solution was: - Edit /etc/libvirt/libvirtd.conf - Add unix_sock_group = oneadmin - Add unix_sock_ro_perms = 0777 - Add unix_sock_rw_perms = 0777 - Add auth_unix_rw = none - service libvirtd restart - Edit /opt/opennebula/etc/vmm_exec/vmm_exec_kvm.conf - Add EMULATOR = /usr/libexec/qemu-kvm - one stop - one start -- André Monteiro On Mon, Oct 8, 2012 at 10:28 AM, Tuan Le Doan tuan.fet...@gmail.comwrote: Thank you for all reply, I fixed that error, but after that i received another error when i created host: This is my oned.log file: Command execution fail: 'if [ -x /var/tmp/one/im/run_probes ]; then /var/tmp/one/im/run_probes kvm 1 centoshost; else exit 42; fi' Fri Oct 5 16:52:51 2012 [InM][I]: error: authentication failed: Authorization requires authentication but no agent is available. Fri Oct 5 16:52:51 2012 [InM][I]: Fri Oct 5 16:52:51 2012 [InM][I]: error: failed to connect to the hypervisor Fri Oct 5 16:52:51 2012 [InM][E]: Error executing kvm.rb Fri Oct 5 16:52:51 2012 [InM][I]: ExitCode: 255 Fri Oct 5 16:52:51 2012 [InM][E]: Error monitoring host 1 : MONITOR FAILURE 1 Error executing kvm.rb I tried to add libvirt group and add oneadmin user to libvirt and kvm group, but it's still error. Hope that anyone can help me :P Regards. 2012/10/3 Rodolfo Conte Brufatto rcbrufa...@gmail.com Tuan, there is no key in your .ssh directory. You will need that anyway. Make sure the key pair file and the public key are available in that directory. After that, depending on how you generated the key files (using ssh-keygen or openssl) you just need to copy your public key to .ssh/authorized_keys. If it was created with openssl you can export it using ssh-keygen as well. cheers On Wed, Oct 3, 2012 at 6:04 AM, Tuan Le Doan tuan.fet...@gmail.com wrote: I use only one machine for both of Master and Host (I installed OpenNebula and KVM in 1 server). 2012/10/3 Duverne, Cyrille cyrille.duve...@euranova.eu Hello Tuan, Are you sure that the ssl key of oneadmin on your Master machine is the same than the one in your Host ? CyD Blog : http://blog.cduverne.com Twitter : @CydsWorld Imagination is more important than Knowledge Albert Einstein Mercredi 03/10/2012 à 9:43 Tuan Le Doan a écrit: Hi CyD, This is the output: [oneadmin@centoshost Desktop]$ ls -lArth /var/lib/one/.ssh/config -rw-rw-r--. 1 oneadmin oneadmin 33 Sep 24 15:35 /var/lib/one/.ssh/config
Re: [one-users] Multiple OCCI GUIs pointing to a single instance of OpenNebula
On 21/02/2013 15:14, Daniel Molina wrote: On 21 February 2013 16:02, Gerry O'Brien ge...@scss.tcd.ie wrote: On 21/02/2013 10:14, Daniel Molina wrote: On 20 February 2013 17:28, Gerry O'Brien ge...@scss.tcd.ie wrote: Attached is our .conf file and below are the error and log files. We run one occi server on the machine running the oned daemon but we are trying to run a second occi server on a different machine. Regards, Gerry /usr/lib/one/ruby/cloud/CloudServer.rb:82:in `initialize': getaddrinfo: Name or service not known (SocketError) from /usr/lib/one/ruby/cloud/CloudServer.rb:82:in `new' from /usr/lib/one/ruby/cloud/CloudServer.rb:82:in `is_port_open?' from /usr/lib/ruby/1.8/timeout.rb:67:in `timeout' from /usr/lib/one/ruby/cloud/CloudServer.rb:80:in `is_port_open?' from /usr/share/opennebula/occi/occi-server.rb:102 Could you check if you can reach the xmlrpc server (one_xmlrpc) from the node in which the OCCI server is running. Check Hi Daniel, How do I test this? With a telnet connection? Yes. Check there is no firewall running in the opennebula host. The connection seems fine. When I telnet into the original server and type junk I get a 'Bad Request' from ABYSS Web Server for XML-RPC For C/C++/a/i/b version 1.06 -- Gerry O'Brien Systems Manager School of Computer Science and Statistics Trinity College Dublin Dublin 2 IRELAND 00 353 1 896 1341 ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
[one-users] Sunstone 3.8.1 image upload issue
Dear all We are testing sunstone image wizard, we can create empty datablocks or download an existing image from a http endpoint but the image upload feature from our laptop does not work. The process ends whithout any error but the image does not appear in our image list nor into our datastore (:tmpdir: is set to /tmp and we are using tiny images for the moment) . We are using a SSL apache proxy and everything else is working fine, do you know what's going on? Thanks in advance Alvaro ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] can't ping and ssh vm
I'm using the version 3.8.1. I used this document : http://opennebula.org/cloud:vmware_centos I can launch some vms but i can't ping or ssh vm. And i don't know how put my own default gateway on vm. Can you help me to resolve my problem ? Alexandre ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] opennebula 3.8.1 + clvm
Hi Tobias, your datastore template has the wrong TM_MAD. It should be TM_MAD=lvm instead of TM_MAD=shared. You can fix it by doing onetemplate update 100 and editing it in-place. BTW, thanks for sending all the information, it's so much easier to debug these things when you have the logs and the templates... :-) cheers, Jaime -- Jaime Melis Project Engineer OpenNebula - The Open Source Toolkit for Cloud Computing www.OpenNebula.org | jme...@opennebula.org ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] opennebula 3.8.1 + clvm
Actually, it's onedatastore update 100, not onetemplate... sorry On Thu, Feb 21, 2013 at 6:22 PM, Jaime Melis jme...@opennebula.org wrote: Hi Tobias, your datastore template has the wrong TM_MAD. It should be TM_MAD=lvm instead of TM_MAD=shared. You can fix it by doing onetemplate update 100 and editing it in-place. BTW, thanks for sending all the information, it's so much easier to debug these things when you have the logs and the templates... :-) cheers, Jaime -- Jaime Melis Project Engineer OpenNebula - The Open Source Toolkit for Cloud Computing www.OpenNebula.org | jme...@opennebula.org -- Jaime Melis Project Engineer OpenNebula - The Open Source Toolkit for Cloud Computing www.OpenNebula.org | jme...@opennebula.org ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] opennebula 3.8.1 + clvm
Hi Jaime, yes you are right. I posted the error log file with TM_MAD=lvm, too. I tried both TM_MAD=shared and lvm. I will try the links Mihály Héder already posted. But maybe you have got any other ideas? Best regards, Tobias Am 21.02.2013 um 18:37 schrieb Jaime Melis: Actually, it's onedatastore update 100, not onetemplate... sorry On Thu, Feb 21, 2013 at 6:22 PM, Jaime Melis jme...@opennebula.org wrote: Hi Tobias, your datastore template has the wrong TM_MAD. It should be TM_MAD=lvm instead of TM_MAD=shared. You can fix it by doing onetemplate update 100 and editing it in-place. BTW, thanks for sending all the information, it's so much easier to debug these things when you have the logs and the templates... :-) cheers, Jaime -- Jaime Melis Project Engineer OpenNebula - The Open Source Toolkit for Cloud Computing www.OpenNebula.org | jme...@opennebula.org -- Jaime Melis Project Engineer OpenNebula - The Open Source Toolkit for Cloud Computing www.OpenNebula.org | jme...@opennebula.org ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] opennebula 3.8.1 + clvm
Oops, you're right. Ok, so, can you test the upcoming LVM drivers for OpenNebula 4.0? It replaces snapshotting with cloning... just replace /var/lib/one/remotes/tm/lvm with the contents of: https://github.com/OpenNebula/one/tree/master/src/tm_mad/lvm and do onehost sync afterwards? On Thu, Feb 21, 2013 at 6:41 PM, Tobias Honacker t.honac...@googlemail.comwrote: Hi Jaime, yes you are right. I posted the error log file with TM_MAD=lvm, too. I tried both TM_MAD=shared and lvm. I will try the links Mihály Héder already posted. But maybe you have got any other ideas? Best regards, Tobias Am 21.02.2013 um 18:37 schrieb Jaime Melis: Actually, it's onedatastore update 100, not onetemplate... sorry On Thu, Feb 21, 2013 at 6:22 PM, Jaime Melis jme...@opennebula.orgwrote: Hi Tobias, your datastore template has the wrong TM_MAD. It should be TM_MAD=lvm instead of TM_MAD=shared. You can fix it by doing onetemplate update 100 and editing it in-place. BTW, thanks for sending all the information, it's so much easier to debug these things when you have the logs and the templates... :-) cheers, Jaime -- Jaime Melis Project Engineer OpenNebula - The Open Source Toolkit for Cloud Computing www.OpenNebula.org | jme...@opennebula.org -- Jaime Melis Project Engineer OpenNebula - The Open Source Toolkit for Cloud Computing www.OpenNebula.org | jme...@opennebula.org -- Jaime Melis Project Engineer OpenNebula - The Open Source Toolkit for Cloud Computing www.OpenNebula.org | jme...@opennebula.org ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] can't ping and ssh vm
Please, send us the output of the following commands $ onevm show -x id $ sudo brctl show $ sudo ip route On Thu, Feb 21, 2013 at 6:07 PM, Alexandre De Carvalho alexandre7.decarva...@gmail.com wrote: I'm using the version 3.8.1. I used this document : http://opennebula.org/cloud:vmware_centos I can launch some vms but i can't ping or ssh vm. And i don't know how put my own default gateway on vm. Can you help me to resolve my problem ? Alexandre -- Jaime Melis Project Engineer OpenNebula - The Open Source Toolkit for Cloud Computing www.OpenNebula.org | jme...@opennebula.org ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] problem with vifs
Hi Tino, I see you web, and for this I dont use ESXi5.1 In this moment I use ESXi5.0 , and OpenNebula 3.8.1 This is the output of onedatastore list oneadmin@ubuntu:~$ onedatastore list ID NAME CLUSTER IMAGES TYPE TM 0 system-0 -vmfs 1 default -0 fs shared 108 vmfs_iSCSI-0 vmfs iscsi 109 vmware_iSCSI -0 vmware iscsi 110 vmware_vmfs cluster#12 vmware vmfs 111 vmfs_vmfs -0 vmfs vmfs 115 Data_prueba_Angel cluster#12 vmware vmfs 116 vmware_ssh-0 vmware ssh 117 vmware_dummy -0 vmware dummy 119 DS=vmfs-TM=vmfs cluster#10 vmfs vmfs 122 DS=VMware-TM=SSH cluster#12 vmware ssh 123 vmfs,vmfs cluster#12 vmfs vmfs I use the datastore 123 (vmfs,vmfs) DS=vmfs, and TM=vmfs Thank for you answewr ... Can you help me 48 Aniversario de la Cujae, Una obra de la Revolucion Cubana | 2 de diciembre de 1964 | http://cujae.edu.cu Consulte la enciclopedia colaborativa cubana. http://www.ecured.cu ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] opennebula 3.8.1 + clvm
Hi Jaime, great scripts, thanks. but now there are new errors after the VM is in PROLOG state: ---snip--- Thu Feb 21 21:55:38 2013 [TM][D]: Message received: LOG I 8 Command execution fail: /var/lib/one/remotes/tm/lvm/clone localhost:vg-one.lv-one-4 priv002:/var/lib/one//datastores/0/8/disk.0 8 100 Thu Feb 21 21:55:38 2013 [TM][D]: Message received: LOG E 8 clone: Command set -e Thu Feb 21 21:55:38 2013 [TM][D]: Message received: LOG I 8 mkdir -p /var/lib/one/datastores/0/8 Thu Feb 21 21:55:38 2013 [TM][D]: Message received: LOG I 8 sudo lvcreate -L512 -n lv-one-4-8-0 vg-one Thu Feb 21 21:55:38 2013 [TM][D]: Message received: LOG I 8 sudo dd if=/dev/vg-one/lv-one-4 of=/dev/vg-one/lv-one-4-8-0 bs=64k Thu Feb 21 21:55:38 2013 [TM][D]: Message received: LOG I 8 ln -s /dev/vg-one/lv-one-4-8-0 /var/lib/one/datastores/0/8/disk.0 failed: Warning: Permanently added 'priv002,192.168.255.2' (RSA) to the list of known hosts. Thu Feb 21 21:55:38 2013 [TM][D]: Message received: LOG I 8 dd: writing `/dev/vg-one/lv-one-4-8-0': No space left on device Thu Feb 21 21:55:38 2013 [TM][D]: Message received: LOG I 8 8193+0 records in Thu Feb 21 21:55:38 2013 [TM][D]: Message received: LOG I 8 8192+0 records out Thu Feb 21 21:55:38 2013 [TM][D]: Message received: LOG I 8 536870912 bytes (537 MB) copied, 18.1729 s, 29.5 MB/s Thu Feb 21 21:55:38 2013 [TM][D]: Message received: LOG E 8 Error cloning /dev/vg-one/lv-one-4 to /dev/vg-one/lv-one-4-8-0 Thu Feb 21 21:55:38 2013 [TM][D]: Message received: LOG I 8 ExitCode: 1 Thu Feb 21 21:55:38 2013 [TM][D]: Message received: TRANSFER FAILURE 8 Error cloning /dev/vg-one/lv-one-4 to /dev/vg-one/lv-one-4-8-0 ---snip--- [root@priv001 ~]# lvs LV VG Attr LSize Pool Origin Data% Move Log Copy% Convert lv-one-4 vg-one -wi-a--- 8,00g lv-one-4-8-0 vg-one -wi-a--- 512,00m The script is using the default lv size in lvm.conf. in clone file: SIZE=$(onevm show -x $VM_ID | $XPATH ) [ -z $SIZE ] SIZE=$DEFAULT_SIZE this command cant find the real size of my lv? (8G) ? Thanks for support and best regards, Tobias Am 21.02.2013 um 18:52 schrieb Jaime Melis: Oops, you're right. Ok, so, can you test the upcoming LVM drivers for OpenNebula 4.0? It replaces snapshotting with cloning... just replace /var/lib/one/remotes/tm/lvm with the contents of: https://github.com/OpenNebula/one/tree/master/src/tm_mad/lvm and do onehost sync afterwards? On Thu, Feb 21, 2013 at 6:41 PM, Tobias Honacker t.honac...@googlemail.com wrote: Hi Jaime, yes you are right. I posted the error log file with TM_MAD=lvm, too. I tried both TM_MAD=shared and lvm. I will try the links Mihály Héder already posted. But maybe you have got any other ideas? Best regards, Tobias Am 21.02.2013 um 18:37 schrieb Jaime Melis: Actually, it's onedatastore update 100, not onetemplate... sorry On Thu, Feb 21, 2013 at 6:22 PM, Jaime Melis jme...@opennebula.org wrote: Hi Tobias, your datastore template has the wrong TM_MAD. It should be TM_MAD=lvm instead of TM_MAD=shared. You can fix it by doing onetemplate update 100 and editing it in-place. BTW, thanks for sending all the information, it's so much easier to debug these things when you have the logs and the templates... :-) cheers, Jaime -- Jaime Melis Project Engineer OpenNebula - The Open Source Toolkit for Cloud Computing www.OpenNebula.org | jme...@opennebula.org -- Jaime Melis Project Engineer OpenNebula - The Open Source Toolkit for Cloud Computing www.OpenNebula.org | jme...@opennebula.org -- Jaime Melis Project Engineer OpenNebula - The Open Source Toolkit for Cloud Computing www.OpenNebula.org | jme...@opennebula.org ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] Multiple OCCI GUIs pointing to a single instance of OpenNebula
El 21/02/2013 17:50, Gerry O'Brien ge...@scss.tcd.ie escribió: On 21/02/2013 15:14, Daniel Molina wrote: On 21 February 2013 16:02, Gerry O'Brien ge...@scss.tcd.ie wrote: On 21/02/2013 10:14, Daniel Molina wrote: On 20 February 2013 17:28, Gerry O'Brien ge...@scss.tcd.ie wrote: Attached is our .conf file and below are the error and log files. We run one occi server on the machine running the oned daemon but we are trying to run a second occi server on a different machine. Regards, Gerry /usr/lib/one/ruby/cloud/CloudServer.rb:82:in `initialize': getaddrinfo: Name or service not known (SocketError) from /usr/lib/one/ruby/cloud/CloudServer.rb:82:in `new' from /usr/lib/one/ruby/cloud/CloudServer.rb:82:in `is_port_open?' from /usr/lib/ruby/1.8/timeout.rb:67:in `timeout' from /usr/lib/one/ruby/cloud/CloudServer.rb:80:in `is_port_open?' from /usr/share/opennebula/occi/occi-server.rb:102 Could you check if you can reach the xmlrpc server (one_xmlrpc) from the node in which the OCCI server is running. Check Hi Daniel, How do I test this? With a telnet connection? Yes. Check there is no firewall running in the opennebula host. The connection seems fine. When I telnet into the original server and type junk I get a 'Bad Request' from ABYSS Web Server for XML-RPC For C/C++/a/i/b version 1.06 Could you check there is no other process listening on port 4568 (in the machine which is not running oned) -- Gerry O'Brien Systems Manager School of Computer Science and Statistics Trinity College Dublin Dublin 2 IRELAND 00 353 1 896 1341 ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] Sunstone 3.8.1 image upload issue
Hi Alvaro, El 21/02/2013 17:51, Alvaro Simon asi...@cesga.es escribió: Dear all We are testing sunstone image wizard, we can create empty datablocks or download an existing image from a http endpoint but the image upload feature from our laptop does not work. The process ends whithout any error but the image does not appear in our image list nor into our datastore (:tmpdir: is set to /tmp and we are using tiny images for the moment) . We are using a SSL apache proxy and everything else is working fine, do you know what's going on? What Opennebula version are you running? Is there any relevant information in oned.log, sunstone.log when this action is performed Cheers Thanks in advance Alvaro ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org