** Changed in: nova
       Status: Fix Committed => Fix Released

** Changed in: nova
    Milestone: None => havana-1

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1182114

Title:
  Cannot resize a volume backed instance booted without an image

Status in OpenStack Compute (Nova):
  Fix Released
Status in OpenStack Compute (nova) grizzly series:
  Fix Committed

Bug description:
  When trying to resize a volume that was booted without an image
  specified it fails with cryptic "resource not found".

  Expected result: it should be possible to resize a volume backed
  instance.

  More details:

  [ndipanov@devstack devstack]$ cinder create --display_name image_vol 
--image-id $IMAGE 1
  [ndipanov@devstack devstack]$ nova boot --flavor 1 --block-device-mapping 
vda=$VOLUME:::0 test_volume_boot
  [ndipanov@devstack devstack]$ nova resize 
6067a8f0-107d-430c-a67c-f31802b160b8 2
  ERROR: The resource could not be found. (HTTP 404) (Request-ID: 
req-14d859d3-9c07-4d01-b6f4-8974046d5d63)

  In the API logs:
  2013-05-20 17:20:22.981 ERROR nova.api.openstack 
[req-14d859d3-9c07-4d01-b6f4-8974046d5d63 demo demo] Caught error: Image  could 
not be found.
  2013-05-20 17:20:22.981 TRACE nova.api.openstack Traceback (most recent call 
last):
  2013-05-20 17:20:22.981 TRACE nova.api.openstack   File 
"/opt/stack/nova/nova/api/openstack/__init__.py", line 83, in __call__
  2013-05-20 17:20:22.981 TRACE nova.api.openstack     return 
req.get_response(self.application)
  2013-05-20 17:20:22.981 TRACE nova.api.openstack   File 
"/usr/lib/python2.7/site-packages/webob/request.py", line 1296, in send
  2013-05-20 17:20:22.981 TRACE nova.api.openstack     application, 
catch_exc_info=False)
  2013-05-20 17:20:22.981 TRACE nova.api.openstack   File 
"/usr/lib/python2.7/site-packages/webob/request.py", line 1260, in 
call_application
  2013-05-20 17:20:22.981 TRACE nova.api.openstack     app_iter = 
application(self.environ, start_response)
  2013-05-20 17:20:22.981 TRACE nova.api.openstack   File 
"/usr/lib/python2.7/site-packages/webob/dec.py", line 144, in __call__
  2013-05-20 17:20:22.981 TRACE nova.api.openstack     return resp(environ, 
start_response)
  2013-05-20 17:20:22.981 TRACE nova.api.openstack   File 
"/opt/stack/python-keystoneclient/keystoneclient/middleware/auth_token.py", 
line 456, in __call__
  2013-05-20 17:20:22.981 TRACE nova.api.openstack     return self.app(env, 
start_response)
  2013-05-20 17:20:22.981 TRACE nova.api.openstack   File 
"/usr/lib/python2.7/site-packages/webob/dec.py", line 144, in __call__
  2013-05-20 17:20:22.981 TRACE nova.api.openstack     return resp(environ, 
start_response)
  2013-05-20 17:20:22.981 TRACE nova.api.openstack   File 
"/usr/lib/python2.7/site-packages/webob/dec.py", line 144, in __call__
  2013-05-20 17:20:22.981 TRACE nova.api.openstack     return resp(environ, 
start_response)
  2013-05-20 17:20:22.981 TRACE nova.api.openstack   File 
"/usr/lib/python2.7/site-packages/webob/dec.py", line 144, in __call__
  2013-05-20 17:20:22.981 TRACE nova.api.openstack     return resp(environ, 
start_response)
  2013-05-20 17:20:22.981 TRACE nova.api.openstack   File 
"/usr/lib/python2.7/site-packages/routes/middleware.py", line 131, in __call__
  2013-05-20 17:20:22.981 TRACE nova.api.openstack     response = 
self.app(environ, start_response)
  2013-05-20 17:20:22.981 TRACE nova.api.openstack   File 
"/usr/lib/python2.7/site-packages/webob/dec.py", line 144, in __call__
  2013-05-20 17:20:22.981 TRACE nova.api.openstack     return resp(environ, 
start_response)
  2013-05-20 17:20:22.981 TRACE nova.api.openstack   File 
"/usr/lib/python2.7/site-packages/webob/dec.py", line 130, in __call__
  2013-05-20 17:20:22.981 TRACE nova.api.openstack     resp = 
self.call_func(req, *args, **self.kwargs)
  2013-05-20 17:20:22.981 TRACE nova.api.openstack   File 
"/usr/lib/python2.7/site-packages/webob/dec.py", line 195, in call_func
  2013-05-20 17:20:22.981 TRACE nova.api.openstack     return self.func(req, 
*args, **kwargs)
  2013-05-20 17:20:22.981 TRACE nova.api.openstack   File 
"/opt/stack/nova/nova/api/openstack/wsgi.py", line 899, in __call__
  2013-05-20 17:20:22.981 TRACE nova.api.openstack     content_type, body, 
accept)
  2013-05-20 17:20:22.981 TRACE nova.api.openstack   File 
"/opt/stack/nova/nova/api/openstack/wsgi.py", line 953, in _process_stack
  2013-05-20 17:20:22.981 TRACE nova.api.openstack     action_result = 
self.dispatch(meth, request, action_args)
  2013-05-20 17:20:22.981 TRACE nova.api.openstack   File 
"/opt/stack/nova/nova/api/openstack/wsgi.py", line 1032, in dispatch
  2013-05-20 17:20:22.981 TRACE nova.api.openstack     return 
method(req=request, **action_args)
  2013-05-20 17:20:22.981 TRACE nova.api.openstack   File 
"/opt/stack/nova/nova/api/openstack/compute/servers.py", line 1211, in 
_action_resize
  2013-05-20 17:20:22.981 TRACE nova.api.openstack     return self._resize(req, 
id, flavor_ref, **kwargs)
  2013-05-20 17:20:22.981 TRACE nova.api.openstack   File 
"/opt/stack/nova/nova/api/openstack/compute/servers.py", line 1091, in _resize
  2013-05-20 17:20:22.981 TRACE nova.api.openstack     
self.compute_api.resize(context, instance, flavor_id, **kwargs)
  2013-05-20 17:20:22.981 TRACE nova.api.openstack   File 
"/opt/stack/nova/nova/compute/api.py", line 169, in wrapped
  2013-05-20 17:20:22.981 TRACE nova.api.openstack     return func(self, 
context, target, *args, **kwargs)
  2013-05-20 17:20:22.981 TRACE nova.api.openstack   File 
"/opt/stack/nova/nova/compute/api.py", line 159, in inner
  2013-05-20 17:20:22.981 TRACE nova.api.openstack     return function(self, 
context, instance, *args, **kwargs)
  2013-05-20 17:20:22.981 TRACE nova.api.openstack   File 
"/opt/stack/nova/nova/compute/api.py", line 140, in inner
  2013-05-20 17:20:22.981 TRACE nova.api.openstack     return f(self, context, 
instance, *args, **kw)
  2013-05-20 17:20:22.981 TRACE nova.api.openstack   File 
"/opt/stack/nova/nova/compute/api.py", line 2023, in resize
  2013-05-20 17:20:22.981 TRACE nova.api.openstack     image = 
self.image_service.show(context, instance['image_ref'])
  2013-05-20 17:20:22.981 TRACE nova.api.openstack   File 
"/opt/stack/nova/nova/image/glance.py", line 239, in show
  2013-05-20 17:20:22.981 TRACE nova.api.openstack     
_reraise_translated_image_exception(image_id)
  2013-05-20 17:20:22.981 TRACE nova.api.openstack   File 
"/opt/stack/nova/nova/image/glance.py", line 237, in show
  2013-05-20 17:20:22.981 TRACE nova.api.openstack     image = 
self._client.call(context, 1, 'get', image_id)
  2013-05-20 17:20:22.981 TRACE nova.api.openstack   File 
"/opt/stack/nova/nova/image/glance.py", line 182, in call
  2013-05-20 17:20:22.981 TRACE nova.api.openstack     return 
getattr(client.images, method)(*args, **kwargs)
  2013-05-20 17:20:22.981 TRACE nova.api.openstack   File 
"/opt/stack/python-glanceclient/glanceclient/v1/images.py", line 104, in get
  2013-05-20 17:20:22.981 TRACE nova.api.openstack     % urllib.quote(image_id))
  2013-05-20 17:20:22.981 TRACE nova.api.openstack   File 
"/opt/stack/python-glanceclient/glanceclient/common/http.py", line 260, in 
raw_request
  2013-05-20 17:20:22.981 TRACE nova.api.openstack     return 
self._http_request(url, method, **kwargs)
  2013-05-20 17:20:22.981 TRACE nova.api.openstack   File 
"/opt/stack/python-glanceclient/glanceclient/common/http.py", line 221, in 
_http_request
  2013-05-20 17:20:22.981 TRACE nova.api.openstack     raise 
exc.from_response(resp, body_str)
  2013-05-20 17:20:22.981 TRACE nova.api.openstack ImageNotFound: Image  could 
not be found.

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1182114/+subscriptions

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to