← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1169777] Re: cinderclient stacktrace when 404 from cinder get_snapshot

 

** 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/1169777

Title:
  cinderclient stacktrace when 404 from cinder get_snapshot

Status in OpenStack Compute (Nova):
  Fix Released

Bug description:
  During a the tempest test
  tempest.tests.boto.test_ec2_volumes.EC2VolumesTest.test_create_volume_from_snapshot
  the cleanup code does a snapshot update request until it fails. The
  behavior is correct, but causes a stacktrace from cinderclient

  2013-04-17 08:58:47     INFO [requests.packages.urllib3.connectionpool] Starting new HTTP connection (1): 192.168.1.18  
  2013-04-17 08:58:47    DEBUG [requests.packages.urllib3.connectionpool] "GET /v1/fe2faa887f5848449a8e02c4000ffff0/snapshots/69b0651c-34f4-4fdf-8135-1c125aeeeab9 HTTP/1.1" 404 78
  2013-04-17 08:58:47    ERROR [nova.api.ec2] Unexpected error raised: The resource could not be found. (HTTP 404) (Request-ID: req-6d441c5b-e271-4130-8853-3530b21927e3)
  Traceback (most recent call last):
    File "/srv/compile/openstack/nova/nova/api/ec2/__init__.py", line 481, in __call__
      result = api_request.invoke(context)
    File "/srv/compile/openstack/nova/nova/api/ec2/apirequest.py", line 79, in invoke
      result = method(context, **args)
    File "/srv/compile/openstack/nova/nova/api/ec2/cloud.py", line 350, in describe_snapshots
      snapshot_id=internal_id)
    File "/srv/compile/openstack/nova/nova/volume/cinder.py", line 283, in get_snapshot
      item = cinderclient(context).volume_snapshots.get(snapshot_id)
    File "/usr/local/lib/python2.7/dist-packages/cinderclient/v1/volume_snapshots.py", line 84, in get
      return self._get("/snapshots/%s" % snapshot_id, "snapshot")
    File "/usr/local/lib/python2.7/dist-packages/cinderclient/base.py", line 141, in _get
      resp, body = self.api.client.get(url)
    File "/usr/local/lib/python2.7/dist-packages/cinderclient/client.py", line 189, in get
      return self._cs_request(url, 'GET', **kwargs)
    File "/usr/local/lib/python2.7/dist-packages/cinderclient/client.py", line 157, in _cs_request
      **kwargs)
    File "/usr/local/lib/python2.7/dist-packages/cinderclient/client.py", line 140, in request
      raise exceptions.from_response(resp, body)
  NotFound: The resource could not be found. (HTTP 404) (Request-ID: req-6d441c5b-e271-4130-8853-3530b21927e3)
  2013-04-17 08:58:47    ERROR [nova.api.ec2] Environment: {"CONTENT_TYPE": "application/x-www-form-urlencoded; charset=UTF-8", "SCRIPT_NAME": "/services/Cloud", "REQUEST_METHOD": "POST", "HTTP_HOST": "192.168.1.18:8773", "PATH_INFO": "/", "SERVER_PROTOCOL": "HTTP/1.0", "HTTP_USER_AGENT": "Boto/2.8.0 (linux2)", "RAW_PATH_INFO": "/services/Cloud/", "REMOTE_ADDR": "192.168.1.18", "wsgi.url_scheme": "http", "SERVER_NAME": "192.168.1.18", "SERVER_PORT": "8773", "GATEWAY_INTERFACE": "CGI/1.1", "HTTP_ACCEPT_ENCODING": "identity"}

  We should catch the exception so the traceback does not occur, but
  otherwise preserve the current API behavior

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