Re: [one-users] occi-storage create fails
Hello, is there any relevant message thrown out in oned.log when you try to upload 4G images? Can you send the versions of the gems you are using (`gem list`)? Hector En Fri, 06 Jan 2012 16:53:11 +0100, salma rebai rebai.sa...@gmail.com escribió: Hi, Regarding uploading image with occi-storage, perhaps there is a bug in OpenNebula. In fact, it does not support the upload of large images... I have tested the command Occi-storage create image.xml with a text file and an OS image of size 2G, and it is working fine But when I try to upload a large image ( 4 G ) , the command fails with the error : server returned nothing (no headers, no data). Any suggestions?? Can someone help me to solve this problem??? Best Regards. 2012/1/5 salma rebai rebai.sa...@gmail.com Hi, Apparently it is a space problem! I have tested the occi-storage command with a small text file and I succeeded to upload It. I think that occi uses a temporary folder (/tmp) during uploading new images and finally it saves these images in the ($ONE_LOCATION/var/images) folder But I don't know how to specify this temporary folder. For the moment I have changed in the ($ONE_LOCATION/bin/occi-server) file the TMPDIR variable to be like that : export TMPDIR=/srv/opennebula/tmp After restarting the occi-server , the /srv/opennebula/tmp folder is created, and when I run the occi-storage create image.xml command, I noticed some file that are copied in this file: ls -l /srv/opennebula/tmp total 28561060 -rw--- 1 opennebula opennebula 3448287232 Jan 5 12:44 RackMultipart20120105-23685-1b91zls-0 -rw--- 1 opennebula opennebula 12884901888 Jan 5 12:25 RackMultipart20120105-23685-1mhvl6-0 -rw--- 1 opennebula opennebula 12884902433 Jan 5 12:43 thin-body20120105-23685-1y5klur-0 But after some time the occi-storage create command fails with the error server returned nothing (no headers, no data) The contents of my log file is as follows cat var/occi-server.log -- Server configuration -- {:template_location=/srv/opennebula//etc/occi_templates, :bridge=br0, :one_xmlrpc=http://localhost:2633/RPC2;, :instance_types= {:custom={:template=custom.erb}, :small={:template=small.erb}, :medium={:template=medium.erb}, :large={:template=large.erb}}, :server=localhost, :auth=basic, :port=4567} == Sinatra/1.3.1 has taken the stage on 4567 for development with backup from Thin 127.0.0.1 - - [05/Jan/2012 12:10:46] GET /network HTTP/1.1 200 119 0.0470 127.0.0.1 - - [05/Jan/2012 12:21:42] GET /network HTTP/1.1 200 119 0.2190 127.0.0.1 - - [05/Jan/2012 12:21:49] GET /storage HTTP/1.1 200 180 0.2270 127.0.0.1 - - [05/Jan/2012 12:24:15] GET /network HTTP/1.1 200 119 0.1177 127.0.0.1 - - [05/Jan/2012 12:25:17] POST /storage HTTP/1.1 500 79 0.0125 127.0.0.1 - - [05/Jan/2012 12:45:16] GET /storage HTTP/1.1 200 180 0.1723 127.0.0.1 - - [05/Jan/2012 12:45:20] GET /storage HTTP/1.1 200 180 0.1987 127.0.0.1 - - [05/Jan/2012 12:47:38] GET /network HTTP/1.1 200 119 0.1170 127.0.0.1 - - [05/Jan/2012 12:47:46] POST /storage HTTP/1.1 500 79 0.1150 127.0.0.1 - - [05/Jan/2012 12:50:20] GET /storage HTTP/1.1 200 180 0.0077 127.0.0.1 - - [05/Jan/2012 12:50:24] GET /storage HTTP/1.1 200 180 0.0082 127.0.0.1 - - [05/Jan/2012 12:57:57] POST /storage HTTP/1.1 201 238 0.0380 127.0.0.1 - - [05/Jan/2012 13:03:14] GET /storage HTTP/1.1 200 242 0.0076 127.0.0.1 - - [05/Jan/2012 13:03:20] GET /storage HTTP/1.1 200 242 0.0072 The occi-storage list doesn't show any new storage Have you any suggestions? Can you help me to solve the problem?? Thanks! 2012/1/4 salma rebai rebai.sa...@gmail.com Hi, Thanks for your response. The folder of my OpenNebula installation (/srv/opennebula) is a large shared space. SO i don't know if this really a disk space problem. When i used the command line oneimage create to upload a new image, I don't find any problems, and images are stored in the (/src/opennebula/var/images) folder. But, I don't know when new images uploaded with occi-storage take place... Is there a specific folder used by occi-storage?? Thanks for your Help! Best Regards. 2012/1/4 Hector Sanjuan hsanj...@opennebula.org Hi, it looks to me like you're short of space to upload your image: /usr/local/lib/ruby/gems/1.8/**gems/thin-1.2.11/lib/thin/**request.rb:77:in `parse': No space left on device - /tmp/thin-body20120104-29992-**1v1tn4a-0 (Errno::ENOSPC) -- Hector Sanjuan OpenNebula Developer __**_ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/**listinfo.cgi/users-opennebula.**orghttp://lists.opennebula.org/listinfo.cgi/users-opennebula.org -- Salma REBAI Ingénieur Informatique Mastère Réseaux et Systèmes Multimédia Ecole Nationale des Sciences Informatiques Univ. Manouba, Tunisie Institut Télécom SudParis
Re: [one-users] occi-storage create fails
Hi, Regarding uploading image with occi-storage, perhaps there is a bug in OpenNebula. In fact, it does not support the upload of large images... I have tested the command Occi-storage create image.xml with a text file and an OS image of size 2G, and it is working fine But when I try to upload a large image ( 4 G ) , the command fails with the error : server returned nothing (no headers, no data). Any suggestions?? Can someone help me to solve this problem??? Best Regards. 2012/1/5 salma rebai rebai.sa...@gmail.com Hi, Apparently it is a space problem! I have tested the occi-storage command with a small text file and I succeeded to upload It. I think that occi uses a temporary folder (/tmp) during uploading new images and finally it saves these images in the ($ONE_LOCATION/var/images) folder But I don't know how to specify this temporary folder. For the moment I have changed in the ($ONE_LOCATION/bin/occi-server) file the TMPDIR variable to be like that : export TMPDIR=/srv/opennebula/tmp After restarting the occi-server , the /srv/opennebula/tmp folder is created, and when I run the occi-storage create image.xml command, I noticed some file that are copied in this file: ls -l /srv/opennebula/tmp total 28561060 -rw--- 1 opennebula opennebula 3448287232 Jan 5 12:44 RackMultipart20120105-23685-1b91zls-0 -rw--- 1 opennebula opennebula 12884901888 Jan 5 12:25 RackMultipart20120105-23685-1mhvl6-0 -rw--- 1 opennebula opennebula 12884902433 Jan 5 12:43 thin-body20120105-23685-1y5klur-0 But after some time the occi-storage create command fails with the error server returned nothing (no headers, no data) The contents of my log file is as follows cat var/occi-server.log -- Server configuration -- {:template_location=/srv/opennebula//etc/occi_templates, :bridge=br0, :one_xmlrpc=http://localhost:2633/RPC2;, :instance_types= {:custom={:template=custom.erb}, :small={:template=small.erb}, :medium={:template=medium.erb}, :large={:template=large.erb}}, :server=localhost, :auth=basic, :port=4567} == Sinatra/1.3.1 has taken the stage on 4567 for development with backup from Thin 127.0.0.1 - - [05/Jan/2012 12:10:46] GET /network HTTP/1.1 200 119 0.0470 127.0.0.1 - - [05/Jan/2012 12:21:42] GET /network HTTP/1.1 200 119 0.2190 127.0.0.1 - - [05/Jan/2012 12:21:49] GET /storage HTTP/1.1 200 180 0.2270 127.0.0.1 - - [05/Jan/2012 12:24:15] GET /network HTTP/1.1 200 119 0.1177 127.0.0.1 - - [05/Jan/2012 12:25:17] POST /storage HTTP/1.1 500 79 0.0125 127.0.0.1 - - [05/Jan/2012 12:45:16] GET /storage HTTP/1.1 200 180 0.1723 127.0.0.1 - - [05/Jan/2012 12:45:20] GET /storage HTTP/1.1 200 180 0.1987 127.0.0.1 - - [05/Jan/2012 12:47:38] GET /network HTTP/1.1 200 119 0.1170 127.0.0.1 - - [05/Jan/2012 12:47:46] POST /storage HTTP/1.1 500 79 0.1150 127.0.0.1 - - [05/Jan/2012 12:50:20] GET /storage HTTP/1.1 200 180 0.0077 127.0.0.1 - - [05/Jan/2012 12:50:24] GET /storage HTTP/1.1 200 180 0.0082 127.0.0.1 - - [05/Jan/2012 12:57:57] POST /storage HTTP/1.1 201 238 0.0380 127.0.0.1 - - [05/Jan/2012 13:03:14] GET /storage HTTP/1.1 200 242 0.0076 127.0.0.1 - - [05/Jan/2012 13:03:20] GET /storage HTTP/1.1 200 242 0.0072 The occi-storage list doesn't show any new storage Have you any suggestions? Can you help me to solve the problem?? Thanks! 2012/1/4 salma rebai rebai.sa...@gmail.com Hi, Thanks for your response. The folder of my OpenNebula installation (/srv/opennebula) is a large shared space. SO i don't know if this really a disk space problem. When i used the command line oneimage create to upload a new image, I don't find any problems, and images are stored in the (/src/opennebula/var/images) folder. But, I don't know when new images uploaded with occi-storage take place... Is there a specific folder used by occi-storage?? Thanks for your Help! Best Regards. 2012/1/4 Hector Sanjuan hsanj...@opennebula.org Hi, it looks to me like you're short of space to upload your image: /usr/local/lib/ruby/gems/1.8/**gems/thin-1.2.11/lib/thin/**request.rb:77:in `parse': No space left on device - /tmp/thin-body20120104-29992-**1v1tn4a-0 (Errno::ENOSPC) -- Hector Sanjuan OpenNebula Developer __**_ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/**listinfo.cgi/users-opennebula.**orghttp://lists.opennebula.org/listinfo.cgi/users-opennebula.org -- Salma REBAI Ingénieur Informatique Mastère Réseaux et Systèmes Multimédia Ecole Nationale des Sciences Informatiques Univ. Manouba, Tunisie Institut Télécom SudParis rebai.sa...@gmail.com -- Salma REBAI Ingénieur Informatique Mastère Réseaux et Systèmes Multimédia Ecole Nationale des Sciences Informatiques Univ. Manouba, Tunisie Institut Télécom SudParis rebai.sa...@gmail.com --
Re: [one-users] occi-storage create fails
Hi, Apparently it is a space problem! I have tested the occi-storage command with a small text file and I succeeded to upload It. I think that occi uses a temporary folder (/tmp) during uploading new images and finally it saves these images in the ($ONE_LOCATION/var/images) folder But I don't know how to specify this temporary folder. For the moment I have changed in the ($ONE_LOCATION/bin/occi-server) file the TMPDIR variable to be like that : export TMPDIR=/srv/opennebula/tmp After restarting the occi-server , the /srv/opennebula/tmp folder is created, and when I run the occi-storage create image.xml command, I noticed some file that are copied in this file: ls -l /srv/opennebula/tmp total 28561060 -rw--- 1 opennebula opennebula 3448287232 Jan 5 12:44 RackMultipart20120105-23685-1b91zls-0 -rw--- 1 opennebula opennebula 12884901888 Jan 5 12:25 RackMultipart20120105-23685-1mhvl6-0 -rw--- 1 opennebula opennebula 12884902433 Jan 5 12:43 thin-body20120105-23685-1y5klur-0 But after some time the occi-storage create command fails with the error server returned nothing (no headers, no data) The contents of my log file is as follows cat var/occi-server.log -- Server configuration -- {:template_location=/srv/opennebula//etc/occi_templates, :bridge=br0, :one_xmlrpc=http://localhost:2633/RPC2;, :instance_types= {:custom={:template=custom.erb}, :small={:template=small.erb}, :medium={:template=medium.erb}, :large={:template=large.erb}}, :server=localhost, :auth=basic, :port=4567} == Sinatra/1.3.1 has taken the stage on 4567 for development with backup from Thin 127.0.0.1 - - [05/Jan/2012 12:10:46] GET /network HTTP/1.1 200 119 0.0470 127.0.0.1 - - [05/Jan/2012 12:21:42] GET /network HTTP/1.1 200 119 0.2190 127.0.0.1 - - [05/Jan/2012 12:21:49] GET /storage HTTP/1.1 200 180 0.2270 127.0.0.1 - - [05/Jan/2012 12:24:15] GET /network HTTP/1.1 200 119 0.1177 127.0.0.1 - - [05/Jan/2012 12:25:17] POST /storage HTTP/1.1 500 79 0.0125 127.0.0.1 - - [05/Jan/2012 12:45:16] GET /storage HTTP/1.1 200 180 0.1723 127.0.0.1 - - [05/Jan/2012 12:45:20] GET /storage HTTP/1.1 200 180 0.1987 127.0.0.1 - - [05/Jan/2012 12:47:38] GET /network HTTP/1.1 200 119 0.1170 127.0.0.1 - - [05/Jan/2012 12:47:46] POST /storage HTTP/1.1 500 79 0.1150 127.0.0.1 - - [05/Jan/2012 12:50:20] GET /storage HTTP/1.1 200 180 0.0077 127.0.0.1 - - [05/Jan/2012 12:50:24] GET /storage HTTP/1.1 200 180 0.0082 127.0.0.1 - - [05/Jan/2012 12:57:57] POST /storage HTTP/1.1 201 238 0.0380 127.0.0.1 - - [05/Jan/2012 13:03:14] GET /storage HTTP/1.1 200 242 0.0076 127.0.0.1 - - [05/Jan/2012 13:03:20] GET /storage HTTP/1.1 200 242 0.0072 The occi-storage list doesn't show any new storage Have you any suggestions? Can you help me to solve the problem?? Thanks! 2012/1/4 salma rebai rebai.sa...@gmail.com Hi, Thanks for your response. The folder of my OpenNebula installation (/srv/opennebula) is a large shared space. SO i don't know if this really a disk space problem. When i used the command line oneimage create to upload a new image, I don't find any problems, and images are stored in the (/src/opennebula/var/images) folder. But, I don't know when new images uploaded with occi-storage take place... Is there a specific folder used by occi-storage?? Thanks for your Help! Best Regards. 2012/1/4 Hector Sanjuan hsanj...@opennebula.org Hi, it looks to me like you're short of space to upload your image: /usr/local/lib/ruby/gems/1.8/**gems/thin-1.2.11/lib/thin/**request.rb:77:in `parse': No space left on device - /tmp/thin-body20120104-29992-**1v1tn4a-0 (Errno::ENOSPC) -- Hector Sanjuan OpenNebula Developer __**_ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/**listinfo.cgi/users-opennebula.**orghttp://lists.opennebula.org/listinfo.cgi/users-opennebula.org -- Salma REBAI Ingénieur Informatique Mastère Réseaux et Systèmes Multimédia Ecole Nationale des Sciences Informatiques Univ. Manouba, Tunisie Institut Télécom SudParis rebai.sa...@gmail.com -- Salma REBAI Ingénieur Informatique Mastère Réseaux et Systèmes Multimédia Ecole Nationale des Sciences Informatiques Univ. Manouba, Tunisie Institut Télécom SudParis rebai.sa...@gmail.com ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] occi-storage create fails
Hello, Any one can help me please!! have you any suggestions to solve this problem. Best Regards. 2012/1/3 salma rebai rebai.sa...@gmail.com Hi all, I am using OCCI with OpenNebula 3.0. I have configured my OCCI server and tested it, with the occi-network command and it works fine. But, when i try to upload an image with the occi-storage command, I got this error : failed sending data to the peer My configuration is as follows : -- cat etc/occi-server.conf # OpenNebula sever contact information :one_xmlrpc: http://localhost:2633/RPC2 # Host and port where OCCI server will run :server: localhost :port: 4567 # SSL proxy that serves the API (set if is being used) #:ssl_server: fqdm.of.the.server # Configuration for OpenNebula's Virtual Networks :bridge: br0 # Authentication protocol for the OCCI server: # basic, for OpenNebula's user-password scheme # x509, for x509 certificates based authentication :auth: basic # VM types allowed and its template file (inside templates directory) :instance_types: :custom: :template: custom.erb :small: :template: small.erb :medium: :template: medium.erb :large: :template: large.erb -- The command I tested is : occi-storage create storage.xml and here is the xml file contents : - cat storage.xml STORAGE NAMEubuntu_11/NAME DESCRIPTIONA VM containing the Ubuntu OS/DESCRIPTION TYPEOS/TYPE URLfile:///srv/opennebula/images/ubuntu.img/URL /STORAGE After executing the occi-storage command I got the error described above and the OCCI-server is stopped Any suggestions ??!!! Thanks in advance for your help! Best Regards. -- Salma REBAI Ingénieur Informatique Mastère Réseaux et Systèmes Multimédia Ecole Nationale des Sciences Informatiques Univ. Manouba, Tunisie Institut Télécom SudParis rebai.sa...@gmail.com -- Salma REBAI Ingénieur Informatique Mastère Réseaux et Systèmes Multimédia Ecole Nationale des Sciences Informatiques Univ. Manouba, Tunisie Institut Télécom SudParis rebai.sa...@gmail.com ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] occi-storage create fails
Hi, can you send /var/log/one/occi-server.log? Hector En Wed, 04 Jan 2012 10:57:25 +0100, salma rebai rebai.sa...@gmail.com escribió: Hello, Any one can help me please!! have you any suggestions to solve this problem. Best Regards. 2012/1/3 salma rebai rebai.sa...@gmail.com Hi all, I am using OCCI with OpenNebula 3.0. I have configured my OCCI server and tested it, with the occi-network command and it works fine. But, when i try to upload an image with the occi-storage command, I got this error : failed sending data to the peer My configuration is as follows : -- cat etc/occi-server.conf # OpenNebula sever contact information :one_xmlrpc: http://localhost:2633/RPC2 # Host and port where OCCI server will run :server: localhost :port: 4567 # SSL proxy that serves the API (set if is being used) #:ssl_server: fqdm.of.the.server # Configuration for OpenNebula's Virtual Networks :bridge: br0 # Authentication protocol for the OCCI server: # basic, for OpenNebula's user-password scheme # x509, for x509 certificates based authentication :auth: basic # VM types allowed and its template file (inside templates directory) :instance_types: :custom: :template: custom.erb :small: :template: small.erb :medium: :template: medium.erb :large: :template: large.erb -- The command I tested is : occi-storage create storage.xml and here is the xml file contents : - cat storage.xml STORAGE NAMEubuntu_11/NAME DESCRIPTIONA VM containing the Ubuntu OS/DESCRIPTION TYPEOS/TYPE URLfile:///srv/opennebula/images/ubuntu.img/URL /STORAGE After executing the occi-storage command I got the error described above and the OCCI-server is stopped Any suggestions ??!!! Thanks in advance for your help! Best Regards. -- Salma REBAI Ingénieur Informatique Mastère Réseaux et Systèmes Multimédia Ecole Nationale des Sciences Informatiques Univ. Manouba, Tunisie Institut Télécom SudParis rebai.sa...@gmail.com -- Hector Sanjuan OpenNebula Developer ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] occi-storage create fails
Hi, it looks to me like you're short of space to upload your image: /usr/local/lib/ruby/gems/1.8/gems/thin-1.2.11/lib/thin/request.rb:77:in `parse': No space left on device - /tmp/thin-body20120104-29992-1v1tn4a-0 (Errno::ENOSPC) -- Hector Sanjuan OpenNebula Developer ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] occi-storage create fails
Hi, Thanks for your response. The folder of my OpenNebula installation (/srv/opennebula) is a large shared space. SO i don't know if this really a disk space problem. When i used the command line oneimage create to upload a new image, I don't find any problems, and images are stored in the (/src/opennebula/var/images) folder. But, I don't know when new images uploaded with occi-storage take place... Is there a specific folder used by occi-storage?? Thanks for your Help! Best Regards. 2012/1/4 Hector Sanjuan hsanj...@opennebula.org Hi, it looks to me like you're short of space to upload your image: /usr/local/lib/ruby/gems/1.8/**gems/thin-1.2.11/lib/thin/**request.rb:77:in `parse': No space left on device - /tmp/thin-body20120104-29992-**1v1tn4a-0 (Errno::ENOSPC) -- Hector Sanjuan OpenNebula Developer __**_ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/**listinfo.cgi/users-opennebula.**orghttp://lists.opennebula.org/listinfo.cgi/users-opennebula.org -- Salma REBAI Ingénieur Informatique Mastère Réseaux et Systèmes Multimédia Ecole Nationale des Sciences Informatiques Univ. Manouba, Tunisie Institut Télécom SudParis rebai.sa...@gmail.com ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org