On 25 February 2014 16:51, Richard Stevenson <[email protected]>wrote:
> Hi, > > I'm unable to upload images using econe-upload. I'm using OpenNebula > 4.4, installed on Debian 7 from the repositories suggested in the > installation guide. From the local oneadmin account I get the following > error: > > oneadmin@onetest:~$ econe-upload ./ubuntu2.qcow2 > /var/lib/gems/1.9.1/gems/curb-0.8.5/lib/curl/easy.rb:62:in `perform': > Curl::Err::GotNothingError (Curl::Err::GotNothingError) > from /usr/lib/one/ruby/cloud/econe/EC2QueryClient.rb:254:in > `http_post' > from /usr/lib/one/ruby/cloud/econe/EC2QueryClient.rb:254:in > `upload_image' > from /usr/bin/econe-upload:74:in `block (2 levels) in <main>' > from /usr/lib/one/ruby/cli/command_parser.rb:449:in `call' > from /usr/lib/one/ruby/cli/command_parser.rb:449:in `run' > from /usr/lib/one/ruby/cli/command_parser.rb:76:in `initialize' > from /usr/bin/econe-upload:44:in `new' > from /usr/bin/econe-upload:44:in `<main>' > > And with multipart upload, I get a different, but equally inscrutable > error message: > > oneadmin@onetest:~$ econe-upload -m ./ubuntu2.qcow2 > /usr/lib/one/ruby/cloud/econe/EC2QueryClient.rb:284:in `upload_image': > undefined method `body' for end of file reached:CloudClient::Error > (NoMethodError) > from /usr/bin/econe-upload:74:in `block (2 levels) in <main>' > from /usr/lib/one/ruby/cli/command_parser.rb:449:in `call' > from /usr/lib/one/ruby/cli/command_parser.rb:449:in `run' > from /usr/lib/one/ruby/cli/command_parser.rb:76:in `initialize' > from /usr/bin/econe-upload:44:in `new' > from /usr/bin/econe-upload:44:in `<main>' > > Could you try changing these lines in http://docs.opennebula.org/stable/administration/sunstone_gui/sunstone.html#requirements to if !CloudClient.is_error?(res) return AWS::Response.parse(:xml => res.body) else return res end instead of if res.code == '200' return AWS::Response.parse(:xml => res.body) else return CloudClient::Error.new(res.body) end and check if there is any error in econe and oned logs in /var/log/one > Something is working, as both of these commands result in images being > uploaded to the datastore: > > oneadmin@onetest:~$ oneimage list > ID USER GROUP NAME DATASTORE SIZE TYPE PER > STAT RVMS > 28 oneadmin oneadmin ec2-bae235ce-f8 default 8G OS No > rdy 0 > 29 oneadmin oneadmin ec2-ef880266-d5 default 8G OS No > rdy 0 > > However, without an ami style image ID I'm unable to register the images. > To register an image you have to use the opennebula ID, so in this case you can register the image 28 with this command: econe-register 28 Cheers [...] -- -- Daniel Molina Project Engineer OpenNebula - Flexible Enterprise Cloud Made Simple www.OpenNebula.org | [email protected] | @OpenNebula
_______________________________________________ Users mailing list [email protected] http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
