Comment 5 for bug 801436

Revision history for this message
Jay Pipes (jaypipes) wrote : Re: [Bug 801436] Re: Can not upload UEC_image to Glance...

Hi again Hugo!

OK, this should be fixed now. Please update Glance and try this again.

Cheers!
jay

On Mon, Jun 27, 2011 at 12:05 AM, Hugo Kou <email address hidden> wrote:
> More clue...
> Tried to add image with glance CLI tool....
>
> ==================================
> root@api001:~/image/maver# glance add name="TEST_MAV" is_public=true disk_format=aki container_format=aki < maverick-server-uec-amd64-vmlinuz-virtual
> Added new image with ID: 10
> ==================================
> ID               Name                           Disk Format          Container Format     Size
> ---------------- ------------------------------ -------------------- -------------------- --------------
> 10               TEST_MAV                       aki                  aki                         4408496
> ==================================
>
>
> But while I add ami , there's got some error , I believe that will help.....
>
> =================================
> # glance add name="TEST_MAV_AMI" is_public=true disk_format=ami container_format=ami kernel_id=10 < maverick-server-uec-amd64.img
>
> [TRACE]
> Internal Server error: Traceback (most recent call last):
>  File "/usr/lib/python2.7/dist-packages/eventlet/wsgi.py", line 336, in handle_one_response
>    result = self.application(self.environ, start_response)
>  File "/usr/lib/pymodules/python2.7/webob/dec.py", line 147, in __call__
>    resp = self.call_func(req, *args, **self.kwargs)
>  File "/usr/lib/pymodules/python2.7/webob/dec.py", line 208, in call_func
>    return self.func(req, *args, **kwargs)
>  File "/usr/lib/pymodules/python2.7/glance/common/wsgi.py", line 113, in __call__
>    response = req.get_response(self.application)
>  File "/usr/lib/pymodules/python2.7/webob/request.py", line 1053, in get_response
>    application, catch_exc_info=False)
>  File "/usr/lib/pymodules/python2.7/webob/request.py", line 1022, in call_application
>    app_iter = application(self.environ, start_response)
>  File "/usr/lib/pymodules/python2.7/webob/dec.py", line 159, in __call__
>    return resp(environ, start_response)
>  File "/usr/lib/pymodules/python2.7/routes/middleware.py", line 131, in __call__
>    response = self.app(environ, start_response)
>  File "/usr/lib/pymodules/python2.7/webob/dec.py", line 159, in __call__
>    return resp(environ, start_response)
>  File "/usr/lib/pymodules/python2.7/webob/dec.py", line 147, in __call__
>    resp = self.call_func(req, *args, **self.kwargs)
>  File "/usr/lib/pymodules/python2.7/webob/dec.py", line 208, in call_func
>    return self.func(req, *args, **kwargs)
>  File "/usr/lib/pymodules/python2.7/glance/common/wsgi.py", line 307, in __call__
>    action, request)
>  File "/usr/lib/pymodules/python2.7/glance/common/wsgi.py", line 328, in dispatch
>    return method(*args, **kwargs)
>  File "/usr/lib/pymodules/python2.7/glance/api/v1/images.py", line 517, in create
>    return self._deserialize(request)
>  File "/usr/lib/pymodules/python2.7/glance/api/v1/images.py", line 512, in _deserialize
>    data = request.body if self.has_body(request) else None
>  File "/usr/lib/pymodules/python2.7/webob/request.py", line 483, in _body__get
>    self.make_body_seekable() # we need this to have content_length
>  File "/usr/lib/pymodules/python2.7/webob/request.py", line 739, in make_body_seekable
>    self.copy_body()
>  File "/usr/lib/pymodules/python2.7/webob/request.py", line 755, in copy_body
>    self.body = self.body_file_raw.read()
>  File "/usr/lib/python2.7/dist-packages/eventlet/wsgi.py", line 147, in read
>    return self._chunked_read(self.rfile, length)
>  File "/usr/lib/python2.7/dist-packages/eventlet/wsgi.py", line 143, in _chunked_read
>    return ''.join(response)
> MemoryError
>
> Note: Your image metadata may still be in the registry, but the image's
> status will likely be 'killed'.
>
> --
> You received this bug notification because you are a member of Glance
> Bug Team, which is subscribed to Glance.
> https://bugs.launchpad.net/bugs/801436
>
> Title:
>  Can not upload UEC_image to Glance...
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/glance/+bug/801436/+subscriptions
>