Re: [one-users] Sunstone image upload not working - images not in tmpdir

2013-11-29 Thread Stefan Kooman
Quoting Daniel Molina (dmol...@opennebula.org):
 On 28 November 2013 18:15, Stefan Kooman ste...@bit.nl wrote:
 
  Quoting Daniel Molina (dmol...@opennebula.org):
   On 27 November 2013 21:27, Stefan Kooman ste...@bit.nl wrote:
  
  
   We didn't change anything, just:
  
  https://github.com/OpenNebula/one/commit/f8e2e65b0170268e9c72d52c4fe9f0e13fa05acd
  
   So, it should work as before.
 
  Passenger 4.0.26 is giving me this error (500):
 
  [ 2013-11-28 17:34:07.3852 19823/7f177e5a6700
  Pool2/Implementation.cpp:1291 ]: [App 19906 stderr] NameError -
  uninitialized constant PhusionPassenger::Utils::RewindableInput:
  [ 2013-11-28 17:34:07.3858 19823/7f177e5a6700
  Pool2/Implementation.cpp:1291 ]: [App 19906 stderr]
  /usr/lib/one/sunstone/sunstone-server.rb:412:in `block in top (required)'
 
  Image upload _is_ working with Apache Passenger 3.0.13debian-1.2.
  Apparently
  passenger 4.x needs this class to be handled differently.
 
 
 Could you check what it the value of rackinput.class in the post '/upload'
 do method of sunstone-server.rb. You can add a
 logger.error(rackinput.class) and it will be reported in the log.

##
# Upload image
##
post '/upload'do

tmpfile = nil
rackinput = request.env['rack.input']

if (rackinput.class == Tempfile)
tmpfile = rackinput
elsif (rackinput.class == StringIO || rackinput.class == 
PhusionPassenger::Utils::RewindableInput)
tmpfile = Tempfile.open('sunstone-upload', '/mnt/sunstone_upload')
tmpfile.write rackinput.read
tmpfile.flush
else
logger.error { Unexpected rackinput class #{rackinput.class} }
logger.error(rackinput.class)
return [500, ]
end

@SunstoneServer.upload(params[:img], tmpfile.path)
end

I included logger.error(rackinput.class) like above. But I can't find
the rackinput.class value. Is the above correct?

Gr. Stefan

-- 
| BIT BV  http://www.bit.nl/Kamer van Koophandel 09090351
| GPG: 0xD14839C6   +31 318 648 688 / i...@bit.nl


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


Re: [one-users] Sunstone image upload not working - images not in tmpdir

2013-11-29 Thread Daniel Molina
On 29 November 2013 09:27, Stefan Kooman ste...@bit.nl wrote:

 Quoting Daniel Molina (dmol...@opennebula.org):
  On 28 November 2013 18:15, Stefan Kooman ste...@bit.nl wrote:
 
   Quoting Daniel Molina (dmol...@opennebula.org):
On 27 November 2013 21:27, Stefan Kooman ste...@bit.nl wrote:
   
   
We didn't change anything, just:
   
  
 https://github.com/OpenNebula/one/commit/f8e2e65b0170268e9c72d52c4fe9f0e13fa05acd
   
So, it should work as before.
  
   Passenger 4.0.26 is giving me this error (500):
  
   [ 2013-11-28 17:34:07.3852 19823/7f177e5a6700
   Pool2/Implementation.cpp:1291 ]: [App 19906 stderr] NameError -
   uninitialized constant PhusionPassenger::Utils::RewindableInput:
   [ 2013-11-28 17:34:07.3858 19823/7f177e5a6700
   Pool2/Implementation.cpp:1291 ]: [App 19906 stderr]
   /usr/lib/one/sunstone/sunstone-server.rb:412:in `block in top
 (required)'
  
   Image upload _is_ working with Apache Passenger 3.0.13debian-1.2.
   Apparently
   passenger 4.x needs this class to be handled differently.
  
 
  Could you check what it the value of rackinput.class in the post
 '/upload'
  do method of sunstone-server.rb. You can add a
  logger.error(rackinput.class) and it will be reported in the log.


 ##
 # Upload image

 ##
 post '/upload'do

 tmpfile = nil
 rackinput = request.env['rack.input']

 if (rackinput.class == Tempfile)
 tmpfile = rackinput
 elsif (rackinput.class == StringIO || rackinput.class ==
 PhusionPassenger::Utils::RewindableInput)
 tmpfile = Tempfile.open('sunstone-upload', '/mnt/sunstone_upload')
 tmpfile.write rackinput.read
 tmpfile.flush
 else
 logger.error { Unexpected rackinput class #{rackinput.class} }
 logger.error(rackinput.class)
 return [500, ]
 end

 @SunstoneServer.upload(params[:img], tmpfile.path)
 end

 I included logger.error(rackinput.class) like above. But I can't find
 the rackinput.class value. Is the above correct?


Include it before the if:
 logger.error(rackinput.class)
 if (rackinput.class == Tempfile)


 Gr. Stefan

 --
 | BIT BV  http://www.bit.nl/Kamer van Koophandel 09090351
 | GPG: 0xD14839C6   +31 318 648 688 / i...@bit.nl

 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.10 (GNU/Linux)

 iF4EAREIAAYFAlKYUAcACgkQTyGgYdFIOcbkjwEAl5SvTwtbCCmry69wMObQ09vo
 kgh9EqGgRrlfBSpFhv4A/i6LHWeKdU857PpZo2/KIoIIliyOP7Y7dqgyljrBBShi
 =DSa7
 -END PGP SIGNATURE-




-- 
--
Daniel Molina
Project Engineer
OpenNebula - Flexible Enterprise Cloud Made Simple
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] Sunstone image upload not working - images not in tmpdir

2013-11-29 Thread Stefan Kooman
Quoting Daniel Molina (dmol...@opennebula.org):
 
 Include it before the if:
  logger.error(rackinput.class)
  if (rackinput.class == Tempfile)

I did just that, restarted apache and tried again. I can't spot the
value in the logs, can you? Passenger errors are logged in apache error log
(not vhost) log. I did check all logs but didn't find anything.

[ 2013-11-29 09:49:54.3785 25391/7f15dc523700 Pool2/Implementation.cpp:1291 ]: 
[App 25479 stderr] NameError - uninitialized constant 
PhusionPassenger::Utils::RewindableInput:
[ 2013-11-29 09:49:54.3786 25391/7f15dc523700 Pool2/Implementation.cpp:1291 ]: 
[App 25479 stderr]   /usr/lib/one/sunstone/sunstone-server.rb:413:in `block 
in top (required)'
[ 2013-11-29 09:49:54.3786 25391/7f15dc523700 Pool2/Implementation.cpp:1291 ]: 
[App 25479 stderr]   /usr/lib/ruby/vendor_ruby/sinatra/base.rb:1212:in 
`call'
[ 2013-11-29 09:49:54.3786 25391/7f15dc523700 Pool2/Implementation.cpp:1291 ]: 
[App 25479 stderr]   /usr/lib/ruby/vendor_ruby/sinatra/base.rb:1212:in 
`block in compile!'
[ 2013-11-29 09:49:54.3787 25391/7f15dc523700 Pool2/Implementation.cpp:1291 ]: 
[App 25479 stderr]   /usr/lib/ruby/vendor_ruby/sinatra/base.rb:785:in `[]'
[ 2013-11-29 09:49:54.3787 25391/7f15dc523700 Pool2/Implementation.cpp:1291 ]: 
[App 25479 stderr]   /usr/lib/ruby/vendor_ruby/sinatra/base.rb:785:in 
`block (3 levels) in route!'
[ 2013-11-29 09:49:54.3787 25391/7f15dc523700 Pool2/Implementation.cpp:1291 ]: 
[App 25479 stderr]   /usr/lib/ruby/vendor_ruby/sinatra/base.rb:801:in 
`route_eval'
[ 2013-11-29 09:49:54.3787 25391/7f15dc523700 Pool2/Implementation.cpp:1291 ]: 
[App 25479 stderr]   /usr/lib/ruby/vendor_ruby/sinatra/base.rb:785:in 
`block (2 levels) in route!'
[ 2013-11-29 09:49:54.3787 25391/7f15dc523700 Pool2/Implementation.cpp:1291 ]: 
[App 25479 stderr]   /usr/lib/ruby/vendor_ruby/sinatra/base.rb:822:in 
`block in process_route'
[ 2013-11-29 09:49:54.3788 25391/7f15dc523700 Pool2/Implementation.cpp:1291 ]: 
[App 25479 stderr]   /usr/lib/ruby/vendor_ruby/sinatra/base.rb:820:in 
`catch'
[ 2013-11-29 09:49:54.3788 25391/7f15dc523700 Pool2/Implementation.cpp:1291 ]: 
[App 25479 stderr]   /usr/lib/ruby/vendor_ruby/sinatra/base.rb:820:in 
`process_route'
[ 2013-11-29 09:49:54.3788 25391/7f15dc523700 Pool2/Implementation.cpp:1291 ]: 
[App 25479 stderr]   /usr/lib/ruby/vendor_ruby/sinatra/base.rb:784:in 
`block in route!'
[ 2013-11-29 09:49:54.3788 25391/7f15dc523700 Pool2/Implementation.cpp:1291 ]: 
[App 25479 stderr]   /usr/lib/ruby/vendor_ruby/sinatra/base.rb:783:in `each'
[ 2013-11-29 09:49:54.3788 25391/7f15dc523700 Pool2/Implementation.cpp:1291 ]: 
[App 25479 stderr]   /usr/lib/ruby/vendor_ruby/sinatra/base.rb:783:in 
`route!'
[ 2013-11-29 09:49:54.3789 25391/7f15dc523700 Pool2/Implementation.cpp:1291 ]: 
[App 25479 stderr]   /usr/lib/ruby/vendor_ruby/sinatra/base.rb:886:in 
`dispatch!'
[ 2013-11-29 09:49:54.3789 25391/7f15dc523700 Pool2/Implementation.cpp:1291 ]: 
[App 25479 stderr]   /usr/lib/ruby/vendor_ruby/sinatra/base.rb:719:in 
`block in call!'
[ 2013-11-29 09:49:54.3789 25391/7f15dc523700 Pool2/Implementation.cpp:1291 ]: 
[App 25479 stderr]   /usr/lib/ruby/vendor_ruby/sinatra/base.rb:871:in 
`block in invoke'
[ 2013-11-29 09:49:54.3789 25391/7f15dc523700 Pool2/Implementation.cpp:1291 ]: 
[App 25479 stderr]   /usr/lib/ruby/vendor_ruby/sinatra/base.rb:871:in 
`catch'
[ 2013-11-29 09:49:54.3789 25391/7f15dc523700 Pool2/Implementation.cpp:1291 ]: 
[App 25479 stderr]   /usr/lib/ruby/vendor_ruby/sinatra/base.rb:871:in 
`invoke'
[ 2013-11-29 09:49:54.3790 25391/7f15dc523700 Pool2/Implementation.cpp:1291 ]: 
[App 25479 stderr]   /usr/lib/ruby/vendor_ruby/sinatra/base.rb:719:in 
`call!'
[ 2013-11-29 09:49:54.3790 25391/7f15dc523700 Pool2/Implementation.cpp:1291 ]: 
[App 25479 stderr]   /usr/lib/ruby/vendor_ruby/sinatra/base.rb:705:in `call'
[ 2013-11-29 09:49:54.3790 25391/7f15dc523700 Pool2/Implementation.cpp:1291 ]: 
[App 25479 stderr]   /usr/lib/ruby/vendor_ruby/rack/commonlogger.rb:33:in 
`call'
[ 2013-11-29 09:49:54.3790 25391/7f15dc523700 Pool2/Implementation.cpp:1291 ]: 
[App 25479 stderr]   
/usr/lib/ruby/vendor_ruby/rack/session/abstract/id.rb:225:in `context'
[ 2013-11-29 09:49:54.3790 25391/7f15dc523700 Pool2/Implementation.cpp:1291 ]: 
[App 25479 stderr]   
/usr/lib/ruby/vendor_ruby/rack/session/abstract/id.rb:220:in `call'
[ 2013-11-29 09:49:54.3790 25391/7f15dc523700 Pool2/Implementation.cpp:1291 ]: 
[App 25479 stderr]   
/usr/lib/ruby/vendor_ruby/rack/protection/xss_header.rb:18:in `call'
[ 2013-11-29 09:49:54.3791 25391/7f15dc523700 Pool2/Implementation.cpp:1291 ]: 
[App 25479 stderr]   
/usr/lib/ruby/vendor_ruby/rack/protection/path_traversal.rb:16:in `call'
[ 2013-11-29 09:49:54.3791 25391/7f15dc523700 Pool2/Implementation.cpp:1291 ]: 
[App 25479 stderr]   
/usr/lib/ruby/vendor_ruby/rack/protection/json_csrf.rb:18:in `call'
[ 2013-11-29 

Re: [one-users] Sunstone image upload not working - images not in tmpdir

2013-11-29 Thread Daniel Molina
On 29 November 2013 09:57, Stefan Kooman ste...@bit.nl wrote:

 Quoting Daniel Molina (dmol...@opennebula.org):
 
  Include it before the if:
   logger.error(rackinput.class)
   if (rackinput.class == Tempfile)

 I did just that, restarted apache and tried again. I can't spot the
 value in the logs, can you? Passenger errors are logged in apache error log
 (not vhost) log. I did check all logs but didn't find anything.


It should be in /var/log/one/sunstone.log

You can also write the value to a file:
File.open('/tmp/debug_sunstone, 'w') { |file| file.write(rackinput.class) }


-- 
--
Daniel Molina
Project Engineer
OpenNebula - Flexible Enterprise Cloud Made Simple
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] Sunstone image upload not working - images not in tmpdir

2013-11-29 Thread Stefan Kooman
Quoting Daniel Molina (dmol...@opennebula.org):
 On 29 November 2013 09:57, Stefan Kooman ste...@bit.nl wrote:
 
  Quoting Daniel Molina (dmol...@opennebula.org):
  
   Include it before the if:
logger.error(rackinput.class)
if (rackinput.class == Tempfile)
 
  I did just that, restarted apache and tried again. I can't spot the
  value in the logs, can you? Passenger errors are logged in apache error log
  (not vhost) log. I did check all logs but didn't find anything.
 
 
 It should be in /var/log/one/sunstone.log
 
 You can also write the value to a file:
 File.open('/tmp/debug_sunstone, 'w') { |file| file.write(rackinput.class) }
I changed that to:
File.open('/tmp/debug_sunstone', 'w') { |file| file.write(rackinput.class) }

(vim syntax highlighting ftw!)

sunstone.log:

Fri Nov 29 10:08:00 2013 [E]: PhusionPassenger::Utils::TeeInput
Fri Nov 29 10:08:00 2013 [I]: 2001:7b8:3:1000:201:80ff:fe7c:2f35 - - 
[29/Nov/2013 10:08:00] POST 
/upload?img=%7B%22image%22%3A%7B%22NAME%22%3A%22ttylinux%22%2C%22TYPE%22%3A%22CDROM%22%2C%22PERSISTENT%22%3A%22NO%22%7D%2C%22ds_id%22%3A%22101%22%7Dfile=ttylinux-pc_i686-16.1.isoqqfile=ttylinux-pc_i686-16.1.iso
  500 30 0.0059

cat /tmp/debug_sunstone
PhusionPassenger::Utils::TeeInput

Gr. Stefan





-- 
| BIT BV  http://www.bit.nl/Kamer van Koophandel 09090351
| GPG: 0xD14839C6   +31 318 648 688 / i...@bit.nl


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


Re: [one-users] Sunstone image upload not working - images not in tmpdir

2013-11-29 Thread Daniel Molina
On 29 November 2013 10:13, Stefan Kooman ste...@bit.nl wrote:

 Quoting Daniel Molina (dmol...@opennebula.org):
  On 29 November 2013 09:57, Stefan Kooman ste...@bit.nl wrote:
 
   Quoting Daniel Molina (dmol...@opennebula.org):
   
Include it before the if:
 logger.error(rackinput.class)
 if (rackinput.class == Tempfile)
  
   I did just that, restarted apache and tried again. I can't spot the
   value in the logs, can you? Passenger errors are logged in apache
 error log
   (not vhost) log. I did check all logs but didn't find anything.
 
 
  It should be in /var/log/one/sunstone.log
 
  You can also write the value to a file:
  File.open('/tmp/debug_sunstone, 'w') { |file|
 file.write(rackinput.class) }
 I changed that to:
 File.open('/tmp/debug_sunstone', 'w') { |file| file.write(rackinput.class)
 }

 (vim syntax highlighting ftw!)

 sunstone.log:

 Fri Nov 29 10:08:00 2013 [E]: PhusionPassenger::Utils::TeeInput
 Fri Nov 29 10:08:00 2013 [I]: 2001:7b8:3:1000:201:80ff:fe7c:2f35 - -
 [29/Nov/2013 10:08:00] POST
 /upload?img=%7B%22image%22%3A%7B%22NAME%22%3A%22ttylinux%22%2C%22TYPE%22%3A%22CDROM%22%2C%22PERSISTENT%22%3A%22NO%22%7D%2C%22ds_id%22%3A%22101%22%7Dfile=ttylinux-pc_i686-16.1.isoqqfile=ttylinux-pc_i686-16.1.iso
  500 30 0.0059

 cat /tmp/debug_sunstone
 PhusionPassenger::Utils::TeeInput


Could you try changing this line:
elsif (rackinput.class == StringIO || rackinput.class ==
PhusionPassenger::Utils::RewindableInput)

to
elsif rackinput.respond_to?('read')




 Gr. Stefan





 --
 | BIT BV  http://www.bit.nl/Kamer van Koophandel 09090351
 | GPG: 0xD14839C6   +31 318 648 688 / i...@bit.nl

 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.10 (GNU/Linux)

 iF4EAREIAAYFAlKYWqEACgkQTyGgYdFIOcbFnwD/ehMxgF/ja5cILCU2f1cduidS
 7MqrrdOzmF3VPA8ygucBALqc/LofeUkrD/aVJEhUPdinL/ma4Z4/jAWHOm+Xb1X5
 =kRMl
 -END PGP SIGNATURE-




-- 
--
Daniel Molina
Project Engineer
OpenNebula - Flexible Enterprise Cloud Made Simple
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] Sunstone image upload not working - images not in tmpdir

2013-11-29 Thread Stefan Kooman
Quoting Daniel Molina (dmol...@opennebula.org):
 
 Could you try changing this line:
 elsif (rackinput.class == StringIO || rackinput.class ==
 PhusionPassenger::Utils::RewindableInput)
 
 to
 elsif rackinput.respond_to?('read')

This doesn't produce any passenger errors. Image gets uploaded but ...
it fails with the following message:

Error
[ImageAllocate] Cannot determine Image SIZE

It turns out it takes a little while before the image gets flushed to
disk (nfs mount) and at the moment the file size gets determined it's
still 0 bytes ... a few seconds later the file gets filled to it's
actual size ... but that's too late.

watch -n 1 ls -lrth /mnt/sunstone_upload.

I tried again with nolock nfs mount option removed and that seems to
help. It works nows \o/.

One last thing though. Some time after a succesful copy to the datastore the
image got removed (cleanup I guess). That does'nt happen anymore. It's
not a big problem (I can make a cronjob for that) but I wonder if it's
related to this change.

Thanks,

Stefan

P.s. Is this change also going to work on Passenger 3.0? I can test if
you want. Not that I'm planning to but it would make the code version
independent.

-- 
| BIT BV  http://www.bit.nl/Kamer van Koophandel 09090351
| GPG: 0xD14839C6   +31 318 648 688 / i...@bit.nl


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


Re: [one-users] Sunstone image upload not working - images not in tmpdir

2013-11-29 Thread Daniel Molina
On 29 November 2013 10:54, Stefan Kooman ste...@bit.nl wrote:

 Quoting Daniel Molina (dmol...@opennebula.org):

  Could you try changing this line:
  elsif (rackinput.class == StringIO || rackinput.class ==
  PhusionPassenger::Utils::RewindableInput)
 
  to
  elsif rackinput.respond_to?('read')

 This doesn't produce any passenger errors. Image gets uploaded but ...
 it fails with the following message:

 Error
 [ImageAllocate] Cannot determine Image SIZE

 It turns out it takes a little while before the image gets flushed to
 disk (nfs mount) and at the moment the file size gets determined it's
 still 0 bytes ... a few seconds later the file gets filled to it's
 actual size ... but that's too late.

 watch -n 1 ls -lrth /mnt/sunstone_upload.

 I tried again with nolock nfs mount option removed and that seems to
 help. It works nows \o/.


Great!



 One last thing though. Some time after a succesful copy to the datastore
 the
 image got removed (cleanup I guess). That does'nt happen anymore. It's
 not a big problem (I can make a cronjob for that) but I wonder if it's
 related to this change.


This is handled by passenger, it should be removed by the GC sooner or
later



 Thanks,

 Stefan

 P.s. Is this change also going to work on Passenger 3.0? I can test if
 you want. Not that I'm planning to but it would make the code version
 independent.


Yes, the code I sent you is meant to be server/version agnostic. It would
be wonderful if you could test it with Passenger 3.0

Thanks



 --
 | BIT BV  http://www.bit.nl/Kamer van Koophandel 09090351
 | GPG: 0xD14839C6   +31 318 648 688 / i...@bit.nl

 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.10 (GNU/Linux)

 iF4EAREIAAYFAlKYZFAACgkQTyGgYdFIOcah+wD/T+Jf1ul6vq0ciHBANJ5QwW+3
 bRslnAZOjnMj46LGkmMBAJqLm9EUHV/e78Q8DotF79F6vR5WbY/D8LubF+qLA2Z6
 =xAWh
 -END PGP SIGNATURE-




-- 
--
Daniel Molina
Project Engineer
OpenNebula - Flexible Enterprise Cloud Made Simple
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] Sunstone LDAP and user passwords with special characters

2013-11-29 Thread Daniel Molina
FYI we have included an option in sunstone-server.conf (one-4.4) for this:
https://github.com/OpenNebula/one/blob/one-4.4/src/sunstone/etc/sunstone-server.conf#L74

Cheers


On 21 November 2013 09:19, Alvaro Simon asi...@cesga.es wrote:

 Hi

  We do not use ldap but we have seen a similar issue with opennebula
 authentication with X.509 certificates.  OpenNebula compresses all the
 white space out of the Distinguished Name of the certificate.. I would
 not be surprised if it did the same for ldap.  As far as I know it is
 meant to be a feature. If you are changing the passwd manually with the
 oneuser command you have to strip all the whitespace out on your own.

 Yes, that's true white spaces are removed from users DNs but we were not
 sure if this feature also affects to users passwords.. probably yes based
 on OpenNebula  LDAP doc:

 http://opennebula.org/documentation:rel4.2:ldap#dn_
 s_with_special_characters

 $ oneuser encode 'cn=First Name,dc=institution,dc=country' 'pass word'
 cn=First%20Name,dc=institution,dc=country:pass%20word

 It seems that you should replace white spaces by URL %20 character...


 Cheers
 Alvaro


 Steve Timm


 On Wed, 20 Nov 2013, Alvaro Simon wrote:

  Dear ON community

 We don't know if this is a known issue or not, we are using ON 4.2 and
 Sunstone with LDAP support. We have notice that special characters like
 white spaces are not working from Sunstone using LDAP auth, we got these
 errors:

 Wed Nov 20 09:49:10 2013 [E]: User carlosf could not be authenticated
 Wed Nov 20 09:49:10 2013 [E]: execution expired
 Wed Nov 20 09:49:10 2013 [I]: Unauthorized login attempt


 If we change the user pass (without white spaces), sunstone is able to
 authenticate the user again.

 Have you experienced the same issue? any workaround available?

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


 --
 Steven C. Timm, Ph.D  (630) 840-8525
 t...@fnal.gov  http://home.fnal.gov/~timm/
 Fermilab Scientific Computing Division, Scientific Computing Services
 Quad.
 Grid and Cloud Services Dept., Group leader of Grid and Cloud Services
 Operations.  Lead of FermiCloud Project.


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




-- 
--
Daniel Molina
Project Engineer
OpenNebula - Flexible Enterprise Cloud Made Simple
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] Sunstone image upload not working - images not in tmpdir

2013-11-29 Thread Stefan Kooman
Quoting Daniel Molina (dmol...@opennebula.org):
 
 This is handled by passenger, it should be removed by the GC sooner or
 later

Ah, I See. One file is cleaned up already. Proably I'm just impatient
:).
If I close apache passenger it cleans up after itself ... nice.

I just did test with Passenger 3.0 and I can confirm it's also working
for Passenger 3.0 (3.0.13debian-1.2 to be precise).

Thanks again!

Gr. Stefan


-- 
| BIT BV  http://www.bit.nl/Kamer van Koophandel 09090351
| GPG: 0xD14839C6   +31 318 648 688 / i...@bit.nl


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


Re: [one-users] Controlling KVM VMs from network

2013-11-29 Thread Jaime Melis
Hello Daniel,

QMP is not available because afaik it's not compatible with Libvirt, and
OpenNebula requires Libvirt for KVM guests.

However, vncdo should work. We haven't tried it out, but if you enable
GRAPHICS = [ TYPE = vnc ] you should be able to use vncdo.

cheers,
Jaime


On Wed, Nov 27, 2013 at 1:08 PM, Daniel Dehennin 
daniel.dehen...@baby-gnu.org wrote:

 Hello,

 We are trying to build an automated integration test environment and are
 facing one issue: controlling KVM VMs.

 Looking around, we saw that jenkins.debian.net use “vncdo” to send keys
 to automated their qemu based tests[1].

 Another solution could be the use of the Qemu Machine Protocol[2].

 Is is possible do control VMs in this way with ONE?

 Regards.

 Footnotes:
 [1]
 http://anonscm.debian.org/gitweb/?p=users/holger/jenkins.debian.net.git;a=blob;f=bin/g-i-installation.sh;hb=HEAD

 [2]  http://wiki.qemu.org/QMP

 --
 Daniel Dehennin
 Récupérer ma clef GPG:
 gpg --keyserver pgp.mit.edu --recv-keys 0x7A6FE2DF

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




-- 
Jaime Melis
Project Engineer
OpenNebula - Flexible Enterprise Cloud Made Simple
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] Controlling KVM VMs from network

2013-11-29 Thread Jaime Melis
Hi,

I just found out about this, so you might be able to use QMP after all, via
Libvirt:

$ virsh help qemu-monitor-command

cheers,
Jaime


On Fri, Nov 29, 2013 at 11:24 AM, Jaime Melis jme...@opennebula.org wrote:

 Hello Daniel,

 QMP is not available because afaik it's not compatible with Libvirt, and
 OpenNebula requires Libvirt for KVM guests.

 However, vncdo should work. We haven't tried it out, but if you enable
 GRAPHICS = [ TYPE = vnc ] you should be able to use vncdo.

 cheers,
 Jaime


 On Wed, Nov 27, 2013 at 1:08 PM, Daniel Dehennin 
 daniel.dehen...@baby-gnu.org wrote:

 Hello,

 We are trying to build an automated integration test environment and are
 facing one issue: controlling KVM VMs.

 Looking around, we saw that jenkins.debian.net use “vncdo” to send keys
 to automated their qemu based tests[1].

 Another solution could be the use of the Qemu Machine Protocol[2].

 Is is possible do control VMs in this way with ONE?

 Regards.

 Footnotes:
 [1]
 http://anonscm.debian.org/gitweb/?p=users/holger/jenkins.debian.net.git;a=blob;f=bin/g-i-installation.sh;hb=HEAD

 [2]  http://wiki.qemu.org/QMP

 --
 Daniel Dehennin
 Récupérer ma clef GPG:
 gpg --keyserver pgp.mit.edu --recv-keys 0x7A6FE2DF

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




 --
 Jaime Melis

 Project Engineer
 OpenNebula - Flexible Enterprise Cloud Made Simple
 www.OpenNebula.org | jme...@opennebula.org




-- 
Jaime Melis
Project Engineer
OpenNebula - Flexible Enterprise Cloud Made Simple
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] Sunstone image upload not working - images not in tmpdir

2013-11-29 Thread Daniel Molina
On 29 November 2013 11:18, Stefan Kooman ste...@bit.nl wrote:

 Quoting Daniel Molina (dmol...@opennebula.org):
 
  This is handled by passenger, it should be removed by the GC sooner or
  later

 Ah, I See. One file is cleaned up already. Proably I'm just impatient
 :).
 If I close apache passenger it cleans up after itself ... nice.

 I just did test with Passenger 3.0 and I can confirm it's also working
 for Passenger 3.0 (3.0.13debian-1.2 to be precise).

 Thanks again!


Great, I will push it to the repo. It will not be included in one-4.4,
since the code is already closed, but it will be included in a future
maintenance release.

Thank you for your feedback


 Gr. Stefan


 --
 | BIT BV  http://www.bit.nl/Kamer van Koophandel 09090351
 | GPG: 0xD14839C6   +31 318 648 688 / i...@bit.nl

 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.10 (GNU/Linux)

 iF4EAREIAAYFAlKYahAACgkQTyGgYdFIOcYl8wD/e0faBfBsJSsGUrFRl56UcWX1
 oVz1wV0m2cR1AeXec/IA/iB9qh1JJjWxU9VsrTlXjtzLlQEnCa2t9F7t9CqWSgle
 =Kdq3
 -END PGP SIGNATURE-




-- 
--
Daniel Molina
Project Engineer
OpenNebula - Flexible Enterprise Cloud Made Simple
www.OpenNebula.org | dmol...@opennebula.org | @OpenNebula
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] BSOD when deploy Windows XP VM in OpenNebula 4.2

2013-11-29 Thread M Fazli A Jalaluddin
Dear All,

I was trying to install Windows XP in VirtualBox and convert it to qcow2.

After I upload the qcow2 image to OpenNebula and instantiate the template,
the image goes BSOD while in Virtualbox, the VM works fine.

I done some google and found out that there was some bug in qemu which
cause this [1].
Is there any possible solutions to this? Please help advise.

Thank you
Best regards

[1] http://ubuntuforums.org/showthread.php?t=1437758
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Controlling KVM VMs from network

2013-11-29 Thread Daniel Dehennin
Jaime Melis jme...@opennebula.org writes:

 Hi,

 I just found out about this, so you might be able to use QMP after all, via
 Libvirt:

 $ virsh help qemu-monitor-command

Great, I'm not sure if several “control” monitors could be used at the
same time.

If not, it will interfere with ONE management of VMs :-/

Regards.
-- 
Daniel Dehennin
Récupérer ma clef GPG:
gpg --keyserver pgp.mit.edu --recv-keys 0x7A6FE2DF


pgpWpXymJjWYP.pgp
Description: PGP signature
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Controlling KVM VMs from network

2013-11-29 Thread Daniel Dehennin
Jaime Melis jme...@opennebula.org writes:

 Oh, I see what you mean. Well, it depends on what type of operations you
 want to execute. If you stop the virtual machine, OpenNebula will move it
 to UNKNOWN state, for example. But if you use it to manipulate parameters
 inside the virtual machine, OpenNebula will probably not care about that.

 Can you elaborate a bit more on what you are planning to do?

We plan to build an automatic test framework based on jenkins.debian.net,
but managing VMs with ONE.

We are looking at what's the best to send keys to VMs, mostly to select
a boot entry of an ISO image.

Using vncdo seems to not provide feedback, unlike QMP.

Regards.
-- 
Daniel Dehennin
Récupérer ma clef GPG:
gpg --keyserver pgp.mit.edu --recv-keys 0x7A6FE2DF


pgpN0ddW33v9Y.pgp
Description: PGP signature
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] two authentication methods in Sunstone

2013-11-29 Thread knawnd

Hello!

I wonder if it is possible to enable two authentication methods in Sunstone?
As far as I understand from [1] currently only single auth method is 
supported.
I would like to implement the following: first try to use x509 auth 
method and if it fails then try the next one listed in 
/etc/one/sunstone-server.conf e.g. like

:auth: x509,sunstone

i.e. if user doesn't have a proper x509 certs imported in his browser 
then he still can be authenticated with username/password.


Regards,
Nikolay.

[1] http://opennebula.org/documentation:rel4.2:suns_auth
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] A wishlist for open nebula 4.6?

2013-11-29 Thread Shankhadeep Shome
1. GlusterFS libgfapi support, I was hoping this would be completed for
this release, alas I'm stuck with fuse mount another release :)
2. Support virtio-scsi, this is the future of KVM block IO, its not as fast
as virtio-blk but its getting there and it is far more flexible. For
example, you don't need to have pci-hotplug support to add another disk, a
simple scsi bus scan will work. Also support for faster block io access
will be in place soon like tcm-vhost in most distros.
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] A wishlist for open nebula 4.6?

2013-11-29 Thread Gareth Bult
Hi Shankhadeep, 

I'm using virtio-scsi by default on all my instances (I need it for TRIM 
support) .. works fine on 4.3 and 4.4. 
All you need to do is modify /etc/one/vmm_exec/vmm_exec_kvm.conf. 

I use this; 

DISK = [ BUS=scsi, DISCARD=unmap] 
RAW = de vicesvideomodel type='vga' vram='9216' heads='1' 
//videocontroller type='scsi' index='0' model='virtio-scsi' address 
type='pci' domain='0x' bus='0x00' slot='0x08' 
function='0x0'//controller/devices 

Then use sd in DEV_PREFIX in the template .. 

hth 
Gareth. 
-- 
Gareth Bult 
“The odds of hitting your target go up dramatically when you aim at it.” 



- Original Message -

From: Shankhadeep Shome shank15...@gmail.com 
To: users users@lists.opennebula.org 
Sent: Friday, 29 November, 2013 2:54:05 PM 
Subject: [one-users] A wishlist for open nebula 4.6? 

1. GlusterFS libgfapi support, I was hoping this would be completed for this 
release, alas I'm stuck with fuse mount another release :) 
2. Support virtio-scsi, this is the future of KVM block IO, its not as fast as 
virtio-blk but its getting there and it is far more flexible. For example, you 
don't need to have pci-hotplug support to add another disk, a simple scsi bus 
scan will work. Also support for faster block io access will be in place soon 
like tcm-vhost in most distros. 

___ 
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] two authentication methods in Sunstone

2013-11-29 Thread Daniel Molina
Hi Nikolay,

Currently this is not supported, you can only defined one type of auth in
Sunstone. However, you can start more than one Sunstone instance each one
with a different auth.

Cheers


On 29 November 2013 13:19, knawnd kna...@gmail.com wrote:

 Hello!

 I wonder if it is possible to enable two authentication methods in
 Sunstone?
 As far as I understand from [1] currently only single auth method is
 supported.
 I would like to implement the following: first try to use x509 auth method
 and if it fails then try the next one listed in
 /etc/one/sunstone-server.conf e.g. like
 :auth: x509,sunstone

 i.e. if user doesn't have a proper x509 certs imported in his browser then
 he still can be authenticated with username/password.

 Regards,
 Nikolay.

 [1] http://opennebula.org/documentation:rel4.2:suns_auth
 ___
 Users mailing list
 Users@lists.opennebula.org
 http://lists.opennebula.org/listinfo.cgi/users-opennebula.org




-- 
--
Daniel Molina
Project Engineer
OpenNebula - Flexible Enterprise Cloud Made Simple
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] A wishlist for open nebula 4.6?

2013-11-29 Thread Shankhadeep Shome
Ok cool, that would work I suppose.


On Fri, Nov 29, 2013 at 10:22 AM, Gareth Bult gar...@linux.co.uk wrote:

 Hi Shankhadeep,

 I'm using virtio-scsi by default on all my instances (I need it for TRIM
 support) .. works fine on 4.3 and 4.4.
 All you need to do is modify /etc/one/vmm_exec/vmm_exec_kvm.conf.

 I use this;

 DISK = [ BUS=scsi, DISCARD=unmap]
 RAW = devicesvideomodel type='vga' vram='9216' heads='1'
 //videocontroller type='scsi' index='0' model='virtio-scsi'address 
 type='pci'
 domain='0x' bus='0x00' slot='0x08'
 function='0x0'//controller/devices

 Then use sd in DEV_PREFIX in the template ..

 hth
 Gareth.
 --
 *Gareth Bult*
 “The odds of hitting your target go up dramatically when you aim at it.”



 --
 *From: *Shankhadeep Shome shank15...@gmail.com
 *To: *users users@lists.opennebula.org
 *Sent: *Friday, 29 November, 2013 2:54:05 PM
 *Subject: *[one-users] A wishlist for open nebula 4.6?


 1. GlusterFS libgfapi support, I was hoping this would be completed for
 this release, alas I'm stuck with fuse mount another release :)
 2. Support virtio-scsi, this is the future of KVM block IO, its not as
 fast as virtio-blk but its getting there and it is far more flexible. For
 example, you don't need to have pci-hotplug support to add another disk, a
 simple scsi bus scan will work. Also support for faster block io access
 will be in place soon like tcm-vhost in most distros.

 ___
 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] Deployment error

2013-11-29 Thread Eduardo Roloff
I configure OpenNebula front-end in a CentOS machine, and I`m using
ESXi 5.0 hosts.

I have the IMAGE datastore locally in the front-end and trying to
deploy the VM using SSH to the host (I tryed to use VMFS, but does not
work) that has a filesystem.

When I try to create a VM I got this error messages, seems that the
CLONE is not working, but the log does not provide much more
information.

Thank you


Fri Nov 29 15:56:37 2013 [DiM][I]: New VM state is ACTIVE.
Fri Nov 29 15:56:37 2013 [LCM][I]: New VM state is PROLOG.
Fri Nov 29 15:57:10 2013 [LCM][I]: New VM state is BOOT
Fri Nov 29 15:57:10 2013 [VMM][I]: Generating deployment file:
/var/lib/one/vms/11/deployment.0
Fri Nov 29 15:57:10 2013 [VMM][I]: Successfully execute network driver
operation: pre.
Fri Nov 29 15:57:20 2013 [VMM][I]: Command execution fail:
/var/lib/one/remotes/vmm/vmware/deploy
'/var/lib/one/vms/11/deployment.0' 'gn901cb' 11 gn901cb
Fri Nov 29 15:57:20 2013 [VMM][D]: deploy: Successfully defined domain one-11.
Fri Nov 29 15:57:20 2013 [VMM][E]: deploy: Error executing: virsh -c
'esx://gn901cb/?no_verify=1' start one-11 err: ExitCode: 1
Fri Nov 29 15:57:20 2013 [VMM][I]: out:
Fri Nov 29 15:57:20 2013 [VMM][I]: error: Failed to start domain one-11
Fri Nov 29 15:57:20 2013 [VMM][I]: error: internal error Could not
start domain: FileNotFound - File [125] 11/disk.0/disk.vmdk was not
found
Fri Nov 29 15:57:20 2013 [VMM][I]:
Fri Nov 29 15:57:20 2013 [VMM][I]: ExitCode: 1
Fri Nov 29 15:57:20 2013 [VMM][I]: Failed to execute virtualization
driver operation: deploy.
Fri Nov 29 15:57:20 2013 [VMM][E]: Error deploying virtual machine
Fri Nov 29 15:57:20 2013 [DiM][I]: New VM state is FAILED
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Deployment error

2013-11-29 Thread Tino Vazquez
Hi Eduardo,

What OpenNebula version are you using? In OpenNebula 4.2 onwards, the
only supported datastore drivers for VMware hypervisors are 'vmfs'.
What error are you having with the latter?

Regards,

-Tino
--
OpenNebula - Flexible Enterprise Cloud Made Simple

--
Constantino Vázquez Blanco, PhD, MSc
Senior Infrastructure Architect at C12G Labs
www.c12g.com | @C12G | es.linkedin.com/in/tinova

--
Confidentiality Warning: The information contained in this e-mail and
any accompanying documents, unless otherwise expressly indicated, is
confidential and privileged, and is intended solely for the person
and/or entity to whom it is addressed (i.e. those identified in the
To and cc box). They are the property of C12G Labs S.L..
Unauthorized distribution, review, use, disclosure, or copying of this
communication, or any part thereof, is strictly prohibited and may be
unlawful. If you have received this e-mail in error, please notify us
immediately by e-mail at ab...@c12g.com and delete the e-mail and
attachments and any copy from your system. C12G thanks you for your
cooperation.


On Fri, Nov 29, 2013 at 7:04 PM, Eduardo Roloff rol...@gmail.com wrote:
 I configure OpenNebula front-end in a CentOS machine, and I`m using
 ESXi 5.0 hosts.

 I have the IMAGE datastore locally in the front-end and trying to
 deploy the VM using SSH to the host (I tryed to use VMFS, but does not
 work) that has a filesystem.

 When I try to create a VM I got this error messages, seems that the
 CLONE is not working, but the log does not provide much more
 information.

 Thank you


 Fri Nov 29 15:56:37 2013 [DiM][I]: New VM state is ACTIVE.
 Fri Nov 29 15:56:37 2013 [LCM][I]: New VM state is PROLOG.
 Fri Nov 29 15:57:10 2013 [LCM][I]: New VM state is BOOT
 Fri Nov 29 15:57:10 2013 [VMM][I]: Generating deployment file:
 /var/lib/one/vms/11/deployment.0
 Fri Nov 29 15:57:10 2013 [VMM][I]: Successfully execute network driver
 operation: pre.
 Fri Nov 29 15:57:20 2013 [VMM][I]: Command execution fail:
 /var/lib/one/remotes/vmm/vmware/deploy
 '/var/lib/one/vms/11/deployment.0' 'gn901cb' 11 gn901cb
 Fri Nov 29 15:57:20 2013 [VMM][D]: deploy: Successfully defined domain one-11.
 Fri Nov 29 15:57:20 2013 [VMM][E]: deploy: Error executing: virsh -c
 'esx://gn901cb/?no_verify=1' start one-11 err: ExitCode: 1
 Fri Nov 29 15:57:20 2013 [VMM][I]: out:
 Fri Nov 29 15:57:20 2013 [VMM][I]: error: Failed to start domain one-11
 Fri Nov 29 15:57:20 2013 [VMM][I]: error: internal error Could not
 start domain: FileNotFound - File [125] 11/disk.0/disk.vmdk was not
 found
 Fri Nov 29 15:57:20 2013 [VMM][I]:
 Fri Nov 29 15:57:20 2013 [VMM][I]: ExitCode: 1
 Fri Nov 29 15:57:20 2013 [VMM][I]: Failed to execute virtualization
 driver operation: deploy.
 Fri Nov 29 15:57:20 2013 [VMM][E]: Error deploying virtual machine
 Fri Nov 29 15:57:20 2013 [DiM][I]: New VM state is FAILED
 ___
 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] updating TEMPLATE from hooks with onevm update

2013-11-29 Thread Carlos Martín Sánchez
Hi Olivier,

On Wed, Nov 27, 2013 at 5:50 PM, Olivier Sallou olivier.sal...@irisa.frwrote:

 I think that a hook before VM is created, providing the vm info (user, vm
 id etc..) would be perfect. But could we get the vm id is VM is not yet
 created ? (vmid is necessary to update its user template).


I was thinking of a special hook, or new driver, something like
input: the raw template of a VM to be created, the user id, maybe the user
template
output: a modified template


 I can manage for the moment this issue, I manage some things directly in
 the VM or via an external server requested by the VM at startup but it
 would be easier and better to do this directly in OpenNebula via hooks as
 suggested


That special server is something that could be replaced with the OneGate
component, once we do this ticket:
http://dev.opennebula.org/issues/2375


I'd like to see this use case better supported in future versions, thanks
for your feedback so far.

Regards

--
Carlos Martín, MSc
Project Engineer
OpenNebula - Flexible Enterprise Cloud Made Simple
www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org |
@OpenNebula http://twitter.com/opennebula
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Deployment error

2013-11-29 Thread Eduardo Roloff
Hi Tino,

Yes is ONE 4.2.

When I used the vmfs, I created two DataStores (to use the ESXi SAN Storage)

When I try to upload an image to these datastores (not create a VM,
just upload a SO image) I got a message Not enough space in
datastore

The messages in the log file was just that above, but I have 500GB of
free space.

Fri Nov 29 16:35:06 2013 [ReM][D]: Req:2848 UID:0 ImagePoolInfo result
SUCCESS, IMAGE_POOL/IMAGE_...
Fri Nov 29 16:35:07 2013 [InM][I]: Monitoring host gn901cb (7)
Fri Nov 29 16:35:07 2013 [ReM][D]: Req:7200 UID:0
VirtualMachinePoolInfo invoked, -2, -1, -1, -1
Fri Nov 29 16:35:07 2013 [ReM][D]: Req:7200 UID:0
VirtualMachinePoolInfo result SUCCESS, VM_POOL/VM_POOL
Fri Nov 29 16:35:07 2013 [ReM][D]: Req:4768 UID:0
VirtualMachinePoolInfo invoked, -2, -1, -1, -1
Fri Nov 29 16:35:07 2013 [ReM][D]: Req:4768 UID:0
VirtualMachinePoolInfo result SUCCESS, VM_POOL/VM_POOL
Fri Nov 29 16:35:07 2013 [AuM][D]: Message received: AUTHENTICATE SUCCESS 218 -

Fri Nov 29 16:35:07 2013 [ReM][D]: Req:960 UID:0 UserPoolInfo invoked
Fri Nov 29 16:35:07 2013 [ReM][D]: Req:960 UID:0 UserPoolInfo result
SUCCESS, USER_POOLUSERID...
Fri Nov 29 16:35:10 2013 [InM][D]: Host gn901cb (7) successfully monitored.
Fri Nov 29 16:35:12 2013 [ReM][D]: Req:5216 UID:0 ImageAllocate
invoked, NAME=RH..., 127
Fri Nov 29 16:35:12 2013 [ReM][E]: Req:5216 UID:0 ImageAllocate result
FAILURE Not enough space in datastore






On Fri, Nov 29, 2013 at 4:14 PM, Tino Vazquez cvazq...@c12g.com wrote:
 Hi Eduardo,

 What OpenNebula version are you using? In OpenNebula 4.2 onwards, the
 only supported datastore drivers for VMware hypervisors are 'vmfs'.
 What error are you having with the latter?

 Regards,

 -Tino
 --
 OpenNebula - Flexible Enterprise Cloud Made Simple

 --
 Constantino Vázquez Blanco, PhD, MSc
 Senior Infrastructure Architect at C12G Labs
 www.c12g.com | @C12G | es.linkedin.com/in/tinova

 --
 Confidentiality Warning: The information contained in this e-mail and
 any accompanying documents, unless otherwise expressly indicated, is
 confidential and privileged, and is intended solely for the person
 and/or entity to whom it is addressed (i.e. those identified in the
 To and cc box). They are the property of C12G Labs S.L..
 Unauthorized distribution, review, use, disclosure, or copying of this
 communication, or any part thereof, is strictly prohibited and may be
 unlawful. If you have received this e-mail in error, please notify us
 immediately by e-mail at ab...@c12g.com and delete the e-mail and
 attachments and any copy from your system. C12G thanks you for your
 cooperation.


 On Fri, Nov 29, 2013 at 7:04 PM, Eduardo Roloff rol...@gmail.com wrote:
 I configure OpenNebula front-end in a CentOS machine, and I`m using
 ESXi 5.0 hosts.

 I have the IMAGE datastore locally in the front-end and trying to
 deploy the VM using SSH to the host (I tryed to use VMFS, but does not
 work) that has a filesystem.

 When I try to create a VM I got this error messages, seems that the
 CLONE is not working, but the log does not provide much more
 information.

 Thank you


 Fri Nov 29 15:56:37 2013 [DiM][I]: New VM state is ACTIVE.
 Fri Nov 29 15:56:37 2013 [LCM][I]: New VM state is PROLOG.
 Fri Nov 29 15:57:10 2013 [LCM][I]: New VM state is BOOT
 Fri Nov 29 15:57:10 2013 [VMM][I]: Generating deployment file:
 /var/lib/one/vms/11/deployment.0
 Fri Nov 29 15:57:10 2013 [VMM][I]: Successfully execute network driver
 operation: pre.
 Fri Nov 29 15:57:20 2013 [VMM][I]: Command execution fail:
 /var/lib/one/remotes/vmm/vmware/deploy
 '/var/lib/one/vms/11/deployment.0' 'gn901cb' 11 gn901cb
 Fri Nov 29 15:57:20 2013 [VMM][D]: deploy: Successfully defined domain 
 one-11.
 Fri Nov 29 15:57:20 2013 [VMM][E]: deploy: Error executing: virsh -c
 'esx://gn901cb/?no_verify=1' start one-11 err: ExitCode: 1
 Fri Nov 29 15:57:20 2013 [VMM][I]: out:
 Fri Nov 29 15:57:20 2013 [VMM][I]: error: Failed to start domain one-11
 Fri Nov 29 15:57:20 2013 [VMM][I]: error: internal error Could not
 start domain: FileNotFound - File [125] 11/disk.0/disk.vmdk was not
 found
 Fri Nov 29 15:57:20 2013 [VMM][I]:
 Fri Nov 29 15:57:20 2013 [VMM][I]: ExitCode: 1
 Fri Nov 29 15:57:20 2013 [VMM][I]: Failed to execute virtualization
 driver operation: deploy.
 Fri Nov 29 15:57:20 2013 [VMM][E]: Error deploying virtual machine
 Fri Nov 29 15:57:20 2013 [DiM][I]: New VM state is FAILED
 ___
 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] Deployment error

2013-11-29 Thread Eduardo Roloff
Hi again Tino,

I change the configuration to use the image datastore locally in the
front-end, and deploy the VM using vmfs.

When I try to create a VM I got the error messages below.

Seems that is a permission issue, but I can't find what is wrong.

--

Fri Nov 29 17:33:11 2013 [TM][D]: Message received: TRANSFER SUCCESS 12 -

Fri Nov 29 17:33:11 2013 [VMM][D]: Message received: LOG I 12 Command
execution fail: /var/lib/one/remotes/vnm/vmware/pre
PFZNPjxJRD4xMjwvSUQ+PFVJRD4wPC9VSUQ+PEdJRD4wPC9HSUQ+PFVOQU1FPm9uZWFkbWluPC9VTkFNRT48R05BTUU+b25lYWRtaW48L0dOQU1FPjxOQU1FPmZmZmY8L05BTUU+PFBFUk1JU1NJT05TPjxPV05FUl9VPjE8L09XTkVSX1U+PE9XTkVSX00+MTwvT1dORVJfTT48T1dORVJfQT4wPC9PV05FUl9BPjxHUk9VUF9VPjA8L0dST1VQX1U+PEdST1VQX00+MDwvR1JPVVBfTT48R1JPVVBfQT4wPC9HUk9VUF9BPjxPVEhFUl9VPjA8L09USEVSX1U+PE9USEVSX00+MDwvT1RIRVJfTT48T1RIRVJfQT4wPC9PVEhFUl9BPjwvUEVSTUlTU0lPTlM+PExBU1RfUE9MTD4wPC9MQVNUX1BPTEw+PFNUQVRFPjM8L1NUQVRFPjxMQ01fU1RBVEU+MjwvTENNX1NUQVRFPjxSRVNDSEVEPjA8L1JFU0NIRUQ+PFNUSU1FPjEzODU3NTI0ODg8L1NUSU1FPjxFVElNRT4xMzg1NzUyOTkyPC9FVElNRT48REVQTE9ZX0lELz48TUVNT1JZPjA8L01FTU9SWT48Q1BVPjA8L0NQVT48TkVUX1RYPjA8L05FVF9UWD48TkVUX1JYPjA8L05FVF9SWD48VEVNUExBVEU+PEFVVE9NQVRJQ19SRVFVSVJFTUVOVFM+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VE1NQUQ+PERTX0xPQ0FUSU9OPi92bWZzL3ZvbHVtZXM8L0RTX0xPQ0FUSU9OPjxEU19JRD4xMjY8L0RTX0lEPjxQU1RJTUU+MTM4NTc1MzU1NzwvUFNUSU1FPjxQRVRJTUU+MTM4NTc1MzU5MTwvUEVUSU1FPjxSU1RJTUU+MTM4NTc1MzU5MTwvUlNUSU1FPjxSRVRJTUU+MDwvUkVUSU1FPjxFU1RJTUU+MDwvRVNUSU1FPjxFRVRJTUU+MDwvRUVUSU1FPjxSRUFTT04+MDwvUkVBU09OPjxBQ1RJT04+MDwvQUNUSU9OPjwvSElTVE9SWT48L0hJU1RPUllfUkVDT1JEUz48L1ZNPg==

Fri Nov 29 17:33:11 2013 [VMM][D]: Message received: LOG E 12 pre:
Error executing: ((esxcfg-vswitch vSwitch0 -l|grep one-pg-6) ||
/sbin/esxcfg-vswitch vSwitch0 --add-pg one-pg-6); /sbin/esxcfg-vswitch
vSwitch0 -p one-pg-6 --vlan=1024 on host:  err: Error during version
check: Failed to get vmkernel version: Operation not permitted
(running as non-root?)




On Fri, Nov 29, 2013 at 4:42 PM, Eduardo Roloff rol...@gmail.com wrote:
 Hi Tino,

 Yes is ONE 4.2.

 When I used the vmfs, I created two DataStores (to use the ESXi SAN Storage)

 When I try to upload an image to these datastores (not create a VM,
 just upload a SO image) I got a message Not enough space in
 datastore

 The messages in the log file was just that above, but I have 500GB of
 free space.

 Fri Nov 29 16:35:06 2013 [ReM][D]: Req:2848 UID:0 ImagePoolInfo result
 SUCCESS, IMAGE_POOL/IMAGE_...
 Fri Nov 29 16:35:07 2013 [InM][I]: Monitoring host gn901cb (7)
 Fri Nov 29 16:35:07 2013 [ReM][D]: Req:7200 UID:0
 VirtualMachinePoolInfo invoked, -2, -1, -1, -1
 Fri Nov 29 16:35:07 2013 [ReM][D]: Req:7200 UID:0
 VirtualMachinePoolInfo result SUCCESS, VM_POOL/VM_POOL
 Fri Nov 29 16:35:07 2013 [ReM][D]: Req:4768 UID:0
 VirtualMachinePoolInfo invoked, -2, -1, -1, -1
 Fri Nov 29 16:35:07 2013 [ReM][D]: Req:4768 UID:0
 VirtualMachinePoolInfo result 

Re: [one-users] Deployment error

2013-11-29 Thread Ruben S. Montero
Just double checking... have you give full permissions to oneadmin?

http://opennebula.org/documentation:rel4.2:evmwareg#users_groups

It seems that you are using the dynamic network mode, you can move on by
falling back to the predefined one. And once you have setup everything else
revisit the problem...

http://opennebula.org/documentation:rel4.2:vmwarenet#using_the_pre-defined_network_mode

Cheers

Ruben


On Fri, Nov 29, 2013 at 8:34 PM, Eduardo Roloff rol...@gmail.com wrote:

 Hi again Tino,

 I change the configuration to use the image datastore locally in the
 front-end, and deploy the VM using vmfs.

 When I try to create a VM I got the error messages below.

 Seems that is a permission issue, but I can't find what is wrong.

 --

 Fri Nov 29 17:33:11 2013 [TM][D]: Message received: TRANSFER SUCCESS 12 -

 Fri Nov 29 17:33:11 2013 [VMM][D]: Message received: LOG I 12 Command
 execution fail: /var/lib/one/remotes/vnm/vmware/pre

 PFZNPjxJRD4xMjwvSUQ+PFVJRD4wPC9VSUQ+PEdJRD4wPC9HSUQ+PFVOQU1FPm9uZWFkbWluPC9VTkFNRT48R05BTUU+b25lYWRtaW48L0dOQU1FPjxOQU1FPmZmZmY8L05BTUU+PFBFUk1JU1NJT05TPjxPV05FUl9VPjE8L09XTkVSX1U+PE9XTkVSX00+MTwvT1dORVJfTT48T1dORVJfQT4wPC9PV05FUl9BPjxHUk9VUF9VPjA8L0dST1VQX1U+PEdST1VQX00+MDwvR1JPVVBfTT48R1JPVVBfQT4wPC9HUk9VUF9BPjxPVEhFUl9VPjA8L09USEVSX1U+PE9USEVSX00+MDwvT1RIRVJfTT48T1RIRVJfQT4wPC9PVEhFUl9BPjwvUEVSTUlTU0lPTlM+PExBU1RfUE9MTD4wPC9MQVNUX1BPTEw+PFNUQVRFPjM8L1NUQVRFPjxMQ01fU1RBVEU+MjwvTENNX1NUQVRFPjxSRVNDSEVEPjA8L1JF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D4xMjwvT0lEPjxTRVE+MjwvU0VRPjxIT1NUTkFNRT5nbjkwMWNiPC9IT1NUTkFNRT48SElEPjc8L0hJRD48U1RJTUU+MTM4NTc1MzU1NzwvU1RJTUU+PEVUSU1FPjA8L0VUSU1FPjxWTU1NQUQ+dm13YXJlPC9WTU1NQUQ+PFZOTU1BRD52bXdhcmU8L1ZOTU1BRD48VE1NQUQ+dm1mczwvVE1NQUQ+PERTX0xPQ0FUSU9OPi92bWZzL3ZvbHVtZXM8L0RTX0xPQ0FUSU9OPjxEU19JRD4xMjY8L0RTX0lEPjxQU1RJTUU+MTM4NTc1MzU1NzwvUFNUSU1FPjxQRVRJTUU+MTM4NTc1MzU5MTwvUEVUSU1FPjxSU1RJTUU+MTM4NTc1MzU5MTwvUlNUSU1FPjxSRVRJTUU+MDwvUkVUSU1FPjxFU1RJTUU+MDwvRVNUSU1FPjxFRVRJTUU+MDwvRUVUSU1FPjxSRUFTT04+MDwvUkVBU09OPjxBQ1RJT04+MDwvQUNUSU9OPjwvSElTVE9SWT48L0hJU1RPUllfUkVDT1JEUz48L1ZNPg==

 Fri Nov 29 17:33:11 2013 [VMM][D]: Message received: LOG E 12 pre:
 Error executing: ((esxcfg-vswitch vSwitch0 -l|grep one-pg-6) ||
 /sbin/esxcfg-vswitch vSwitch0 --add-pg one-pg-6); /sbin/esxcfg-vswitch
 vSwitch0 -p one-pg-6 --vlan=1024 on host:  err: Error during version
 check: Failed to get vmkernel version: Operation not permitted
 (running as non-root?)




 On Fri, Nov 29, 2013 at 4:42 PM, Eduardo Roloff rol...@gmail.com wrote:
  Hi Tino,
 
  Yes is ONE 4.2.
 
  When I used the vmfs, I created two DataStores (to use the ESXi SAN
 Storage)
 
  When I try to upload an image to these datastores (not create a VM,
  just upload a SO image) I got a message Not enough space in
  datastore
 
  The messages in the log file was just that above, but I have 500GB of
  free space.
 
  Fri Nov 29 16:35:06 2013 [ReM][D]: 

Re: [one-users] Deployment error

2013-11-29 Thread Eduardo Roloff
I check the oneadmin permissions and he is in the administrators
group, this is the only thing that I can verify to assure that he has
full permissions.

I changed to use predefined network and I got a different error.

Fri Nov 29 20:09:43 2013 [LCM][I]: New VM state is BOOT
Fri Nov 29 20:09:43 2013 [VMM][I]: Generating deployment file:
/var/lib/one/vms/14/deployment.0
Fri Nov 29 20:09:44 2013 [VMM][I]: Successfully execute network driver
operation: pre.
Fri Nov 29 20:09:53 2013 [VMM][I]: Command execution fail:
/var/lib/one/remotes/vmm/vmware/deploy
'/var/lib/one/vms/14/deployment.0' 'gn901cb' 14 gn901cb
Fri Nov 29 20:09:53 2013 [VMM][D]: deploy: Successfully defined domain one-14.
Fri Nov 29 20:09:53 2013 [VMM][E]: deploy: Error executing: virsh -c
'esx://gn901cb/?no_verify=1' start one-14 err: ExitCode: 1
Fri Nov 29 20:09:53 2013 [VMM][I]: out:
Fri Nov 29 20:09:53 2013 [VMM][I]: error: Failed to start domain one-14
Fri Nov 29 20:09:53 2013 [VMM][I]: error: internal error Could not
start domain: FileNotFound - File [126] 14/disk.0/disk.vmdk was not
found
Fri Nov 29 20:09:53 2013 [VMM][I]:
Fri Nov 29 20:09:53 2013 [VMM][I]: ExitCode: 1
Fri Nov 29 20:09:53 2013 [VMM][I]: Failed to execute virtualization
driver operation: deploy.
Fri Nov 29 20:09:53 2013 [VMM][E]: Error deploying virtual machine
Fri Nov 29 20:09:53 2013 [DiM][I]: New VM state is FAILED

On Fri, Nov 29, 2013 at 7:02 PM, Ruben S. Montero
rsmont...@opennebula.org wrote:
 Just double checking... have you give full permissions to oneadmin?

 http://opennebula.org/documentation:rel4.2:evmwareg#users_groups

 It seems that you are using the dynamic network mode, you can move on by
 falling back to the predefined one. And once you have setup everything else
 revisit the problem...

 http://opennebula.org/documentation:rel4.2:vmwarenet#using_the_pre-defined_network_mode

 Cheers

 Ruben


 On Fri, Nov 29, 2013 at 8:34 PM, Eduardo Roloff rol...@gmail.com wrote:

 Hi again Tino,

 I change the configuration to use the image datastore locally in the
 front-end, and deploy the VM using vmfs.

 When I try to create a VM I got the error messages below.

 Seems that is a permission issue, but I can't find what is wrong.

 --

 Fri Nov 29 17:33:11 2013 [TM][D]: Message received: TRANSFER SUCCESS 12 -

 Fri Nov 29 17:33:11 2013 [VMM][D]: Message received: LOG I 12 Command
 execution fail: /var/lib/one/remotes/vnm/vmware/pre

 

[one-users] how to setup debugging environment with the right tools to debug to the code level?

2013-11-29 Thread Qiubo Su (David Su)
Dear OpenNebula Community,

1) When run onevm, oneimage, onevnet, onecluster etc commands, sometimes
got errors. Instead of checking the debug log files, how to set up a
debugging environment with the right tools to track down the problems in
the code level?

I'm a C, C++ and Java software engineer for many years, but not familiar
with the OpenNebula software development environment and the tools for
debugging to the code level.

Your help with this is much appreciated !

2) After create image to add it to the user generated datastore, how to
remove it from that datastore, not deleting it, just remove it out of the
datastore?

Thanks kindly,
Q.S.
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] BSOD when deploy Windows XP VM in OpenNebula 4.2

2013-11-29 Thread M Fazli A Jalaluddin
Hi,

I also have deployed Windows 7 qcow2 format on OpenNebula without the any
problem.
which I used VirtualBox to create the image first and convert it from .vdi
to .qcow2 using qemu-utils.

May I know how to use IDE instead?

PS: I have tried using both qcow2 and raw format but still blue screen. The
Blue screen appears shortly after the Windows XP loading bar splash screen.

Best regards


On Fri, Nov 29, 2013 at 10:40 PM, Shankhadeep Shome shank15...@gmail.comwrote:

 For windows VMs you need to make sure the correct virtio block drivers are
 installed, you might get lucky with using ide instead. Remove the
 virtualbox guest tools before moving the vm over.


 On Fri, Nov 29, 2013 at 6:25 AM, André Monteiro 
 andre.mont...@gmail.comwrote:

 Hi,

 I have some experience on Windows machines, and all are running on qcow2
 without problems. When does exactly the VM blue screen appears? While not
 discarding a qemu problem, Windows OS is very sensible to hardware changes
 and the problem can be at the loading drivers step, which are not part of
 the new system.

 I have two suggestions:
 - Try to replicate Virtualbox hardware as close as possible on OpenNebula
 and boot in Safe Mode
 - Try to install a clean image on OpenNebula to check XP compatibility

 Regards,



 --
 André Monteiro



 On Fri, Nov 29, 2013 at 10:34 AM, M Fazli A Jalaluddin 
 fazli.jalalud...@gmail.com wrote:

 Dear All,

 I was trying to install Windows XP in VirtualBox and convert it to qcow2.

 After I upload the qcow2 image to OpenNebula and instantiate the
 template,
 the image goes BSOD while in Virtualbox, the VM works fine.

 I done some google and found out that there was some bug in qemu which
 cause this [1].
 Is there any possible solutions to this? Please help advise.

 Thank you
 Best regards

 [1] http://ubuntuforums.org/showthread.php?t=1437758

 ___
 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



 ___
 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] Users Digest, Vol 69, Issue 141

2013-11-29 Thread Catalina Quinde
Hi Nikita,

I installed new kernel 2.6.32-042stab076.8 and deployed VM indicated by
you, but this errors displays in log file:

oneadmin@ubuntuOpNeb:~$ cat /var/log/one/62.log
Fri Nov 29 21:08:42 2013 [DiM][I]: New VM state is ACTIVE.
Fri Nov 29 21:08:42 2013 [LCM][I]: New VM state is PROLOG.
Fri Nov 29 21:08:42 2013 [VM][I]: Virtual Machine has no context
Fri Nov 29 21:08:57 2013 [LCM][I]: New VM state is BOOT
Fri Nov 29 21:08:57 2013 [VMM][I]: Generating deployment file:
/var/lib/one/vms/62/deployment.0
Fri Nov 29 21:08:58 2013 [VMM][I]: ExitCode: 0
Fri Nov 29 21:08:58 2013 [VMM][I]: Successfully execute network driver
operation: pre.
Fri Nov 29 21:09:02 2013 [VMM][I]: Command execution fail: cat  EOT |
/var/tmp/one/vmm/ovz/deploy '/var/lib/one/datastores/104/62/deployment.0'
'ubuntu' 62 ubuntu
Fri Nov 29 21:09:02 2013 [VMM][I]: deploy: Executed /usr/bin/sudo mv
/var/lib/vz/template/cache/debian-7.0-x64.tar.gz
/var/lib/vz/template/cache/debian-7.0-x64.tar.gz.1385777341 2 /dev/null;
true.
Fri Nov 29 21:09:02 2013 [VMM][I]: deploy: Executed /usr/bin/sudo ln -sf
/var/lib/one/datastores/104/62/disk.0
/var/lib/vz/template/cache/debian-7.0-x64.tar.gz.
Fri Nov 29 21:09:02 2013 [VMM][E]: deploy: Command /usr/bin/sudo
/usr/sbin/vzctl create 1062 --layout ploop --ostemplate debian-7.0-x64
--private /var/lib/one/datastores/104/62/private --root
/var/lib/one/datastores/104/62/root failed.
Fri Nov 29 21:09:02 2013 [VMM][E]: deploy: Error in do_lock (lock.c:136):
Error in
flock(/var/lib/one/datastores/104/62/private.tmp/root.hdd/DiskDescriptor.xml.lck):
Bad file descriptor
Fri Nov 29 21:09:02 2013 [VMM][I]: Failed to create image: Error in do_lock
(lock.c:136): Error in
flock(/var/lib/one/datastores/104/62/private.tmp/root.hdd/DiskDescriptor.xml.lck):
Bad file descriptor [23]
Fri Nov 29 21:09:02 2013 [VMM][I]: Creation of container private area failed
Fri Nov 29 21:09:02 2013 [VMM][E]: Error in do_lock (lock.c:136): Error in
flock(/var/lib/one/datastores/104/62/private.tmp/root.hdd/DiskDescriptor.xml.lck):
Bad file descriptor
Fri Nov 29 21:09:02 2013 [VMM][E]: Failed to create image: Error in do_lock
(lock.c:136): Error in
flock(/var/lib/one/datastores/104/62/private.tmp/root.hdd/DiskDescriptor.xml.lck):
Bad file descriptor [23]
Fri Nov 29 21:09:02 2013 [VMM][E]: Creation of container private area failed
Fri Nov 29 21:09:02 2013 [VMM][E]:
Fri Nov 29 21:09:02 2013 [VMM][I]: ExitCode: 151
Fri Nov 29 21:09:02 2013 [VMM][I]: Failed to execute virtualization driver
operation: deploy.
Fri Nov 29 21:09:02 2013 [VMM][E]: Error deploying virtual machine: Error
in do_lock (lock.c:136): Error in
flock(/var/lib/one/datastores/104/62/private.tmp/root.hdd/DiskDescriptor.xml.lck):
Bad file descriptor
Fri Nov 29 21:09:02 2013 [DiM][I]: New VM state is FAILED

Thanks for you help Nikita.

Regards, Caty


Message: 2
 Date: Wed, 27 Nov 2013 17:23:09 +0400
 From: kna...@gmail.com
 To: us...@lists.open, users@lists.opennebula.org


nebula.org users@lists.opennebula.org
 Subject: Re: [one-users] VM in Opennebula for OpenVZ failed
 Message-ID: 5295f23d.8040...@gmail.com
 Content-Type: text/plain; charset=UTF-8; format=flowed

 Hi Catalina,

 please see my comments inline

 Catalina Quinde wrote on 27/11/13 14:17:
 
  2. Maybe you got incorrect template, try deploying it by vzctl
 create to see if it works
 
  In the process of creating the template I copy debian.conf as
 VMdebianm64.conf
 it was not necessary to do that. It should be enough just to specify a
 proper value in OSTEMPLATE
 opennebula VM template, e.g.
 OSTEMPLATE=debian-7.0-x64
 In that case OpenVZ hypervisor should take into account
 /etc/vz/dists/debian.conf on the cloud node.
 
  3. What procedure did you perform to get an image archive for
 OpenNebula out of the created VM?
 
  When I created the VM in OpenVZ node I used this:
  sudo wget
 http://download.openvz.org/contrib/template/precreated/debian-7.0-amd64-minimal.tar.gz
 ,
  this archive is in /var/lib/vz/template/cache. then with command:
  sudo vzctl create 101 --ostemplate debian-7.0-amd64-minimal, I created
 VM, I was in
  /var/lib/vz/template/cache directory.
 
  But in /etc/vz/dist/ directory is not present debian-7.0-amd64-minimal
 are present this:
  alpine.confgentoo.conf slackware-9.1.conf
  altlinux-2.4.confmandrake.conf slackware.conf
  altlinux.confopensuse.confsles.conf
  arch.confowl.confsuse-7.3.conf
  centos.confredhat-7.0.conf suse-8.0.conf
  debian-3.0.confredhat-7.1.conf suse-8.1.conf
  debian-3.1.confredhat-7.2.conf suse-8.2.conf
  debian.confredhat-7.3.confsuse.conf
  defaultredhat.conf ubuntu-6.06.conf
  distribution.conf-template  rhel.conf ubuntu.conf
  fedora.confscientific.conf VMdebianm64.conf
  fedora-core.confscripts
  funtoo.confslackware-9.0.conf
 Please perform the following steps as oneadmin user on front-end node:
 1) $ 

Re: [one-users] Users Digest, Vol 69, Issue 141

2013-11-29 Thread knawnd

Hi Caty,

if your datastore is nfs-based then it seems like you faced with issue 
mentioned in that bug report [1].
Is there any particular reason which makes you not to use latest stable 
openvz kernel (currently it is 83.2)? Make also sure that the latest 
stable ploop and vzctl versions are installed.


Hope that helps,
Nikolay.

[1] https://bugzilla.openvz.org/show_bug.cgi?id=2730

On 11/30/2013 07:38 AM, Catalina Quinde wrote:

Hi Nikita,

I installed new kernel 2.6.32-042stab076.8 and deployed VM indicated 
by you, but this errors displays in log file:


oneadmin@ubuntuOpNeb:~$ cat /var/log/one/62.log
Fri Nov 29 21:08:42 2013 [DiM][I]: New VM state is ACTIVE.
Fri Nov 29 21:08:42 2013 [LCM][I]: New VM state is PROLOG.
Fri Nov 29 21:08:42 2013 [VM][I]: Virtual Machine has no context
Fri Nov 29 21:08:57 2013 [LCM][I]: New VM state is BOOT
Fri Nov 29 21:08:57 2013 [VMM][I]: Generating deployment file: 
/var/lib/one/vms/62/deployment.0

Fri Nov 29 21:08:58 2013 [VMM][I]: ExitCode: 0
Fri Nov 29 21:08:58 2013 [VMM][I]: Successfully execute network driver 
operation: pre.
Fri Nov 29 21:09:02 2013 [VMM][I]: Command execution fail: cat  EOT 
| /var/tmp/one/vmm/ovz/deploy 
'/var/lib/one/datastores/104/62/deployment.0' 'ubuntu' 62 ubuntu
Fri Nov 29 21:09:02 2013 [VMM][I]: deploy: Executed /usr/bin/sudo mv 
/var/lib/vz/template/cache/debian-7.0-x64.tar.gz 
/var/lib/vz/template/cache/debian-7.0-x64.tar.gz.1385777341 2 
/dev/null; true.
Fri Nov 29 21:09:02 2013 [VMM][I]: deploy: Executed /usr/bin/sudo ln 
-sf /var/lib/one/datastores/104/62/disk.0 
/var/lib/vz/template/cache/debian-7.0-x64.tar.gz.
Fri Nov 29 21:09:02 2013 [VMM][E]: deploy: Command /usr/bin/sudo 
/usr/sbin/vzctl create 1062 --layout ploop --ostemplate 
debian-7.0-x64 --private /var/lib/one/datastores/104/62/private 
--root /var/lib/one/datastores/104/62/root failed.
Fri Nov 29 21:09:02 2013 [VMM][E]: deploy: Error in do_lock 
(lock.c:136): Error in 
flock(/var/lib/one/datastores/104/62/private.tmp/root.hdd/DiskDescriptor.xml.lck): 
Bad file descriptor
Fri Nov 29 21:09:02 2013 [VMM][I]: Failed to create image: Error in 
do_lock (lock.c:136): Error in 
flock(/var/lib/one/datastores/104/62/private.tmp/root.hdd/DiskDescriptor.xml.lck): 
Bad file descriptor [23]
Fri Nov 29 21:09:02 2013 [VMM][I]: Creation of container private area 
failed
Fri Nov 29 21:09:02 2013 [VMM][E]: Error in do_lock (lock.c:136): 
Error in 
flock(/var/lib/one/datastores/104/62/private.tmp/root.hdd/DiskDescriptor.xml.lck): 
Bad file descriptor
Fri Nov 29 21:09:02 2013 [VMM][E]: Failed to create image: Error in 
do_lock (lock.c:136): Error in 
flock(/var/lib/one/datastores/104/62/private.tmp/root.hdd/DiskDescriptor.xml.lck): 
Bad file descriptor [23]
Fri Nov 29 21:09:02 2013 [VMM][E]: Creation of container private area 
failed

Fri Nov 29 21:09:02 2013 [VMM][E]:
Fri Nov 29 21:09:02 2013 [VMM][I]: ExitCode: 151
Fri Nov 29 21:09:02 2013 [VMM][I]: Failed to execute virtualization 
driver operation: deploy.
Fri Nov 29 21:09:02 2013 [VMM][E]: Error deploying virtual machine: 
Error in do_lock (lock.c:136): Error in 
flock(/var/lib/one/datastores/104/62/private.tmp/root.hdd/DiskDescriptor.xml.lck): 
Bad file descriptor

Fri Nov 29 21:09:02 2013 [DiM][I]: New VM state is FAILED

Thanks for you help Nikita.

Regards, Caty


Message: 2
Date: Wed, 27 Nov 2013 17:23:09 +0400
From: kna...@gmail.com mailto:kna...@gmail.com
To: us...@lists.open, mailto:users@lists.opennebula.org


nebula.org mailto:users@lists.opennebula.org
Subject: Re: [one-users] VM in Opennebula for OpenVZ failed
Message-ID: 5295f23d.8040...@gmail.com
mailto:5295f23d.8040...@gmail.com
Content-Type: text/plain; charset=UTF-8; format=flowed

Hi Catalina,

please see my comments inline

Catalina Quinde wrote on 27/11/13 14:17:

 2. Maybe you got incorrect template, try deploying it by
vzctl create to see if it works

 In the process of creating the template I copy debian.conf as
VMdebianm64.conf
it was not necessary to do that. It should be enough just to
specify a proper value in OSTEMPLATE
opennebula VM template, e.g.
OSTEMPLATE=debian-7.0-x64
In that case OpenVZ hypervisor should take into account
/etc/vz/dists/debian.conf on the cloud node.

 3. What procedure did you perform to get an image archive
for OpenNebula out of the created VM?

 When I created the VM in OpenVZ node I used this:
 sudo wget

http://download.openvz.org/contrib/template/precreated/debian-7.0-amd64-minimal.tar.gz,
 this archive is in /var/lib/vz/template/cache. then with command:
 sudo vzctl create 101 --ostemplate debian-7.0-amd64-minimal, I
created VM, I was in
 /var/lib/vz/template/cache directory.

 But in /etc/vz/dist/ directory is not present
debian-7.0-amd64-minimal are present this:
 alpine.confgentoo.conf slackware-9.1.conf
 altlinux-2.4.confmandrake.conf