Re: [one-users] Sunstone issue

2011-10-18 Thread Daniel Molina
On 19 October 2011 00:02, Faarooq Lowe  wrote:

> It appears to yield the same level of debugging.


Try running it without strace


-- 
Daniel Molina
Project Engineer
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org | @dmamolina
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] OpenNebula SSH Problem ?

2011-10-18 Thread Héctor Sanjuán
El 18/10/11 23:53, Clément Berthelot escribió:
> I realized I couldn't connect from the frontend to the node with SSH 
> (connection closed immediately by the node). This is really weird because it 
> works perfectly the other way around (from the node to the frontend) not 
> asking for any password or anything, which means that the problem does not 
> come from the SSH Key/permissions.

OpenNebula must be able to ssh the node passwordless. That is, ssh from
the frontend to the node (and not from the node to the frontend, as I
understand from your message).

Try manually ssh-ing to the node from the frontend with the oneadmin
user. It should work like that, otherwise opennebula wont be able to
monitor the host etc...

If further problems, attach oned.log...

Hope it helps,

Hector
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Sunstone issue

2011-10-18 Thread Faarooq Lowe

It appears to yield the same level of debugging.

Here is what we are finding

stat("/usr/local/lib/ruby/1.8/rexml/document.rb", {st_mode=S_IFREG|0644, 
st_size=7619, ...}) = 0

open("/usr/local/lib/ruby/1.8/rexml/document.rb", O_RDONLY) = 7
fstat(7, {st_mode=S_IFREG|0644, st_size=7619, ...}) = 0
close(7)= 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=3543, ...}) = 0
write(2, "131.225.169.96 - - [18/Oct/2011 "..., 78131.225.169.96 - - 
[18/Oct/2011 17:01:28] "POST /login HTTP/1.1" 500 - 0.1337

) = 78
read(8, 0x7fffb39305f0, 16384)  = -1 EAGAIN (Resource 
temporarily unavailable)

select(9, [4 6 8], [8], [], {0, 9}) = 1 (out [8], left {0, 9})
writev(8, [{"HTTP/1.1 500 Internal Server Err"..., 165}, {"", 0}], 2) = 165


On 10/18/11 4:51 PM, Daniel Molina wrote:

I think the problem is in the following section of the sunstone-server.rb
begin
result = cloud_auth.auth(request.env, params)
rescue Exception => e
error 500, e.message
end

the exception is captured and is not shown in the login screen, 
instead you get a "OpenNebula is not running" error.


In order to debug, can you add the following line to find out what is 
the cause:

begin
result = cloud_auth.auth(request.env, params)
rescue Exception => e
STDERR.puts "DEBUGGING #{e.message}"
error 500, e.message
end

In next versions we will add a debug flag in order to ease this task.

On 18 October 2011 22:47, Faarooq Lowe > wrote:


Hi Daniel,

Here is some additional information.

I started the sunstone-server once directly by referencing the
ruby script and used strace

Here is output from that when I attempted to login using x509
credentials≥

write(2, "131.225.80.86 - - [18/Oct/2011 1"..., 77131.225.80.86 -
- [18/Oct/2011 14:39:50] "POST /login HTTP/1.1" 500 - 0.1351
) = 77
read(7, 0x7fff8c09ecc0, 16384)  = -1 EAGAIN (Resource
temporarily unavailable)


On 10/18/11 11:51 AM, Daniel Molina wrote:

Hi,

On 18 October 2011 18:24, Faarooq Lowe mailto:l...@fnal.gov>> wrote:

We are running OpenNebula 3.0 with Sunstone.  I am able to
use command-line launch VMs and to see host, VMs, users, etc.

The sunstone server did launch successfully, however when I
attempt to login to I get the following message:  "OpenNebula
is not running"

The initial pages come up just fine.  We just are unable to
log into OpenNebula.  We are using x509 authentication.


Would you mind to send us the content of the following files:
oned.conf (AUTH_MAD section), sunstone-server.conf, oned.log and
sunstone.log; after a login request from sunstone?.

Regards

-- 
Daniel Molina

Project Engineer
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org  | @dmamolina





--
Daniel Molina
Project Engineer
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org  | @dmamolina


___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] KVM Hypervisor Failed Image Start

2011-10-18 Thread Javier Fontan
You could execute virsh list so the daemon should be listening. To me
the error with the iptables could be the cause to that "Unknown
failure". Try flushing iptables.

Also as you could start other VMs try to check the differences, maybe
the virtio drivers or the vnc.

On Tue, Oct 18, 2011 at 11:47 PM, Ryan Aydelott  wrote:
> Javier - I did note the following on the hypervisor /var/log/messages on
> restart:
> Oct 18 11:05:52 localhost libvirtd: 11:05:52.794: error : virRunWithHook:856
> : internal error '/sbin/iptables --table filter --delete INPUT
> --in-interface virbr0 --protocol udp --destination-port 69 --jump ACCEPT'
> exited with non-zero status 1 and signal 0: iptables: Bad rule (does a
> matching rule exist in that chain?)
> Oct 18 11:05:53 localhost libvirtd: 11:05:53.211: warning :
> qemudStartup:1667 : Unable to create cgroup for driver: No such device or
> address
> The only reason I did not investigate further is that I was able to start
> hosts locally using virsh/xml.
> This would seem to imply to me that libvirtd wouldn't be listening (which
> could be the whole source of the problem?)
>
> RYAN AYDELOTT | SR. SYSTEMS/NETWORK ADMIN | VIBES MEDIA
> 300 W Adams St, Floor 7 | Chicago, IL 60606
> 312-589-6931 (o) | 312-388-2929 (m)
> ryan.aydel...@vibes.com | www.vibes.com
> On Oct 18, 2011, at 4:37 PM, Javier Fontan wrote:
>
> I don't see anything strange in the deployment file and with so little
> information from libvirt I would create a new VM with the same
> paremeters but without vnc or virtio. I can only see those as the
> cause for non descriptive problems.
>
> Also as the libvirt FAQ [1] says check /var/log/messages for some info.
>
> [1] http://wiki.libvirt.org/page/FAQ#error:_Unknown_Failure
>
> On Tue, Oct 18, 2011 at 11:13 PM, Ryan Aydelott 
> wrote:
>
> As requested:
>
> [root@kvm02 10]# cat deployment.1
>
> 
>
> one-10
>
> 4
>
> 4194304
>
> 
>
> hvm
>
> 
>
> 
>
> 
>
> /usr/bin/kvm
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> [root@kvm02 10]# cat deployment.2
>
> 
>
> one-10
>
> 4
>
> 4194304
>
> 
>
> hvm
>
> 
>
> 
>
> 
>
> /usr/bin/kvm
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> [root@kvm02 10]# virsh list --inactive
>
>  Id Name                 State
>
> --
>
> RYAN AYDELOTT | SR. SYSTEMS/NETWORK ADMIN | VIBES MEDIA
>
> 300 W Adams St, Floor 7 | Chicago, IL 60606
>
> 312-589-6931 (o) | 312-388-2929 (m)
>
> ryan.aydel...@vibes.com | www.vibes.com
>
> On Oct 18, 2011, at 4:01 PM, Javier Fontan wrote:
>
> Can you send us the deployment files (I can see both deployment.1 and
>
> deployment.2) files? Also go to the node and execute
>
> # virsh list --inactive
>
> as root and check that there are no inactive VMs defined.
>
> Cheers
>
> On Tue, Oct 18, 2011 at 6:28 PM, Ryan Aydelott 
>
> wrote:
>
> I am having an issue with bootstrapping an image into a KVM hypervisor, I
>
> have had success with Xen prior to this, but now trying KVM. Some basic
>
> info:
>
> OpenNebula 3.0
>
> libvirtd on KVM (Centos 5.6) is 0.8.2
>
> Shared NFS Filesystem
>
> oneadmin account adding to KVM/QEMU groups
>
> onehost successfully monitored:
>
> Tue Oct 18 11:23:11 2011 [ReM][D]: HostPoolInfo method invoked
>
>   ID NAME               RVM   TCPU   FCPU   ACPU   TMEM   FMEM   AMEM   STAT
>
>    0 kvm01                0    400    397    400  31.4G    17G  31.4G     on
>
>    6 kvm02                0    400    400    400  31.4G  30.8G  31.4G     on
>
> I can successfully start KVM hosts via Virsh using the command line. However
>
> when I attempt to do so using OpenNebula it fails. It may be important to
>
> note that in /var/log/libvirt/qemu where I would normally see log files for
>
> one-5.log, one-6.log, etc - no file is created for this instance. This leads
>
> me to believe that kvm is not even being called on the machine.
>
> I'm hoping this is just a really dumb beginners mistake. If anyone has any
>
> suggestions - let me know. Thanks!
>
> Information on hypervisor for oned.log is as follows:
>
> Tue Oct 18 11:14:52 2011 [TM][D]: Message received: LOG D 10 tm_clone.sh:
>
> opennebula:/srv/cloud/one/var/images/c38ebcb9c8b7d7f658feb6e9e62653e0
>
> kvm02:/srv/cloud/one/var//10/images/disk.1
>
> Tue Oct 18 11:14:52 2011 [TM][D]: Message received: LOG D 10 tm_clone.sh:
>
> DST: /srv/cloud/one/var//10/images/disk.1
>
> Tue Oct 18 11:14:52 2011 [TM][D]: Message received: LOG I 10 tm_clone.sh:
>
> Creating directory /srv/cloud/one/var//10/images
>
> Tue Oct 18 11:14:52 2011 [TM][D]: Message received: LOG I 10 tm_clone.sh:
>
> Executed "mkdir -p /srv/cloud/one/var//10/images".
>
> Tue Oct 18 11:14:52 2011 [TM][D]: Message received: LOG I 10 tm_clone.sh:
>
> Executed "chmod a+w /srv/cloud/one/var//10/images".
>
> Tue Oct 18 11:14:52 2011 [TM][D]: Message received: LOG I 10 tm_clone.sh:
>
> Cloning /srv/cloud/one/var/images/c38ebcb9c8b7d7f658feb6e9e62653e0
>
> Tue Oct 18 11:14:52 2011 [TM][D]: M

[one-users] OpenNebula SSH Problem ?

2011-10-18 Thread Clément Berthelot
Hey guys,

I'm working on my master thesis which has for subject the evaluation of virtual 
firewall in cloud environment. In this optic, I'm trying to create my own cloud 
with Xen and OpenNebula. Both the machines I use (Frontend and Node) runs 
OpenSUSE 11.4. I followed very closely the documentation on how to install 
OpenNebula(2.2), but after an entire afternoon and no success, I'm turning to 
you guys.

Almost everything is working: I can access sunstone from any host, the oneadmin 
account and home directory is successfully on both machines (my frontend is a 
NFS server) with the same UID/GID. However, when I link the node to the 
frontend with the onehost command, the node appears but with an 'ERROR' status. 
I did edit the oned.conf file with the Xen-related options and everything. So 
when I tried to figure why it was not working, I realized I couldn't connect 
from the frontend to the node with SSH (connection closed immediately by the 
node). This is really weird because it works perfectly the other way around 
(from the node to the frontend) not asking for any password or anything, which 
means that the problem does not come from the SSH Key/permissions.

I deactivated the firewall on the node, and restarted plenty of times sshd, but 
it's still not working. I realized Ruby was not installed, and even if I didn't 
think it would have something to do with SSH, I installed it and tried again 
for the same result. I really have no clue where this is coming from. Do you 
guys have any idea ?

Cheers,

Clement
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Sunstone issue

2011-10-18 Thread Daniel Molina
I think the problem is in the following section of the sunstone-server.rb
begin
result = cloud_auth.auth(request.env, params)
rescue Exception => e
error 500, e.message
end

the exception is captured and is not shown in the login screen, instead you
get a "OpenNebula is not running" error.

In order to debug, can you add the following line to find out what is the
cause:
begin
result = cloud_auth.auth(request.env, params)
rescue Exception => e
STDERR.puts "DEBUGGING #{e.message}"
error 500, e.message
end

In next versions we will add a debug flag in order to ease this task.

On 18 October 2011 22:47, Faarooq Lowe  wrote:

>  Hi Daniel,
>
> Here is some additional information.
>
> I started the sunstone-server once directly by referencing the ruby script
> and used strace
>
> Here is output from that when I attempted to login using x509 credentials≥
>
> write(2, "131.225.80.86 - - [18/Oct/2011 1"..., 77131.225.80.86 - -
> [18/Oct/2011 14:39:50] "POST /login HTTP/1.1" 500 - 0.1351
> ) = 77
> read(7, 0x7fff8c09ecc0, 16384)  = -1 EAGAIN (Resource temporarily
> unavailable)
>
>
> On 10/18/11 11:51 AM, Daniel Molina wrote:
>
> Hi,
>
> On 18 October 2011 18:24, Faarooq Lowe  wrote:
>
>> We are running OpenNebula 3.0 with Sunstone.  I am able to use
>> command-line launch VMs and to see host, VMs, users, etc.
>>
>> The sunstone server did launch successfully, however when I attempt to
>> login to I get the following message:  "OpenNebula is not running"
>>
>> The initial pages come up just fine.  We just are unable to log into
>> OpenNebula.  We are using x509 authentication.
>>
>
> Would you mind to send us the content of the following files: oned.conf
> (AUTH_MAD section), sunstone-server.conf, oned.log and sunstone.log; after a
> login request from sunstone?.
>
>  Regards
>
>  --
> Daniel Molina
> Project Engineer
> OpenNebula - The Open Source Toolkit for Cloud Computing
> www.OpenNebula.org | @dmamolina
>
>
>


-- 
Daniel Molina
Project Engineer
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org | @dmamolina
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] KVM Hypervisor Failed Image Start

2011-10-18 Thread Ryan Aydelott
Javier - I did note the following on the hypervisor /var/log/messages on 
restart:

Oct 18 11:05:52 localhost libvirtd: 11:05:52.794: error : virRunWithHook:856 : 
internal error '/sbin/iptables --table filter --delete INPUT --in-interface 
virbr0 --protocol udp --destination-port 69 --jump ACCEPT' exited with non-zero 
status 1 and signal 0: iptables: Bad rule (does a matching rule exist in that 
chain?)
Oct 18 11:05:53 localhost libvirtd: 11:05:53.211: warning : qemudStartup:1667 : 
Unable to create cgroup for driver: No such device or address

The only reason I did not investigate further is that I was able to start hosts 
locally using virsh/xml.

This would seem to imply to me that libvirtd wouldn't be listening (which could 
be the whole source of the problem?)


RYAN AYDELOTT | SR. SYSTEMS/NETWORK ADMIN | VIBES MEDIA
300 W Adams St, Floor 7 | Chicago, IL 60606
312-589-6931 (o) | 312-388-2929 (m)
ryan.aydel...@vibes.com | 
www.vibes.com

On Oct 18, 2011, at 4:37 PM, Javier Fontan wrote:

I don't see anything strange in the deployment file and with so little
information from libvirt I would create a new VM with the same
paremeters but without vnc or virtio. I can only see those as the
cause for non descriptive problems.

Also as the libvirt FAQ [1] says check /var/log/messages for some info.

[1] http://wiki.libvirt.org/page/FAQ#error:_Unknown_Failure

On Tue, Oct 18, 2011 at 11:13 PM, Ryan Aydelott 
mailto:ryan.aydel...@vibes.com>> wrote:
As requested:
[root@kvm02 10]# cat deployment.1

one-10
4
4194304

hvm



/usr/bin/kvm
















[root@kvm02 10]# cat deployment.2

one-10
4
4194304

hvm



/usr/bin/kvm

















[root@kvm02 10]# virsh list --inactive
 Id Name State
--

RYAN AYDELOTT | SR. SYSTEMS/NETWORK ADMIN | VIBES MEDIA
300 W Adams St, Floor 7 | Chicago, IL 60606
312-589-6931 (o) | 312-388-2929 (m)
ryan.aydel...@vibes.com | 
www.vibes.com
On Oct 18, 2011, at 4:01 PM, Javier Fontan wrote:

Can you send us the deployment files (I can see both deployment.1 and
deployment.2) files? Also go to the node and execute

# virsh list --inactive

as root and check that there are no inactive VMs defined.

Cheers

On Tue, Oct 18, 2011 at 6:28 PM, Ryan Aydelott 
mailto:ryan.aydel...@vibes.com>>
wrote:

I am having an issue with bootstrapping an image into a KVM hypervisor, I

have had success with Xen prior to this, but now trying KVM. Some basic

info:

OpenNebula 3.0

libvirtd on KVM (Centos 5.6) is 0.8.2

Shared NFS Filesystem

oneadmin account adding to KVM/QEMU groups

onehost successfully monitored:

Tue Oct 18 11:23:11 2011 [ReM][D]: HostPoolInfo method invoked

  ID NAME   RVM   TCPU   FCPU   ACPU   TMEM   FMEM   AMEM   STAT

   0 kvm010400397400  31.4G17G  31.4G on

   6 kvm020400400400  31.4G  30.8G  31.4G on

I can successfully start KVM hosts via Virsh using the command line. However

when I attempt to do so using OpenNebula it fails. It may be important to

note that in /var/log/libvirt/qemu where I would normally see log files for

one-5.log, one-6.log, etc - no file is created for this instance. This leads

me to believe that kvm is not even being called on the machine.

I'm hoping this is just a really dumb beginners mistake. If anyone has any

suggestions - let me know. Thanks!

Information on hypervisor for oned.log is as follows:

Tue Oct 18 11:14:52 2011 [TM][D]: Message received: LOG D 10 tm_clone.sh:

opennebula:/srv/cloud/one/var/images/c38ebcb9c8b7d7f658feb6e9e62653e0

kvm02:/srv/cloud/one/var//10/images/disk.1

Tue Oct 18 11:14:52 2011 [TM][D]: Message received: LOG D 10 tm_clone.sh:

DST: /srv/cloud/one/var//10/images/disk.1

Tue Oct 18 11:14:52 2011 [TM][D]: Message received: LOG I 10 tm_clone.sh:

Creating directory /srv/cloud/one/var//10/images

Tue Oct 18 11:14:52 2011 [TM][D]: Message received: LOG I 10 tm_clone.sh:

Executed "mkdir -p /srv/cloud/one/var//10/images".

Tue Oct 18 11:14:52 2011 [TM][D]: Message received: LOG I 10 tm_clone.sh:

Executed "chmod a+w /srv/cloud/one/var//10/images".

Tue Oct 18 11:14:52 2011 [TM][D]: Message received: LOG I 10 tm_clone.sh:

Cloning /srv/cloud/one/var/images/c38ebcb9c8b7d7f658feb6e9e62653e0

Tue Oct 18 11:14:52 2011 [TM][D]: Message received: LOG I 10 tm_clone.sh:

Executed "cp -r /srv/cloud/one/var/images/c38ebcb9c8b7d7f658feb6e9e62653e0

/srv/cloud/one/var//10/images/disk.1".

Tue Oct 18 11:14:52 2011 [TM][D]: Message received: LOG I 10 tm_clone.sh:

Executed "chmod a+rw /srv/cloud/one/var//10/images/disk.1".

Tue Oct 18 11:14:52 2011 [TM][D]: Message received: LOG I 10 ExitCode: 0

Tue Oct 18 11:14:52 2011 [TM][D]: Message received: TRANSFER SUCCESS 10 -

Tue Oct 18 11:14:53 2011 [VMM][D]: Message received: LOG I 10 Command

execution fail: 'if [ -x "/var/tmp/one/vmm/kvm/deploy" ]; then

Re: [one-users] KVM Hypervisor Failed Image Start

2011-10-18 Thread Javier Fontan
I don't see anything strange in the deployment file and with so little
information from libvirt I would create a new VM with the same
paremeters but without vnc or virtio. I can only see those as the
cause for non descriptive problems.

Also as the libvirt FAQ [1] says check /var/log/messages for some info.

[1] http://wiki.libvirt.org/page/FAQ#error:_Unknown_Failure

On Tue, Oct 18, 2011 at 11:13 PM, Ryan Aydelott  wrote:
> As requested:
> [root@kvm02 10]# cat deployment.1
> 
> one-10
> 4
> 4194304
> 
> hvm
> 
> 
> 
> /usr/bin/kvm
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> [root@kvm02 10]# cat deployment.2
> 
> one-10
> 4
> 4194304
> 
> hvm
> 
> 
> 
> /usr/bin/kvm
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> [root@kvm02 10]# virsh list --inactive
>  Id Name                 State
> --
>
> RYAN AYDELOTT | SR. SYSTEMS/NETWORK ADMIN | VIBES MEDIA
> 300 W Adams St, Floor 7 | Chicago, IL 60606
> 312-589-6931 (o) | 312-388-2929 (m)
> ryan.aydel...@vibes.com | www.vibes.com
> On Oct 18, 2011, at 4:01 PM, Javier Fontan wrote:
>
> Can you send us the deployment files (I can see both deployment.1 and
> deployment.2) files? Also go to the node and execute
>
> # virsh list --inactive
>
> as root and check that there are no inactive VMs defined.
>
> Cheers
>
> On Tue, Oct 18, 2011 at 6:28 PM, Ryan Aydelott 
> wrote:
>
> I am having an issue with bootstrapping an image into a KVM hypervisor, I
>
> have had success with Xen prior to this, but now trying KVM. Some basic
>
> info:
>
> OpenNebula 3.0
>
> libvirtd on KVM (Centos 5.6) is 0.8.2
>
> Shared NFS Filesystem
>
> oneadmin account adding to KVM/QEMU groups
>
> onehost successfully monitored:
>
> Tue Oct 18 11:23:11 2011 [ReM][D]: HostPoolInfo method invoked
>
>   ID NAME               RVM   TCPU   FCPU   ACPU   TMEM   FMEM   AMEM   STAT
>
>    0 kvm01                0    400    397    400  31.4G    17G  31.4G     on
>
>    6 kvm02                0    400    400    400  31.4G  30.8G  31.4G     on
>
> I can successfully start KVM hosts via Virsh using the command line. However
>
> when I attempt to do so using OpenNebula it fails. It may be important to
>
> note that in /var/log/libvirt/qemu where I would normally see log files for
>
> one-5.log, one-6.log, etc - no file is created for this instance. This leads
>
> me to believe that kvm is not even being called on the machine.
>
> I'm hoping this is just a really dumb beginners mistake. If anyone has any
>
> suggestions - let me know. Thanks!
>
> Information on hypervisor for oned.log is as follows:
>
> Tue Oct 18 11:14:52 2011 [TM][D]: Message received: LOG D 10 tm_clone.sh:
>
> opennebula:/srv/cloud/one/var/images/c38ebcb9c8b7d7f658feb6e9e62653e0
>
> kvm02:/srv/cloud/one/var//10/images/disk.1
>
> Tue Oct 18 11:14:52 2011 [TM][D]: Message received: LOG D 10 tm_clone.sh:
>
> DST: /srv/cloud/one/var//10/images/disk.1
>
> Tue Oct 18 11:14:52 2011 [TM][D]: Message received: LOG I 10 tm_clone.sh:
>
> Creating directory /srv/cloud/one/var//10/images
>
> Tue Oct 18 11:14:52 2011 [TM][D]: Message received: LOG I 10 tm_clone.sh:
>
> Executed "mkdir -p /srv/cloud/one/var//10/images".
>
> Tue Oct 18 11:14:52 2011 [TM][D]: Message received: LOG I 10 tm_clone.sh:
>
> Executed "chmod a+w /srv/cloud/one/var//10/images".
>
> Tue Oct 18 11:14:52 2011 [TM][D]: Message received: LOG I 10 tm_clone.sh:
>
> Cloning /srv/cloud/one/var/images/c38ebcb9c8b7d7f658feb6e9e62653e0
>
> Tue Oct 18 11:14:52 2011 [TM][D]: Message received: LOG I 10 tm_clone.sh:
>
> Executed "cp -r /srv/cloud/one/var/images/c38ebcb9c8b7d7f658feb6e9e62653e0
>
> /srv/cloud/one/var//10/images/disk.1".
>
> Tue Oct 18 11:14:52 2011 [TM][D]: Message received: LOG I 10 tm_clone.sh:
>
> Executed "chmod a+rw /srv/cloud/one/var//10/images/disk.1".
>
> Tue Oct 18 11:14:52 2011 [TM][D]: Message received: LOG I 10 ExitCode: 0
>
> Tue Oct 18 11:14:52 2011 [TM][D]: Message received: TRANSFER SUCCESS 10 -
>
> Tue Oct 18 11:14:53 2011 [VMM][D]: Message received: LOG I 10 Command
>
> execution fail: 'if [ -x "/var/tmp/one/vmm/kvm/deploy" ]; then
>
> /var/tmp/one/vmm/kvm/deploy /srv/cloud/one/var//10/images/deployment.2 kvm02
>
> 10 kvm02; else                              exit 42; fi'
>
> Tue Oct 18 11:14:53 2011 [VMM][D]: Message received: LOG I 10 error: Failed
>
> to create domain from /srv/cloud/one/var//10/images/deployment.2
>
> Tue Oct 18 11:14:53 2011 [VMM][D]: Message received: LOG I 10 error: Unknown
>
> failure
>
> Tue Oct 18 11:14:53 2011 [VMM][D]: Message received: LOG E 10 Could not
>
> create domain from /srv/cloud/one/var//10/images/deployment.2
>
> Tue Oct 18 11:14:53 2011 [VMM][D]: Message received: LOG I 10 ExitCode: 255
>
> Tue Oct 18 11:14:53 2011 [VMM][D]: Message received: DEPLOY FAILURE 10 Could
>
> not create domain from /srv/cloud/one/var//10/images/deployment.2
>
> vm.log is as follows:
>
> Tue Oct 18 10:50:42 2011 [DiM][I]: New VM state is ACTIVE.
>
> Tue Oct 18 10:50:43 2011 [LCM][I]: New VM state is PROLOG.
>

Re: [one-users] KVM Hypervisor Failed Image Start

2011-10-18 Thread Ryan Aydelott
As requested:

[root@kvm02 10]# cat deployment.1

one-10
4
4194304

hvm



/usr/bin/kvm
















[root@kvm02 10]# cat deployment.2

one-10
4
4194304

hvm



/usr/bin/kvm


















[root@kvm02 10]# virsh list --inactive
 Id Name State
--


RYAN AYDELOTT | SR. SYSTEMS/NETWORK ADMIN | VIBES MEDIA
300 W Adams St, Floor 7 | Chicago, IL 60606
312-589-6931 (o) | 312-388-2929 (m)
ryan.aydel...@vibes.com | 
www.vibes.com

On Oct 18, 2011, at 4:01 PM, Javier Fontan wrote:

Can you send us the deployment files (I can see both deployment.1 and
deployment.2) files? Also go to the node and execute

# virsh list --inactive

as root and check that there are no inactive VMs defined.

Cheers

On Tue, Oct 18, 2011 at 6:28 PM, Ryan Aydelott 
mailto:ryan.aydel...@vibes.com>> wrote:
I am having an issue with bootstrapping an image into a KVM hypervisor, I
have had success with Xen prior to this, but now trying KVM. Some basic
info:
OpenNebula 3.0
libvirtd on KVM (Centos 5.6) is 0.8.2
Shared NFS Filesystem
oneadmin account adding to KVM/QEMU groups
onehost successfully monitored:
Tue Oct 18 11:23:11 2011 [ReM][D]: HostPoolInfo method invoked
  ID NAME   RVM   TCPU   FCPU   ACPU   TMEM   FMEM   AMEM   STAT
   0 kvm010400397400  31.4G17G  31.4G on
   6 kvm020400400400  31.4G  30.8G  31.4G on
I can successfully start KVM hosts via Virsh using the command line. However
when I attempt to do so using OpenNebula it fails. It may be important to
note that in /var/log/libvirt/qemu where I would normally see log files for
one-5.log, one-6.log, etc - no file is created for this instance. This leads
me to believe that kvm is not even being called on the machine.
I'm hoping this is just a really dumb beginners mistake. If anyone has any
suggestions - let me know. Thanks!

Information on hypervisor for oned.log is as follows:
Tue Oct 18 11:14:52 2011 [TM][D]: Message received: LOG D 10 tm_clone.sh:
opennebula:/srv/cloud/one/var/images/c38ebcb9c8b7d7f658feb6e9e62653e0
kvm02:/srv/cloud/one/var//10/images/disk.1
Tue Oct 18 11:14:52 2011 [TM][D]: Message received: LOG D 10 tm_clone.sh:
DST: /srv/cloud/one/var//10/images/disk.1
Tue Oct 18 11:14:52 2011 [TM][D]: Message received: LOG I 10 tm_clone.sh:
Creating directory /srv/cloud/one/var//10/images
Tue Oct 18 11:14:52 2011 [TM][D]: Message received: LOG I 10 tm_clone.sh:
Executed "mkdir -p /srv/cloud/one/var//10/images".
Tue Oct 18 11:14:52 2011 [TM][D]: Message received: LOG I 10 tm_clone.sh:
Executed "chmod a+w /srv/cloud/one/var//10/images".
Tue Oct 18 11:14:52 2011 [TM][D]: Message received: LOG I 10 tm_clone.sh:
Cloning /srv/cloud/one/var/images/c38ebcb9c8b7d7f658feb6e9e62653e0
Tue Oct 18 11:14:52 2011 [TM][D]: Message received: LOG I 10 tm_clone.sh:
Executed "cp -r /srv/cloud/one/var/images/c38ebcb9c8b7d7f658feb6e9e62653e0
/srv/cloud/one/var//10/images/disk.1".
Tue Oct 18 11:14:52 2011 [TM][D]: Message received: LOG I 10 tm_clone.sh:
Executed "chmod a+rw /srv/cloud/one/var//10/images/disk.1".
Tue Oct 18 11:14:52 2011 [TM][D]: Message received: LOG I 10 ExitCode: 0
Tue Oct 18 11:14:52 2011 [TM][D]: Message received: TRANSFER SUCCESS 10 -
Tue Oct 18 11:14:53 2011 [VMM][D]: Message received: LOG I 10 Command
execution fail: 'if [ -x "/var/tmp/one/vmm/kvm/deploy" ]; then
/var/tmp/one/vmm/kvm/deploy /srv/cloud/one/var//10/images/deployment.2 kvm02
10 kvm02; else  exit 42; fi'
Tue Oct 18 11:14:53 2011 [VMM][D]: Message received: LOG I 10 error: Failed
to create domain from /srv/cloud/one/var//10/images/deployment.2
Tue Oct 18 11:14:53 2011 [VMM][D]: Message received: LOG I 10 error: Unknown
failure
Tue Oct 18 11:14:53 2011 [VMM][D]: Message received: LOG E 10 Could not
create domain from /srv/cloud/one/var//10/images/deployment.2
Tue Oct 18 11:14:53 2011 [VMM][D]: Message received: LOG I 10 ExitCode: 255
Tue Oct 18 11:14:53 2011 [VMM][D]: Message received: DEPLOY FAILURE 10 Could
not create domain from /srv/cloud/one/var//10/images/deployment.2

vm.log is as follows:

Tue Oct 18 10:50:42 2011 [DiM][I]: New VM state is ACTIVE.
Tue Oct 18 10:50:43 2011 [LCM][I]: New VM state is PROLOG.
Tue Oct 18 10:50:43 2011 [VM][I]: Virtual Machine has no context
Tue Oct 18 10:56:09 2011 [TM][D]: tm_clone.sh:
opennebula:/srv/cloud/images/rhel-server-5.4-x86_64-dvd.iso
kvm02:/srv/cloud/one/var//10/images/disk.0
Tue Oct 18 10:56:09 2011 [TM][D]: tm_clone.sh: DST:
/srv/cloud/one/var//10/images/disk.0
Tue Oct 18 10:56:09 2011 [TM][I]: tm_clone.sh: Creating directory
/srv/cloud/one/var//10/images
Tue Oct 18 10:56:09 2011 [TM][I]: tm_clone.sh: Executed "mkdir -p
/srv/cloud/one/var//10/images".
Tue Oct 18 10:56:09 2011 [TM][I]: tm_clone.sh: Executed "chmod a+w
/srv/cloud/one/var//10/images".
Tue Oct 18 10:56:09 2011 [TM][I]: tm_clone.sh: Cloning
/srv/cloud/images/rhel-server-5.4-x86_64-dvd.iso
Tue 

Re: [one-users] KVM Hypervisor Failed Image Start

2011-10-18 Thread Javier Fontan
Can you send us the deployment files (I can see both deployment.1 and
deployment.2) files? Also go to the node and execute

# virsh list --inactive

as root and check that there are no inactive VMs defined.

Cheers

On Tue, Oct 18, 2011 at 6:28 PM, Ryan Aydelott  wrote:
> I am having an issue with bootstrapping an image into a KVM hypervisor, I
> have had success with Xen prior to this, but now trying KVM. Some basic
> info:
> OpenNebula 3.0
> libvirtd on KVM (Centos 5.6) is 0.8.2
> Shared NFS Filesystem
> oneadmin account adding to KVM/QEMU groups
> onehost successfully monitored:
> Tue Oct 18 11:23:11 2011 [ReM][D]: HostPoolInfo method invoked
>   ID NAME               RVM   TCPU   FCPU   ACPU   TMEM   FMEM   AMEM   STAT
>    0 kvm01                0    400    397    400  31.4G    17G  31.4G     on
>    6 kvm02                0    400    400    400  31.4G  30.8G  31.4G     on
> I can successfully start KVM hosts via Virsh using the command line. However
> when I attempt to do so using OpenNebula it fails. It may be important to
> note that in /var/log/libvirt/qemu where I would normally see log files for
> one-5.log, one-6.log, etc - no file is created for this instance. This leads
> me to believe that kvm is not even being called on the machine.
> I'm hoping this is just a really dumb beginners mistake. If anyone has any
> suggestions - let me know. Thanks!
>
> Information on hypervisor for oned.log is as follows:
> Tue Oct 18 11:14:52 2011 [TM][D]: Message received: LOG D 10 tm_clone.sh:
> opennebula:/srv/cloud/one/var/images/c38ebcb9c8b7d7f658feb6e9e62653e0
> kvm02:/srv/cloud/one/var//10/images/disk.1
> Tue Oct 18 11:14:52 2011 [TM][D]: Message received: LOG D 10 tm_clone.sh:
> DST: /srv/cloud/one/var//10/images/disk.1
> Tue Oct 18 11:14:52 2011 [TM][D]: Message received: LOG I 10 tm_clone.sh:
> Creating directory /srv/cloud/one/var//10/images
> Tue Oct 18 11:14:52 2011 [TM][D]: Message received: LOG I 10 tm_clone.sh:
> Executed "mkdir -p /srv/cloud/one/var//10/images".
> Tue Oct 18 11:14:52 2011 [TM][D]: Message received: LOG I 10 tm_clone.sh:
> Executed "chmod a+w /srv/cloud/one/var//10/images".
> Tue Oct 18 11:14:52 2011 [TM][D]: Message received: LOG I 10 tm_clone.sh:
> Cloning /srv/cloud/one/var/images/c38ebcb9c8b7d7f658feb6e9e62653e0
> Tue Oct 18 11:14:52 2011 [TM][D]: Message received: LOG I 10 tm_clone.sh:
> Executed "cp -r /srv/cloud/one/var/images/c38ebcb9c8b7d7f658feb6e9e62653e0
> /srv/cloud/one/var//10/images/disk.1".
> Tue Oct 18 11:14:52 2011 [TM][D]: Message received: LOG I 10 tm_clone.sh:
> Executed "chmod a+rw /srv/cloud/one/var//10/images/disk.1".
> Tue Oct 18 11:14:52 2011 [TM][D]: Message received: LOG I 10 ExitCode: 0
> Tue Oct 18 11:14:52 2011 [TM][D]: Message received: TRANSFER SUCCESS 10 -
> Tue Oct 18 11:14:53 2011 [VMM][D]: Message received: LOG I 10 Command
> execution fail: 'if [ -x "/var/tmp/one/vmm/kvm/deploy" ]; then
> /var/tmp/one/vmm/kvm/deploy /srv/cloud/one/var//10/images/deployment.2 kvm02
> 10 kvm02; else                              exit 42; fi'
> Tue Oct 18 11:14:53 2011 [VMM][D]: Message received: LOG I 10 error: Failed
> to create domain from /srv/cloud/one/var//10/images/deployment.2
> Tue Oct 18 11:14:53 2011 [VMM][D]: Message received: LOG I 10 error: Unknown
> failure
> Tue Oct 18 11:14:53 2011 [VMM][D]: Message received: LOG E 10 Could not
> create domain from /srv/cloud/one/var//10/images/deployment.2
> Tue Oct 18 11:14:53 2011 [VMM][D]: Message received: LOG I 10 ExitCode: 255
> Tue Oct 18 11:14:53 2011 [VMM][D]: Message received: DEPLOY FAILURE 10 Could
> not create domain from /srv/cloud/one/var//10/images/deployment.2
>
> vm.log is as follows:
>
> Tue Oct 18 10:50:42 2011 [DiM][I]: New VM state is ACTIVE.
> Tue Oct 18 10:50:43 2011 [LCM][I]: New VM state is PROLOG.
> Tue Oct 18 10:50:43 2011 [VM][I]: Virtual Machine has no context
> Tue Oct 18 10:56:09 2011 [TM][D]: tm_clone.sh:
> opennebula:/srv/cloud/images/rhel-server-5.4-x86_64-dvd.iso
> kvm02:/srv/cloud/one/var//10/images/disk.0
> Tue Oct 18 10:56:09 2011 [TM][D]: tm_clone.sh: DST:
> /srv/cloud/one/var//10/images/disk.0
> Tue Oct 18 10:56:09 2011 [TM][I]: tm_clone.sh: Creating directory
> /srv/cloud/one/var//10/images
> Tue Oct 18 10:56:09 2011 [TM][I]: tm_clone.sh: Executed "mkdir -p
> /srv/cloud/one/var//10/images".
> Tue Oct 18 10:56:09 2011 [TM][I]: tm_clone.sh: Executed "chmod a+w
> /srv/cloud/one/var//10/images".
> Tue Oct 18 10:56:09 2011 [TM][I]: tm_clone.sh: Cloning
> /srv/cloud/images/rhel-server-5.4-x86_64-dvd.iso
> Tue Oct 18 10:56:09 2011 [TM][I]: tm_clone.sh: Executed "cp -r
> /srv/cloud/images/rhel-server-5.4-x86_64-dvd.iso
> /srv/cloud/one/var//10/images/disk.0".
> Tue Oct 18 10:56:09 2011 [TM][I]: tm_clone.sh: Executed "chmod a+rw
> /srv/cloud/one/var//10/images/disk.0".
> Tue Oct 18 10:56:09 2011 [TM][I]: ExitCode: 0
> Tue Oct 18 11:01:13 2011 [TM][D]: tm_clone.sh:
> opennebula:/srv/cloud/one/var/images/c38ebcb9c8b7d7f658feb6e9e62653e0
> kvm02:/srv/cloud/one/var//10/images/disk.

Re: [one-users] cancel live migration in progress

2011-10-18 Thread Javier Fontan
Unfortunately I don't know of any way to stop or recover the failed
migration with OpenNebula or manually.

Rebooting a physical host will basically destroy the running VMs and
most probably the disks will be corrupted.

On Tue, Oct 18, 2011 at 2:34 PM, samuel  wrote:
> I add more information so you can follow the steps taken and the final
> issue.
>
> 1)segfault on node 2:
> [620617.517308] kvm[28860]: segfault at 420 ip 00413714 sp
> 7fff9136ea70 error 4 in qemu-system-x86_64[40+335000]
>
> VMs work OK
>
> 2)restart libvirt on node 2
> /init.d/libvirt-bin restart
>
> libvirt is able to check local VM:
> # virsh list
>  Id Nombre   Estado
> --
>   2 one-47   ejecutando
>   3 one-44   ejecutando
>
> 3)tried to live-migrate one-44 from node2 to node3 using the sunstone web
> interface
>
> vm.log:
> Tue Oct 18 11:00:31 2011 [LCM][I]: New VM state is MIGRATE
>
> oned.log:
> Tue Oct 18 11:00:31 2011 [DiM][D]: Live-migrating VM 44
> Tue Oct 18 11:00:31 2011 [ReM][D]: VirtualMachineInfo method invoked
>
> 4)the end situation is:
> one-44 is in MIGRATE state for opennebula (there's no timeout paremeter set
> for the virsh live-migrate so it will be there forever (?))
>
> root@node3:# virsh list
>  Id Nombre   Estado
> --
>
> root@node2:# virsh list
>  Id Nombre   Estado
> --
>   2 one-47   ejecutando
>   3 one-44   ejecutando
>
>
> /var/log/libvirt/qemu/one-44.log is empty in both nodes (node2 and node3).
>
> My question is:
>
> i)How can I stop the live migration from the open nebula view so it does not
> lose the whole picture of the cloud and it keeps consistency?
> ii)is it safe to restart node2 or node3?
>
> Thank you in advance for any hint on this issue.
>
> Samuel.
> On 18 October 2011 11:58, samuel  wrote:
>>
>> hi all,
>>
>> I'm having an issue with live migration.T here was a running instance on a
>> node that had a qemu segfault (i've noticed afterwards because the instances
>> were working).I've tried to live migrate the instance to another node
>> without problems but the instance remains in MIGRATE state "forever".
>> *is there any method to stope the live migration?
>> *if I restart the node with a qemu segfault, will the instances run ok
>> again? They have been running but the communication between opennebula and
>> KVM is broken so I'm not sure whether the cloud will keep consistency. I
>> think I read that if the name of the instance is the same and the node is
>> the same, opennebula will keep consistency.
>>
>> Can anyone help me, please?
>>
>> Thanks in advance,.
>> Samuel.
>>
>
>
> ___
> Users mailing list
> Users@lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>



-- 
Javier Fontán Muiños
Project Engineer
OpenNebula Toolkit | opennebula.org
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] OpenNbula 3.0 migration: problem with onedb

2011-10-18 Thread Javier Fontan
Can you tell me the packages needed to be able to compile/install the
failing gems? I already had rake and gcc for most of the gems but
probably some slipped through my fingers.

2011/10/18 Ruben Diez :
> We had used the /usr/share/one/install_gems script to install gems
>
> Never the less seems that some of them need the corresponded devel c
> library, and fails to install
>
> We now had install the gems one by one, and these errors appears...
>
> Now the onedb command runs
>
> Thanks a lot for your help
>
>
>
>
> Ruben Diez escribió:
>>
>> Thank you for your help
>>
>> After the modification you suggest, this is the output:
>>
>> oneadmin@onesrv04:/srv/cloud$ onedb upgrade -v
>> undefined method `fetch' for nil:NilClass
>> Database schema does not look to be created by OpenNebula: table user_pool
>> is missing or empty.
>>
>> Seems to fail to find a function Perhaps any library is needed??
>> We think all the ruby gems are installed, as the documentation explain
>>
>>
>>
>>
>> Carlos Martín Sánchez escribió:
>>>
>>> I don't see any other reasons why this could fail... Could you edit
>>> /usr/lib/one/ruby/onedb/onedb_backend.rb to output some more info?
>>>
>>> Just add the Exception message to the rescue clause in db_exists?
>>>
>>>    def db_exists?
>>>        begin
>>>            # User with ID 0 (oneadmin) always exists
>>>            @db.fetch("SELECT * FROM user_pool WHERE oid=0") { |row| }
>>>            return true
>>>        rescue Exception => e
>>>            puts e.message
>>>            return false
>>>        end
>>>    end
>>>
>>> Thank you
>>> --
>>> Carlos Martín, MSc
>>> Project Engineer
>>> OpenNebula - The Open Source Toolkit for Cloud Computing
>>> www.OpenNebula.org  | cmar...@opennebula.org
>>> 
>>>
>>>
>>> 2011/10/18 Ruben Diez mailto:rd...@cesga.es>>
>>>
>>>    Yes: it is populated:
>>>
>>>    mysql> select * from user_pool where oid=0;
>>>
>>>  +-+---+--+-+
>>>    | oid | user_name | password                                 |
>>>    enabled |
>>>
>>>  +-+---+--+-+
>>>    |   0 | oneadmin  | 8944aada99d6d0122494dd0ac8129db653bc1f4a |
>>>  1 |
>>>
>>>  +-+---+--+-+
>>>    1 row in set (0.00 sec)
>>>
>>>    When you put the "-p" option followed by a blank space you are
>>>    prompted for the password... in this case "opennebula" is the
>>>    database name, not the password...
>>>
>>>    We can't make onedb backup in the old machine because the onedb
>>>    command don't exist in OpenNebula 2.1...
>>>
>>>    Any way, the onedb backup command seems to be a wrapper of the
>>>    mysqldump command
>>>
>>>
>>>
>>>    Carlos Martín Sánchez escribió:
>>>
>>>        Hi,
>>>
>>>        Is the DB in the new machine correctly populated?
>>>        Can you manually perform a "select * from user_pool where
>>>        oid=0;" ?
>>>
>>>        I'm asking because the '-p' option of the mysql commands needs
>>>        the password right next to it, without any space; i.e.
>>>        '-popennebula' instead of '-p opennebula'
>>>
>>>
>>>        In case any other user is in a similar situation, you can use
>>>        the onedb command to move the DB to the new mysql server using
>>>        "onedb backup" and "onedb restore".
>>>
>>>        Regards.
>>>        --
>>>        Carlos Martín, MSc
>>>        Project Engineer
>>>        OpenNebula - The Open Source Toolkit for Cloud Computing
>>>        www.OpenNebula.org 
>>>         | cmar...@opennebula.org
>>>         >>        >
>>>
>>>
>>>
>>>        On Tue, Oct 18, 2011 at 12:35 PM, Ruben Diez >>         >>        >> wrote:
>>>
>>>           Hi:
>>>
>>>           We are attempt to migrate OpenNebula from 2.1.80 to 3.0
>>>
>>>           But the new 3.0 OpenNebula was installed in a new machine.
>>>
>>>           For database migration, we have followed these steps:
>>>
>>>           1- In the old machine, we made a dump of the database:
>>>
>>>           mysqldump -h localhost -u oneadmin -p opennebula
>>>           >opennebula_2_database.mysq
>>>
>>>           2- In the new machine, we create the oneadmin user, an empty
>>>           opennebula database and grant privileges to user oneadmin on
>>>           database opennebula:
>>>
>>>           mysql> create user 'oneadmin'@'localhost' identified by
>>>        'X';
>>>           mysql> create database opennebula;
>>>           mysql> grant all privileges on opennebula.* to
>>>        'oneadmin'@'localhost';
>>>
>>>           3- Now, in the new machine, we restore the 2.1 version
>>>        database:
>>>
>>>         

Re: [one-users] Sunstone issue

2011-10-18 Thread Faarooq Lowe

Hi Daniel,

Here is some additional information.

I started the sunstone-server once directly by referencing the ruby 
script and used strace


Here is output from that when I attempted to login using x509 credentials?

write(2, "131.225.80.86 - - [18/Oct/2011 1"..., 77131.225.80.86 - - 
[18/Oct/2011 14:39:50] "POST /login HTTP/1.1" 500 - 0.1351

) = 77
read(7, 0x7fff8c09ecc0, 16384)  = -1 EAGAIN (Resource 
temporarily unavailable)


On 10/18/11 11:51 AM, Daniel Molina wrote:

Hi,

On 18 October 2011 18:24, Faarooq Lowe > wrote:


We are running OpenNebula 3.0 with Sunstone.  I am able to use
command-line launch VMs and to see host, VMs, users, etc.

The sunstone server did launch successfully, however when I
attempt to login to I get the following message:  "OpenNebula is
not running"

The initial pages come up just fine.  We just are unable to log
into OpenNebula.  We are using x509 authentication.


Would you mind to send us the content of the following files: 
oned.conf (AUTH_MAD section), sunstone-server.conf, oned.log and 
sunstone.log; after a login request from sunstone?.


Regards

--
Daniel Molina
Project Engineer
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org  | @dmamolina


___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] OpenNbula 3.0 migration: problem with onedb

2011-10-18 Thread Steffen Neumann
Hi,

On Tue, 2011-10-18 at 16:41 +0200, Ruben Diez wrote:
> We had used the /usr/share/one/install_gems script to install gems
> Never the less seems that some of them need the corresponded devel c 
> library, and fails to install
Could you file a bug report at 
http://dev.opennebula.org/projects/opennebula/issues

so the developers can add checks to install_gems 
for successful compilation, and track once that's fixed ?

Yours,
Steffen

-- 
IPB HalleAG Massenspektrometrie & Bioinformatik
Dr. Steffen Neumann  http://www.IPB-Halle.DE
Weinberg 3   http://msbi.bic-gh.de
06120 Halle  Tel. +49 (0) 345 5582 - 1470
  +49 (0) 345 5582 - 0
sneumann(at)IPB-Halle.DE Fax. +49 (0) 345 5582 - 1409


___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] OpenNebula 3.0 RC1 NoVNC problems

2011-10-18 Thread Héctor Sanjuán
Hi,

sorry for the late answer, i missed this one.

So I think that the problem is that Sunstone is not using secure
websockets by default[1]. Therefore websocket connection is trying to
travel through port 80. Since you are tunneling only port 443, it is
impossible for noVNC to contact the proxy on the sunstone server host.

I'd say that either you tunnel port 80 connections as you do with 443,
or that you set up the websockify proxy and sunstone to work with secure
websockets. This could be primarily done this way:

1 - Modify line 232 of SunstoneServer.rb (lib/one/sunstone/models)

novnc_exec = "#{novnc_cmd} #{proxy_port} #{host}:#{vnc_port}"

to

novnc_exec = "#{novnc_cmd} --cert=CERT --key=KEY #{proxy_port}
#{host}:#{vnc_port}"

(include --key only if the key is separate from the cert)

* It's not very clear in the websockify docs but you may need to install
and symlink the ssl python module [1]

2 - Enable wss:// in client side of noVNC. Change line 1022 of vm-tab.js
(lib/one/sunstone/public/js/plugins)

'encrypt':  false,

to

'encrypt':  true,

I haven't had time to test this scenario though. I think it would be a
good thing to add better support for it. Ill try to set it up myself in
a few days and see if it works.

Héctor Sanjuán
OpenNebula Developer

[1] Here it says that it is needed for Python > 2.5
https://github.com/kanaka/websockify/blob/master/README.md
While here it says that only for Python < 2.5
https://github.com/kanaka/noVNC/wiki/Advanced-usage

El 27/09/11 22:24, Alberto Picón Couselo escribió:
> Hi, Hector.
> 
> Without changes, noVNC has began to work now for KVM VM instances. :O...
> 
> However, it seems to work only if we browse with Firefox/Chrome using
> internal IP address of Sunstone Server. If we use NAT forwarding of SSL
> port from the public IP to the SSL port of Lighttpd which connects
> locally to sunstone web server, we are able to manage OpenNebula site
> but noVNC client does not work.
> 
> Of course, we miss something, but can you please give me some clues to
> use noVNC from external/public side over SSL without using OpenVPN or
> similar?. Is this scenario supported?
> 
> Best Regards and thank you for your time,
> Alberto
> 
> El 27/09/2011 19:27, Héctor Sanjuán escribió:
>> Hi,
>>
>> your noVNC install and your sunstone-server.conf settings seem fine. I
>> cannot see any related problems arise in current one-3.0 branch either
>> in my tests.
>>
>> (Btw, the link you provided in your first message doesnt point to a
>> related thread)
>>
>> If you didn't yet, perhaps it helps to manually delete noVNC and
>> reinstall it (via install_novnc.sh). The folders you have to delete are:
>>
>> /usr/share/one/noVNC
>>
>> and
>>
>> /usr/lib/one/sunstone/public/vendor/noVNC
>>
>> Also, there are some common basic problems gathered here[1], have a look
>> just in case. Running the proxy manually and then trying to connect via
>> sunstone will cause some console output from it which maybe offers more
>> info.
>>
>> Hector
>>
>> [1]
>> http://wiki.opennebula.org/faq#vnc_console_access_in_sunstone_does_not_work_whats_the_problem
>>
>>
>> El 26/09/11 12:13, Alberto Picón Couselo escribió:
>>> Hi, Hector:
>>>
>>> Our sunstone-server.conf is as follows:
>>>
>>>   OpenNebula sever contact information
>>> :one_xmlrpc: http://localhost:2633/RPC2
>>>
>>> # Server Configuration
>>> :host: 127.0.0.1
>>> :port: 9869
>>>
>>> :auth: basic
>>>
>>> # VNC Configuration
>>> :vnc_proxy_base_port: 29876
>>> :novnc_path: /usr/share/one/noVNC
>>>
>>> We have installed noVNC using /usr/share/one/install_novnc.sh installer.
>>>
>>> The contents of /usr/share/one/noVNC are as follows:
>>>
>>> drwxrwxr-x 2 root root 4096 2011-09-24 20:51 debian
>>> drwxrwxr-x 2 root root 4096 2011-09-24 20:51 docs
>>> lrwxrwxrwx 1 root root   18 2011-09-24 20:51 favicon.ico -> 
>>> images/favicon.ico
>>> -rw-rw-r-- 1 root root   50 2011-09-24 20:51 .gitignore
>>> drwxrwxr-x 2 root root 4096 2011-09-24 20:51 images
>>> drwxrwxr-x 8 root root 4096 2011-09-24 20:54 kanaka-noVNC-832c744
>>> -rw-rw-r-- 1 root root 1212 2011-09-24 20:51 LICENSE.txt
>>> -rw-rw-r-- 1 root root 3994 2011-09-24 20:51 README.md
>>> drwxrwxr-x 2 root root 4096 2011-09-24 20:51 tests
>>> drwxrwxr-x 2 root root 4096 2011-09-25 20:31 utils
>>> -rw-rw-r-- 1 root root 4298 2011-09-24 20:51 vnc_auto.html
>>> -rw-rw-r-- 1 root root  859 2011-09-24 20:51 vnc.html
>>>
>>> And /usr/share/one/noVNC/utils contains wsproxy.py link to websockify:
>>>
>>> -rwxrwxr-x 1 root root   914 2011-09-24 20:51 img2js.py
>>> -rwxrwxr-x 1 root root  6678 2011-09-24 20:51 json2graph.py
>>> -rwxrwxr-x 1 root root  2820 2011-09-24 20:51 launch.sh
>>> -rw-rw-r-- 1 root root   153 2011-09-24 20:51 Makefile
>>> -rw-rw-r-- 1 root root   489 2011-09-24 20:51 README.md
>>> -rwxrwxr-x 1 root root   424 2011-09-24 20:51 rebind
>>> -rw-rw-r-- 1 root root  2878 2011-09-24 20:51 rebind.c
>>> -rwxrwxr-x 1 root root   911 2011-09-24 20:51 u2x11
>>> -rwxrwxr-x 1 root root  1496 2011-

Re: [one-users] Sunstone issue

2011-10-18 Thread Faarooq Lowe

AUTH_MAD section of oned.conf

AUTH_MAD = [
executable = "/usr/lib/one/mads/one_auth_mad",
#arguments = "--authz quota --authn x509,server"
#arguments = "--authn x509,server"
arguments = "--authn x509, server_auth"
]

sunstone-server.conf

# OpenNebula sever contact information
:one_xmlrpc: http://localhost:2633/RPC2

# Server Configuration
:host: 0.0.0.0
:port: 9869

:auth: x509

# VNC Configuration
:vnc_proxy_base_port: 29876
:novnc_path: /usr/share/one/noVNC

oned.log

Tue Oct 18 11:59:34 2011 [ReM][D]: HostPoolInfo method invoked
Tue Oct 18 11:59:34 2011 [AuM][D]: Message received: LOG I 1103 ExitCode: 0

Tue Oct 18 11:59:34 2011 [AuM][I]: ExitCode: 0
Tue Oct 18 11:59:34 2011 [AuM][D]: Message received: AUTHENTICATE 
SUCCESS 1103 -


Tue Oct 18 11:59:36 2011 [ReM][D]: VirtualMachinePoolInfo method invoked
Tue Oct 18 11:59:36 2011 [AuM][D]: Message received: LOG I 1104 ExitCode: 0

Tue Oct 18 11:59:36 2011 [AuM][I]: ExitCode: 0
Tue Oct 18 11:59:36 2011 [AuM][D]: Message received: AUTHENTICATE 
SUCCESS 1104 -


Tue Oct 18 11:59:38 2011 [ReM][D]: AclInfo method invoked
Tue Oct 18 11:59:38 2011 [AuM][D]: Message received: LOG I 1105 ExitCode: 0

Tue Oct 18 11:59:38 2011 [AuM][I]: ExitCode: 0
Tue Oct 18 11:59:38 2011 [AuM][D]: Message received: AUTHENTICATE 
SUCCESS 1105 -


Tue Oct 18 11:59:44 2011 [ReM][D]: UserPoolInfo method invoked
Tue Oct 18 11:59:44 2011 [AuM][D]: Message received: LOG I 1106 ExitCode: 0

Tue Oct 18 11:59:44 2011 [AuM][I]: ExitCode: 0
Tue Oct 18 11:59:44 2011 [AuM][D]: Message received: AUTHENTICATE 
SUCCESS 1106 -



sunstone.log

131.225.169.96 - - [18/Oct/2011 11:59:41] "GET / HTTP/1.1" 200 1384 0.0006
131.225.169.96 - - [18/Oct/2011 11:59:42] "GET /css/login.css HTTP/1.1" 
304 - 0.0004
131.225.169.96 - - [18/Oct/2011 11:59:42] "GET 
/vendor/jQuery/jquery-1.4.4.min.js HTTP/1.1" 304 - 0.0004
131.225.169.96 - - [18/Oct/2011 11:59:42] "GET /js/opennebula.js 
HTTP/1.1" 304 - 0.0004
131.225.169.96 - - [18/Oct/2011 11:59:42] "GET /js/login.js HTTP/1.1" 
304 - 0.0003
131.225.169.96 - - [18/Oct/2011 11:59:42] "GET 
/images/opennebula-sunstone-big.png HTTP/1.1" 304 - 0.0004
131.225.169.96 - - [18/Oct/2011 11:59:42] "GET /images/panel_short.png 
HTTP/1.1" 304 - 0.0003
131.225.169.96 - - [18/Oct/2011 11:59:42] "GET /images/login.png 
HTTP/1.1" 304 - 0.0003
131.225.169.96 - - [18/Oct/2011 11:59:43] "GET /images/login_over.png 
HTTP/1.1" 304 - 0.0004
131.225.169.96 - - [18/Oct/2011 11:59:44] "POST /login HTTP/1.1" 500 50 
0.0731







On 10/18/11 11:51 AM, Daniel Molina wrote:

Hi,

On 18 October 2011 18:24, Faarooq Lowe > wrote:


We are running OpenNebula 3.0 with Sunstone.  I am able to use
command-line launch VMs and to see host, VMs, users, etc.

The sunstone server did launch successfully, however when I
attempt to login to I get the following message:  "OpenNebula is
not running"

The initial pages come up just fine.  We just are unable to log
into OpenNebula.  We are using x509 authentication.


Would you mind to send us the content of the following files: 
oned.conf (AUTH_MAD section), sunstone-server.conf, oned.log and 
sunstone.log; after a login request from sunstone?.


Regards

--
Daniel Molina
Project Engineer
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org  | @dmamolina


___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Sunstone issue

2011-10-18 Thread Daniel Molina
Hi,

On 18 October 2011 18:24, Faarooq Lowe  wrote:

> We are running OpenNebula 3.0 with Sunstone.  I am able to use command-line
> launch VMs and to see host, VMs, users, etc.
>
> The sunstone server did launch successfully, however when I attempt to
> login to I get the following message:  "OpenNebula is not running"
>
> The initial pages come up just fine.  We just are unable to log into
> OpenNebula.  We are using x509 authentication.
>

Would you mind to send us the content of the following files: oned.conf
(AUTH_MAD section), sunstone-server.conf, oned.log and sunstone.log; after a
login request from sunstone?.

Regards

-- 
Daniel Molina
Project Engineer
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org | @dmamolina
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] sunstone and novnc

2011-10-18 Thread Héctor Sanjuán
Hi,

Just to make sure, please check every item here and report back:

http://wiki.opennebula.org/faq#vnc_console_access_in_sunstone_does_not_work_whats_the_problem

Héctor Sanjuán
OpenNebula Developer

El 17/10/11 18:42, Olivier Sallou escribió:
> Just to give some more info:
> 
> manual execution looks fine and icon VNC is highlighten in sunstone.
> 
> 
> Manual execution
> 
> /var/log/one$ python /usr/share/one/noVNC/utils/wsproxy.py 35903
> genokvm1:6027
> WebSocket server settings:
>   - Listen on :35903
>   - Flash security policy server
>   - No SSL/TLS support (no cert file)
>   - proxying from :35903 to genokvm1:6027
> 
> 
> Le 10/17/11 6:34 PM, Olivier Sallou a écrit :
>> Hi,
>> I am trying to use the VNC access with noVNC on sunstone (one 3.0)
>>
>> I have an error: Failed to connect to server
>>
>> Any idea on how I can debug?
>>
>> Thanks
>>
>> Olviier
>>
> 
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] KVM Hypervisor Failed Image Start

2011-10-18 Thread Ryan Aydelott
I am having an issue with bootstrapping an image into a KVM hypervisor, I have 
had success with Xen prior to this, but now trying KVM. Some basic info:

OpenNebula 3.0
libvirtd on KVM (Centos 5.6) is 0.8.2
Shared NFS Filesystem
oneadmin account adding to KVM/QEMU groups

onehost successfully monitored:

Tue Oct 18 11:23:11 2011 [ReM][D]: HostPoolInfo method invoked
  ID NAME   RVM   TCPU   FCPU   ACPU   TMEM   FMEM   AMEM   STAT
   0 kvm010400397400  31.4G17G  31.4G on
   6 kvm020400400400  31.4G  30.8G  31.4G on

I can successfully start KVM hosts via Virsh using the command line. However 
when I attempt to do so using OpenNebula it fails. It may be important to note 
that in /var/log/libvirt/qemu where I would normally see log files for 
one-5.log, one-6.log, etc - no file is created for this instance. This leads me 
to believe that kvm is not even being called on the machine.

I'm hoping this is just a really dumb beginners mistake. If anyone has any 
suggestions - let me know. Thanks!


Information on hypervisor for oned.log is as follows:

Tue Oct 18 11:14:52 2011 [TM][D]: Message received: LOG D 10 tm_clone.sh: 
opennebula:/srv/cloud/one/var/images/c38ebcb9c8b7d7f658feb6e9e62653e0 
kvm02:/srv/cloud/one/var//10/images/disk.1

Tue Oct 18 11:14:52 2011 [TM][D]: Message received: LOG D 10 tm_clone.sh: DST: 
/srv/cloud/one/var//10/images/disk.1

Tue Oct 18 11:14:52 2011 [TM][D]: Message received: LOG I 10 tm_clone.sh: 
Creating directory /srv/cloud/one/var//10/images

Tue Oct 18 11:14:52 2011 [TM][D]: Message received: LOG I 10 tm_clone.sh: 
Executed "mkdir -p /srv/cloud/one/var//10/images".

Tue Oct 18 11:14:52 2011 [TM][D]: Message received: LOG I 10 tm_clone.sh: 
Executed "chmod a+w /srv/cloud/one/var//10/images".

Tue Oct 18 11:14:52 2011 [TM][D]: Message received: LOG I 10 tm_clone.sh: 
Cloning /srv/cloud/one/var/images/c38ebcb9c8b7d7f658feb6e9e62653e0

Tue Oct 18 11:14:52 2011 [TM][D]: Message received: LOG I 10 tm_clone.sh: 
Executed "cp -r /srv/cloud/one/var/images/c38ebcb9c8b7d7f658feb6e9e62653e0 
/srv/cloud/one/var//10/images/disk.1".

Tue Oct 18 11:14:52 2011 [TM][D]: Message received: LOG I 10 tm_clone.sh: 
Executed "chmod a+rw /srv/cloud/one/var//10/images/disk.1".

Tue Oct 18 11:14:52 2011 [TM][D]: Message received: LOG I 10 ExitCode: 0

Tue Oct 18 11:14:52 2011 [TM][D]: Message received: TRANSFER SUCCESS 10 -

Tue Oct 18 11:14:53 2011 [VMM][D]: Message received: LOG I 10 Command execution 
fail: 'if [ -x "/var/tmp/one/vmm/kvm/deploy" ]; then 
/var/tmp/one/vmm/kvm/deploy /srv/cloud/one/var//10/images/deployment.2 kvm02 10 
kvm02; else  exit 42; fi'

Tue Oct 18 11:14:53 2011 [VMM][D]: Message received: LOG I 10 error: Failed to 
create domain from /srv/cloud/one/var//10/images/deployment.2

Tue Oct 18 11:14:53 2011 [VMM][D]: Message received: LOG I 10 error: Unknown 
failure

Tue Oct 18 11:14:53 2011 [VMM][D]: Message received: LOG E 10 Could not create 
domain from /srv/cloud/one/var//10/images/deployment.2

Tue Oct 18 11:14:53 2011 [VMM][D]: Message received: LOG I 10 ExitCode: 255

Tue Oct 18 11:14:53 2011 [VMM][D]: Message received: DEPLOY FAILURE 10 Could 
not create domain from /srv/cloud/one/var//10/images/deployment.2


vm.log is as follows:

Tue Oct 18 10:50:42 2011 [DiM][I]: New VM state is ACTIVE.
Tue Oct 18 10:50:43 2011 [LCM][I]: New VM state is PROLOG.
Tue Oct 18 10:50:43 2011 [VM][I]: Virtual Machine has no context
Tue Oct 18 10:56:09 2011 [TM][D]: tm_clone.sh: 
opennebula:/srv/cloud/images/rhel-server-5.4-x86_64-dvd.iso 
kvm02:/srv/cloud/one/var//10/images/disk.0
Tue Oct 18 10:56:09 2011 [TM][D]: tm_clone.sh: DST: 
/srv/cloud/one/var//10/images/disk.0
Tue Oct 18 10:56:09 2011 [TM][I]: tm_clone.sh: Creating directory 
/srv/cloud/one/var//10/images
Tue Oct 18 10:56:09 2011 [TM][I]: tm_clone.sh: Executed "mkdir -p 
/srv/cloud/one/var//10/images".
Tue Oct 18 10:56:09 2011 [TM][I]: tm_clone.sh: Executed "chmod a+w 
/srv/cloud/one/var//10/images".
Tue Oct 18 10:56:09 2011 [TM][I]: tm_clone.sh: Cloning 
/srv/cloud/images/rhel-server-5.4-x86_64-dvd.iso
Tue Oct 18 10:56:09 2011 [TM][I]: tm_clone.sh: Executed "cp -r 
/srv/cloud/images/rhel-server-5.4-x86_64-dvd.iso 
/srv/cloud/one/var//10/images/disk.0".
Tue Oct 18 10:56:09 2011 [TM][I]: tm_clone.sh: Executed "chmod a+rw 
/srv/cloud/one/var//10/images/disk.0".
Tue Oct 18 10:56:09 2011 [TM][I]: ExitCode: 0
Tue Oct 18 11:01:13 2011 [TM][D]: tm_clone.sh: 
opennebula:/srv/cloud/one/var/images/c38ebcb9c8b7d7f658feb6e9e62653e0 
kvm02:/srv/cloud/one/var//10/images/disk.1
Tue Oct 18 11:01:13 2011 [TM][D]: tm_clone.sh: DST: 
/srv/cloud/one/var//10/images/disk.1
Tue Oct 18 11:01:13 2011 [TM][I]: tm_clone.sh: Creating directory 
/srv/cloud/one/var//10/images
Tue Oct 18 11:01:13 2011 [TM][I]: tm_clone.sh: Executed "mkdir -p 
/srv/cloud/one/var//10/images".
Tue Oct 18 11:01:13 2011 [TM][I]: tm_clone.sh: Executed "chmod a+w 
/srv/cloud/one/var

[one-users] Sunstone issue

2011-10-18 Thread Faarooq Lowe

All,

We are running OpenNebula 3.0 with Sunstone.  I am able to use 
command-line launch VMs and to see host, VMs, users, etc.


The sunstone server did launch successfully, however when I attempt to 
login to I get the following message:  "OpenNebula is not running"


The initial pages come up just fine.  We just are unable to log into 
OpenNebula.  We are using x509 authentication.



___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] OpenNbula 3.0 migration: problem with onedb

2011-10-18 Thread Ruben Diez

We had used the /usr/share/one/install_gems script to install gems

Never the less seems that some of them need the corresponded devel c 
library, and fails to install


We now had install the gems one by one, and these errors appears...

Now the onedb command runs

Thanks a lot for your help




Ruben Diez escribió:

Thank you for your help

After the modification you suggest, this is the output:

oneadmin@onesrv04:/srv/cloud$ onedb upgrade -v
undefined method `fetch' for nil:NilClass
Database schema does not look to be created by OpenNebula: table 
user_pool is missing or empty.


Seems to fail to find a function Perhaps any library is needed??
We think all the ruby gems are installed, as the documentation 
explain





Carlos Martín Sánchez escribió:
I don't see any other reasons why this could fail... Could you edit 
/usr/lib/one/ruby/onedb/onedb_backend.rb to output some more info?


Just add the Exception message to the rescue clause in db_exists?

def db_exists?
begin
# User with ID 0 (oneadmin) always exists
@db.fetch("SELECT * FROM user_pool WHERE oid=0") { |row| }
return true
rescue Exception => e
puts e.message
return false
end
end

Thank you
--
Carlos Martín, MSc
Project Engineer
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org  | 
cmar...@opennebula.org 



2011/10/18 Ruben Diez mailto:rd...@cesga.es>>

Yes: it is populated:

mysql> select * from user_pool where oid=0;

+-+---+--+-+

| oid | user_name | password |
enabled |

+-+---+--+-+
|   0 | oneadmin  | 8944aada99d6d0122494dd0ac8129db653bc1f4a |
  1 |

+-+---+--+-+

1 row in set (0.00 sec)

When you put the "-p" option followed by a blank space you are
prompted for the password... in this case "opennebula" is the
database name, not the password...

We can't make onedb backup in the old machine because the onedb
command don't exist in OpenNebula 2.1...

Any way, the onedb backup command seems to be a wrapper of the
mysqldump command



Carlos Martín Sánchez escribió:

Hi,

Is the DB in the new machine correctly populated?
Can you manually perform a "select * from user_pool where
oid=0;" ?

I'm asking because the '-p' option of the mysql commands needs
the password right next to it, without any space; i.e.
'-popennebula' instead of '-p opennebula'


In case any other user is in a similar situation, you can use
the onedb command to move the DB to the new mysql server using
"onedb backup" and "onedb restore".

Regards.
--
Carlos Martín, MSc
Project Engineer
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org 
 | cmar...@opennebula.org
 >



On Tue, Oct 18, 2011 at 12:35 PM, Ruben Diez mailto:rd...@cesga.es> >> wrote:

   Hi:

   We are attempt to migrate OpenNebula from 2.1.80 to 3.0

   But the new 3.0 OpenNebula was installed in a new machine.

   For database migration, we have followed these steps:

   1- In the old machine, we made a dump of the database:

   mysqldump -h localhost -u oneadmin -p opennebula
   >opennebula_2_database.mysq

   2- In the new machine, we create the oneadmin user, an empty
   opennebula database and grant privileges to user oneadmin on
   database opennebula:

   mysql> create user 'oneadmin'@'localhost' identified by
'X';
   mysql> create database opennebula;
   mysql> grant all privileges on opennebula.* to
'oneadmin'@'localhost';

   3- Now, in the new machine, we restore the 2.1 version
database:

   mysql -h localhost -u oneadmin -p opennebula
  #oneadmin@onesrv04:/srv/cloud$ onedb upgrade -v
  Database schema does not look to be

created by
   OpenNebula: table user_pool is missing or empty.


   We attempt to avoid oned.conf file, but also fails:

   #oneadmin@onesrv04:/srv/cloud$ onedb upgrade -v  -u 
oneadmin -d

   opennebula   MySQL Password:
   MySQL option DBNAME is needed

   #oneadmin@onesrv04:/srv/cloud$ onedb upgrade -v  -u root -d
opennebula
   MySQL

Re: [one-users] OpenNbula 3.0 migration: problem with onedb

2011-10-18 Thread Steffen Neumann
On Tue, 2011-10-18 at 16:00 +0200, Ruben Diez wrote:
> Seems to fail to find a function Perhaps any library is needed??
> We think all the ruby gems are installed, as the documentation explain

I had exactly the same problem with the SQLite DB,
when upgrading from 2.1 -> 3.0, and it was missing 
a gem for SQLite. Sure you have all *MySQL* prerequisites ?

Yours,
Steffen

-- 
IPB HalleAG Massenspektrometrie & Bioinformatik
Dr. Steffen Neumann  http://www.IPB-Halle.DE
Weinberg 3   http://msbi.bic-gh.de
06120 Halle  Tel. +49 (0) 345 5582 - 1470
  +49 (0) 345 5582 - 0
sneumann(at)IPB-Halle.DE Fax. +49 (0) 345 5582 - 1409


___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] OpenNbula 3.0 migration: problem with onedb

2011-10-18 Thread Ruben Diez

Thank you for your help

After the modification you suggest, this is the output:

oneadmin@onesrv04:/srv/cloud$ onedb upgrade -v
undefined method `fetch' for nil:NilClass
Database schema does not look to be created by OpenNebula: table 
user_pool is missing or empty.


Seems to fail to find a function Perhaps any library is needed??
We think all the ruby gems are installed, as the documentation explain




Carlos Martín Sánchez escribió:
I don't see any other reasons why this could fail... Could you edit 
/usr/lib/one/ruby/onedb/onedb_backend.rb to output some more info?


Just add the Exception message to the rescue clause in db_exists?

def db_exists?
begin
# User with ID 0 (oneadmin) always exists
@db.fetch("SELECT * FROM user_pool WHERE oid=0") { |row| }
return true
rescue Exception => e
puts e.message
return false
end
end

Thank you
--
Carlos Martín, MSc
Project Engineer
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org 
 | cmar...@opennebula.org 




2011/10/18 Ruben Diez mailto:rd...@cesga.es>>

Yes: it is populated:

mysql> select * from user_pool where oid=0;
+-+---+--+-+
| oid | user_name | password |
enabled |
+-+---+--+-+
|   0 | oneadmin  | 8944aada99d6d0122494dd0ac8129db653bc1f4a |
  1 |

+-+---+--+-+
1 row in set (0.00 sec)

When you put the "-p" option followed by a blank space you are
prompted for the password... in this case "opennebula" is the
database name, not the password...

We can't make onedb backup in the old machine because the onedb
command don't exist in OpenNebula 2.1...

Any way, the onedb backup command seems to be a wrapper of the
mysqldump command



Carlos Martín Sánchez escribió:

Hi,

Is the DB in the new machine correctly populated?
Can you manually perform a "select * from user_pool where
oid=0;" ?

I'm asking because the '-p' option of the mysql commands needs
the password right next to it, without any space; i.e.
'-popennebula' instead of '-p opennebula'


In case any other user is in a similar situation, you can use
the onedb command to move the DB to the new mysql server using
"onedb backup" and "onedb restore".

Regards.
--
Carlos Martín, MSc
Project Engineer
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org 
 | cmar...@opennebula.org
 >



On Tue, Oct 18, 2011 at 12:35 PM, Ruben Diez mailto:rd...@cesga.es> >> wrote:

   Hi:

   We are attempt to migrate OpenNebula from 2.1.80 to 3.0

   But the new 3.0 OpenNebula was installed in a new machine.

   For database migration, we have followed these steps:

   1- In the old machine, we made a dump of the database:

   mysqldump -h localhost -u oneadmin -p opennebula
   >opennebula_2_database.mysq

   2- In the new machine, we create the oneadmin user, an empty
   opennebula database and grant privileges to user oneadmin on
   database opennebula:

   mysql> create user 'oneadmin'@'localhost' identified by
'X';
   mysql> create database opennebula;
   mysql> grant all privileges on opennebula.* to
'oneadmin'@'localhost';

   3- Now, in the new machine, we restore the 2.1 version
database:

   mysql -h localhost -u oneadmin -p opennebula
  #oneadmin@onesrv04:/srv/cloud$ onedb upgrade -v
  Database schema does not look to be

created by
   OpenNebula: table user_pool is missing or empty.


   We attempt to avoid oned.conf file, but also fails:

   #oneadmin@onesrv04:/srv/cloud$ onedb upgrade -v  -u oneadmin -d
   opennebula   MySQL Password:
   MySQL option DBNAME is needed

   #oneadmin@onesrv04:/srv/cloud$ onedb upgrade -v  -u root -d
opennebula
   MySQL Password:
   MySQL option DBNAME is needed

   #oneadmin@onesrv04:/srv/cloud$ onedb upgrade -v -P 3306 -S
   localhost -u oneadmin -d opennebula
   MySQL Password:
   MySQL option DBNAME is needed


   Any ideas about why the database migration fails??

   Regards

   _

Re: [one-users] cancel live migration in progress

2011-10-18 Thread samuel
I add more information so you can follow the steps taken and the final
issue.

1)segfault on node 2:
[620617.517308] kvm[28860]: segfault at 420 ip 00413714 sp
7fff9136ea70 error 4 in qemu-system-x86_64[40+335000]

VMs work OK

2)restart libvirt on node 2
/init.d/libvirt-bin restart

libvirt is able to check local VM:
# virsh list
 Id Nombre   Estado
--
  2 one-47   ejecutando
  3 one-44   ejecutando

3)tried to live-migrate one-44 from node2 to node3 using the sunstone web
interface

vm.log:
Tue Oct 18 11:00:31 2011 [LCM][I]: New VM state is MIGRATE

oned.log:
Tue Oct 18 11:00:31 2011 [DiM][D]: Live-migrating VM 44
Tue Oct 18 11:00:31 2011 [ReM][D]: VirtualMachineInfo method invoked

4)the end situation is:
one-44 is in MIGRATE state for opennebula (there's no timeout paremeter set
for the virsh live-migrate so it will be there forever (?))

root@node3:# virsh list
 Id Nombre   Estado
--

root@node2:# virsh list
 Id Nombre   Estado
--
  2 one-47   ejecutando
  3 one-44   ejecutando


/var/log/libvirt/qemu/one-44.log is empty in both nodes (node2 and node3).

My question is:

i)How can I stop the live migration from the open nebula view so it does not
lose the whole picture of the cloud and it keeps consistency?
ii)is it safe to restart node2 or node3?

Thank you in advance for any hint on this issue.

Samuel.
On 18 October 2011 11:58, samuel  wrote:

> hi all,
>
> I'm having an issue with live migration.T here was a running instance on a
> node that had a qemu segfault (i've noticed afterwards because the instances
> were working).I've tried to live migrate the instance to another node
> without problems but the instance remains in MIGRATE state "forever".
> *is there any method to stope the live migration?
> *if I restart the node with a qemu segfault, will the instances run ok
> again? They have been running but the communication between opennebula and
> KVM is broken so I'm not sure whether the cloud will keep consistency. I
> think I read that if the name of the instance is the same and the node is
> the same, opennebula will keep consistency.
>
> Can anyone help me, please?
>
> Thanks in advance,.
> Samuel.
>
>
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] OpenNbula 3.0 migration: problem with onedb

2011-10-18 Thread Carlos Martín Sánchez
I don't see any other reasons why this could fail... Could you edit
/usr/lib/one/ruby/onedb/onedb_backend.rb to output some more info?

Just add the Exception message to the rescue clause in db_exists?

def db_exists?
begin
# User with ID 0 (oneadmin) always exists
@db.fetch("SELECT * FROM user_pool WHERE oid=0") { |row| }
return true
rescue Exception => e
puts e.message
return false
end
end

Thank you
--
Carlos Martín, MSc
Project Engineer
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org  | cmar...@opennebula.org


2011/10/18 Ruben Diez 

> Yes: it is populated:
>
> mysql> select * from user_pool where oid=0;
> +-+---+---**--**
> -+-+
> | oid | user_name | password | enabled |
> +-+---+---**--**
> -+-+
> |   0 | oneadmin  | 8944aada99d6d0122494dd0ac8129d**b653bc1f4a |   1 |
> +-+---+---**--**
> -+-+
> 1 row in set (0.00 sec)
>
> When you put the "-p" option followed by a blank space you are prompted for
> the password... in this case "opennebula" is the database name, not the
> password...
>
> We can't make onedb backup in the old machine because the onedb command
> don't exist in OpenNebula 2.1...
>
> Any way, the onedb backup command seems to be a wrapper of the mysqldump
> command
>
>
>
> Carlos Martín Sánchez escribió:
>
>> Hi,
>>
>> Is the DB in the new machine correctly populated?
>> Can you manually perform a "select * from user_pool where oid=0;" ?
>>
>> I'm asking because the '-p' option of the mysql commands needs the
>> password right next to it, without any space; i.e. '-popennebula' instead of
>> '-p opennebula'
>>
>>
>> In case any other user is in a similar situation, you can use the onedb
>> command to move the DB to the new mysql server using "onedb backup" and
>> "onedb restore".
>>
>> Regards.
>> --
>> Carlos Martín, MSc
>> Project Engineer
>> OpenNebula - The Open Source Toolkit for Cloud Computing
>> www.OpenNebula.org  | 
>> cmar...@opennebula.org> cmar...@opennebula.org**>
>>
>>
>>
>> On Tue, Oct 18, 2011 at 12:35 PM, Ruben Diez > rd...@cesga.es>> wrote:
>>
>>Hi:
>>
>>We are attempt to migrate OpenNebula from 2.1.80 to 3.0
>>
>>But the new 3.0 OpenNebula was installed in a new machine.
>>
>>For database migration, we have followed these steps:
>>
>>1- In the old machine, we made a dump of the database:
>>
>>mysqldump -h localhost -u oneadmin -p opennebula
>>>opennebula_2_database.mysq
>>
>>2- In the new machine, we create the oneadmin user, an empty
>>opennebula database and grant privileges to user oneadmin on
>>database opennebula:
>>
>>mysql> create user 'oneadmin'@'localhost' identified by 'X';
>>mysql> create database opennebula;
>>mysql> grant all privileges on opennebula.* to 'oneadmin'@'localhost';
>>
>>3- Now, in the new machine, we restore the 2.1 version database:
>>
>>mysql -h localhost -u oneadmin -p opennebula
>>>
>>4- The configuration of the database is set in the oned.conf file:
>>
>>DB = [ backend = "mysql",
>>  server  = "localhost",
>>  port= 0,
>>  user= "oneadmin",
>>  passwd  = "X",
>>  db_name = "opennebula" ]
>>
>>5- Now, we attempt the database conversion: but it fails:
>>
>>#oneadmin@onesrv04:/srv/cloud$ onedb upgrade -v
>> Database schema does not look to be created by
>>OpenNebula: table user_pool is missing or empty.
>>
>>
>>We attempt to avoid oned.conf file, but also fails:
>>
>>#oneadmin@onesrv04:/srv/cloud$ onedb upgrade -v  -u oneadmin -d
>>opennebula   MySQL Password:
>>MySQL option DBNAME is needed
>>
>>#oneadmin@onesrv04:/srv/cloud$ onedb upgrade -v  -u root -d opennebula
>>MySQL Password:
>>MySQL option DBNAME is needed
>>
>>#oneadmin@onesrv04:/srv/cloud$ onedb upgrade -v -P 3306 -S
>>localhost -u oneadmin -d opennebula
>>MySQL Password:
>>MySQL option DBNAME is needed
>>
>>
>>Any ideas about why the database migration fails??
>>
>>Regards
>>
>>__**_
>>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] OpenNbula 3.0 migration: problem with onedb

2011-10-18 Thread Ruben Diez

Yes: it is populated:

mysql> select * from user_pool where oid=0;
+-+---+--+-+
| oid | user_name | password | enabled |
+-+---+--+-+
|   0 | oneadmin  | 8944aada99d6d0122494dd0ac8129db653bc1f4a |   1 |
+-+---+--+-+
1 row in set (0.00 sec)

When you put the "-p" option followed by a blank space you are prompted 
for the password... in this case "opennebula" is the database name, not 
the password...


We can't make onedb backup in the old machine because the onedb command 
don't exist in OpenNebula 2.1...


Any way, the onedb backup command seems to be a wrapper of the mysqldump 
command




Carlos Martín Sánchez escribió:

Hi,

Is the DB in the new machine correctly populated?
Can you manually perform a "select * from user_pool where oid=0;" ?

I'm asking because the '-p' option of the mysql commands needs the 
password right next to it, without any space; i.e. '-popennebula' 
instead of '-p opennebula'



In case any other user is in a similar situation, you can use the 
onedb command to move the DB to the new mysql server using "onedb 
backup" and "onedb restore".


Regards.
--
Carlos Martín, MSc
Project Engineer
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org 
 | cmar...@opennebula.org 




On Tue, Oct 18, 2011 at 12:35 PM, Ruben Diez > wrote:


Hi:

We are attempt to migrate OpenNebula from 2.1.80 to 3.0

But the new 3.0 OpenNebula was installed in a new machine.

For database migration, we have followed these steps:

1- In the old machine, we made a dump of the database:

mysqldump -h localhost -u oneadmin -p opennebula
>opennebula_2_database.mysq

2- In the new machine, we create the oneadmin user, an empty
opennebula database and grant privileges to user oneadmin on
database opennebula:

mysql> create user 'oneadmin'@'localhost' identified by 'X';
mysql> create database opennebula;
mysql> grant all privileges on opennebula.* to 'oneadmin'@'localhost';

3- Now, in the new machine, we restore the 2.1 version database:

mysql -h localhost -u oneadmin -p opennebula
#oneadmin@onesrv04:/srv/cloud$ onedb upgrade -v  
 Database schema does not look to be created by

OpenNebula: table user_pool is missing or empty.


We attempt to avoid oned.conf file, but also fails:

#oneadmin@onesrv04:/srv/cloud$ onedb upgrade -v  -u oneadmin -d
opennebula   MySQL Password:
MySQL option DBNAME is needed

#oneadmin@onesrv04:/srv/cloud$ onedb upgrade -v  -u root -d opennebula
MySQL Password:
MySQL option DBNAME is needed

#oneadmin@onesrv04:/srv/cloud$ onedb upgrade -v -P 3306 -S
localhost -u oneadmin -d opennebula
MySQL Password:
MySQL option DBNAME is needed


Any ideas about why the database migration fails??

Regards

___
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] OpenNbula 3.0 migration: problem with onedb

2011-10-18 Thread Ruben Diez

Yes: it is populated:

mysql> select * from user_pool where oid=0;
+-+---+--+-+
| oid | user_name | password | enabled |
+-+---+--+-+
|   0 | oneadmin  | 8944aada99d6d0122494dd0ac8129db653bc1f4a |   1 |
+-+---+--+-+
1 row in set (0.00 sec)


Carlos Martín Sánchez escribió:

Hi,

Is the DB in the new machine correctly populated?
Can you manually perform a "select * from user_pool where oid=0;" ?

I'm asking because the '-p' option of the mysql commands needs the 
password right next to it, without any space; i.e. '-popennebula' 
instead of '-p opennebula'



In case any other user is in a similar situation, you can use the 
onedb command to move the DB to the new mysql server using "onedb 
backup" and "onedb restore".


Regards.
--
Carlos Martín, MSc
Project Engineer
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org 
 | cmar...@opennebula.org 




On Tue, Oct 18, 2011 at 12:35 PM, Ruben Diez > wrote:


Hi:

We are attempt to migrate OpenNebula from 2.1.80 to 3.0

But the new 3.0 OpenNebula was installed in a new machine.

For database migration, we have followed these steps:

1- In the old machine, we made a dump of the database:

mysqldump -h localhost -u oneadmin -p opennebula
>opennebula_2_database.mysq

2- In the new machine, we create the oneadmin user, an empty
opennebula database and grant privileges to user oneadmin on
database opennebula:

mysql> create user 'oneadmin'@'localhost' identified by 'X';
mysql> create database opennebula;
mysql> grant all privileges on opennebula.* to 'oneadmin'@'localhost';

3- Now, in the new machine, we restore the 2.1 version database:

mysql -h localhost -u oneadmin -p opennebula
#oneadmin@onesrv04:/srv/cloud$ onedb upgrade -v  
 Database schema does not look to be created by

OpenNebula: table user_pool is missing or empty.


We attempt to avoid oned.conf file, but also fails:

#oneadmin@onesrv04:/srv/cloud$ onedb upgrade -v  -u oneadmin -d
opennebula   MySQL Password:
MySQL option DBNAME is needed

#oneadmin@onesrv04:/srv/cloud$ onedb upgrade -v  -u root -d opennebula
MySQL Password:
MySQL option DBNAME is needed

#oneadmin@onesrv04:/srv/cloud$ onedb upgrade -v -P 3306 -S
localhost -u oneadmin -d opennebula
MySQL Password:
MySQL option DBNAME is needed


Any ideas about why the database migration fails??

Regards

___
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] OpenNbula 3.0 migration: problem with onedb

2011-10-18 Thread Carlos Martín Sánchez
Hi,

Is the DB in the new machine correctly populated?
Can you manually perform a "select * from user_pool where oid=0;" ?

I'm asking because the '-p' option of the mysql commands needs the password
right next to it, without any space; i.e. '-popennebula' instead of '-p
opennebula'


In case any other user is in a similar situation, you can use the onedb
command to move the DB to the new mysql server using "onedb backup" and
"onedb restore".

Regards.
--
Carlos Martín, MSc
Project Engineer
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org  | cmar...@opennebula.org


On Tue, Oct 18, 2011 at 12:35 PM, Ruben Diez  wrote:

> Hi:
>
> We are attempt to migrate OpenNebula from 2.1.80 to 3.0
>
> But the new 3.0 OpenNebula was installed in a new machine.
>
> For database migration, we have followed these steps:
>
> 1- In the old machine, we made a dump of the database:
>
> mysqldump -h localhost -u oneadmin -p opennebula
> >opennebula_2_database.mysq
>
> 2- In the new machine, we create the oneadmin user, an empty opennebula
> database and grant privileges to user oneadmin on database opennebula:
>
> mysql> create user 'oneadmin'@'localhost' identified by 'X';
> mysql> create database opennebula;
> mysql> grant all privileges on opennebula.* to 'oneadmin'@'localhost';
>
> 3- Now, in the new machine, we restore the 2.1 version database:
>
> mysql -h localhost -u oneadmin -p opennebula 
> 4- The configuration of the database is set in the oned.conf file:
>
> DB = [ backend = "mysql",
>   server  = "localhost",
>   port= 0,
>   user= "oneadmin",
>   passwd  = "X",
>   db_name = "opennebula" ]
>
> 5- Now, we attempt the database conversion: but it fails:
>
> #oneadmin@onesrv04:/srv/cloud$ onedb upgrade -v
>  Database schema does not look to be created by OpenNebula: table
> user_pool is missing or empty.
>
>
> We attempt to avoid oned.conf file, but also fails:
>
> #oneadmin@onesrv04:/srv/cloud$ onedb upgrade -v  -u oneadmin -d opennebula
>   MySQL Password:
> MySQL option DBNAME is needed
>
> #oneadmin@onesrv04:/srv/cloud$ onedb upgrade -v  -u root -d opennebula
> MySQL Password:
> MySQL option DBNAME is needed
>
> #oneadmin@onesrv04:/srv/cloud$ onedb upgrade -v -P 3306 -S localhost -u
> oneadmin -d opennebula
> MySQL Password:
> MySQL option DBNAME is needed
>
>
> Any ideas about why the database migration fails??
>
> Regards
>
> __**_
> 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


[one-users] OpenNbula 3.0 migration: problem with onedb

2011-10-18 Thread Ruben Diez

Hi:

We are attempt to migrate OpenNebula from 2.1.80 to 3.0

But the new 3.0 OpenNebula was installed in a new machine.

For database migration, we have followed these steps:

1- In the old machine, we made a dump of the database:

mysqldump -h localhost -u oneadmin -p opennebula >opennebula_2_database.mysq

2- In the new machine, we create the oneadmin user, an empty opennebula 
database and grant privileges to user oneadmin on database opennebula:


mysql> create user 'oneadmin'@'localhost' identified by 'X';
mysql> create database opennebula;
mysql> grant all privileges on opennebula.* to 'oneadmin'@'localhost';

3- Now, in the new machine, we restore the 2.1 version database:

mysql -h localhost -u oneadmin -p opennebula #oneadmin@onesrv04:/srv/cloud$ onedb upgrade 
-v
Database schema does not look to be created by OpenNebula: table 
user_pool is missing or empty.



We attempt to avoid oned.conf file, but also fails:

#oneadmin@onesrv04:/srv/cloud$ onedb upgrade -v  -u oneadmin -d 
opennebula   
MySQL Password:

MySQL option DBNAME is needed

#oneadmin@onesrv04:/srv/cloud$ onedb upgrade -v  -u root -d opennebula
MySQL Password:
MySQL option DBNAME is needed

#oneadmin@onesrv04:/srv/cloud$ onedb upgrade -v -P 3306 -S localhost -u 
oneadmin -d opennebula

MySQL Password:
MySQL option DBNAME is needed


Any ideas about why the database migration fails??

Regards

___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] cancel live migration in progress

2011-10-18 Thread samuel
hi all,

I'm having an issue with live migration.T here was a running instance on a
node that had a qemu segfault (i've noticed afterwards because the instances
were working).I've tried to live migrate the instance to another node
without problems but the instance remains in MIGRATE state "forever".
*is there any method to stope the live migration?
*if I restart the node with a qemu segfault, will the instances run ok
again? They have been running but the communication between opennebula and
KVM is broken so I'm not sure whether the cloud will keep consistency. I
think I read that if the name of the instance is the same and the node is
the same, opennebula will keep consistency.

Can anyone help me, please?

Thanks in advance,.
Samuel.
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Storage subsystem: which one?

2011-10-18 Thread Humberto N. Castejon Martinez
Hi,

Thank you very much, Fabian and Carlos, for your help. Things are much more
clear now, I think.

*Sharing the image repository.
If I understood right, the aim with sharing the image repository between the
front-end and the workers is to increase performance  by reducing (or
eliminating) the time needed to transfer an image from the repository to the
worker that will run an instance of such image. I have, however, a
question/remark here. To really reduce or eliminate the transfer time, the
image should already reside on the worker node or close to it. If the image
resides on a central server (case of NFS, if I am not wrong) or on an
external shared distributed storage space (case of MooseFS, GlusterFS,
Lustre, and the like), there is still a need to transfer the image to the
worker, right? In the case of a distributed storage solution like MooseFs,
etc., the worker could itself be part of the distributed storage space. In
that case, the image may already reside on the worker, although not
necessarily, right? But using the worker as both a storage server and client
may actually compromise performance, for what I have read.
Am I totally wrong with my thoughts here? If not, do we really increase
transfer performance by sharing the image repository using, e.g. NFS? Are
there any performance numbers for the different cases that could be shared?

* Sharing the .
Sharing the  between the front-end and the workers is not really
needed, but it is more of a convenient solution, right?
Sharing the  between the workers  themselves might be needed for
live migration. I say "might" because i have just seen that, for example,
with KVM we may perform live migrations without a shared storage [2]. Has
anyone experimented with this?

Regarding the documentation, Carlos, it looks fine. I would only suggest the
possibility of documenting the 3rd case where the image repository is not
shared but the  is shared.

Thanks!

Cheers,
Humberto

[1]
http://opennebula.org/documentation:rel3.0:sfs#considerations_limitations
[2] http://www.mail-archive.com/libvir-list@redhat.com/msg23674.html


Date: Mon, 17 Oct 2011 16:30:13 +0200
From: Fabian Wenk 
To: users@lists.opennebula.org
Subject: Re: [one-users] Storage subsystem: which one?
Message-ID: <4e9c3bf5.1060...@wenks.ch>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Hello Carlos

On 17.10.2011 11:34, Carlos Mart?n S?nchez wrote:
> Thank you for your great contributions to the list!

You're welcome.

> I'd like to add that we tried to summarize the implications of the shared
> [1] and non-shared [2] approaches in the documentation, let us know if
there
> are any big gaps we forgot about.

Thank you for documenting it on the website. I think it is
complete and mentions all important facts about the two storage
possibilities.


bye
Fabian
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org