← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1599111] [NEW] HTTP exception thrown: Unexpected API Error

 

Public bug reported:

Description
===========
Exception  is thrown when creating container from nova.

Steps to reproduce
==================
1. create a container image in glance
glance image-create --container-format=docker --disk-format=raw --name ubuntu
2. create a container
nova boot --flavor m1.small --image ubuntu ubuntucontainer

Expected result
===============
Container should be created

Actual result
=============
API Error

Environment
===========
1. Nova version
commit b9d757bc0429159a235a397c51d510bd40e19709
Merge: 44db7db 566bdf1
Author: Jenkins <jenkins@xxxxxxxxxxxxxxxxxxxx>
Date:   Wed Apr 13 03:21:25 2016 +0000

    Merge "Remove unused parameter from _get_requested_instance_group"


2. Nova-docker version
commit 034a4842fc1ebba5912e02cff8cd197ae81eb0c3
Author: zhangguoqing <zhang.guoqing@xxxxxxxxxxx>
Date:   Mon May 23 12:17:07 2016 +0000

    add active_migrations attribute to DockerDriver
    
    1. For passing the nova unit tests about the active_migrations attribute.
    2. Fix test_get_dns_entries DNS IPs that changed from nova.
    3. Add conf path to netconf that changed from nova.
    
    Closes-Bug: #1584741
    Closes-Bug: #1582615
    
    Change-Id: Iaab7e695055f042b9060f07e31681c66197b8c79

3. Glance version
commit bded216e10b07735a09077f0d4f4901e963c83b5
Author: OpenStack Proposal Bot <openstack-infra@xxxxxxxxxxxxxxxxxxx>
Date:   Tue Apr 12 23:08:25 2016 +0000

    Updated from global requirements
    
    Change-Id: I706c9ea19e8ab2c49ce748bba31ae03dd0ec6d74


4. Compute Driver
compute_driver=novadocker.virt.docker.DockerDriver

Logs
====2016-07-05 15:52:02.835 DEBUG nova.api.openstack.wsgi [req-a956f02f-ef9f-4309-8c4d-fa3ab355bd5a admin admin] Calling method '<bound method ImagesController.show of <nova.api.openstack.compute.images.ImagesController object at 0x7febe55faad0>>' from (pid=30686) _process_stack /opt/stack/nova/nova/api/openstack/wsgi.py:699
2016-07-05 15:52:03.451 ERROR nova.api.openstack.extensions [req-a956f02f-ef9f-4309-8c4d-fa3ab355bd5a admin admin] Unexpected exception in API method
2016-07-05 15:52:03.451 TRACE nova.api.openstack.extensions Traceback (most recent call last):
2016-07-05 15:52:03.451 TRACE nova.api.openstack.extensions   File "/opt/stack/nova/nova/api/openstack/extensions.py", line 478, in wrapped
2016-07-05 15:52:03.451 TRACE nova.api.openstack.extensions     return f(*args, **kwargs)
2016-07-05 15:52:03.451 TRACE nova.api.openstack.extensions   File "/opt/stack/nova/nova/api/openstack/compute/images.py", line 87, in show
2016-07-05 15:52:03.451 TRACE nova.api.openstack.extensions     image = self._image_api.get(context, id)
2016-07-05 15:52:03.451 TRACE nova.api.openstack.extensions   File "/opt/stack/nova/nova/image/api.py", line 93, in get
2016-07-05 15:52:03.451 TRACE nova.api.openstack.extensions     show_deleted=show_deleted)
2016-07-05 15:52:03.451 TRACE nova.api.openstack.extensions   File "/opt/stack/nova/nova/image/glance.py", line 283, in show
2016-07-05 15:52:03.451 TRACE nova.api.openstack.extensions     include_locations=include_locations)
2016-07-05 15:52:03.451 TRACE nova.api.openstack.extensions   File "/opt/stack/nova/nova/image/glance.py", line 513, in _translate_from_glance
2016-07-05 15:52:03.451 TRACE nova.api.openstack.extensions     include_locations=include_locations)
2016-07-05 15:52:03.451 TRACE nova.api.openstack.extensions   File "/opt/stack/nova/nova/image/glance.py", line 597, in _extract_attributes
2016-07-05 15:52:03.451 TRACE nova.api.openstack.extensions     output[attr] = getattr(image, attr) or 0
2016-07-05 15:52:03.451 TRACE nova.api.openstack.extensions   File "/usr/local/lib/python2.7/dist-packages/glanceclient/openstack/common/apiclient/base.py", line 490, in __getattr__
2016-07-05 15:52:03.451 TRACE nova.api.openstack.extensions     self.get()
2016-07-05 15:52:03.451 TRACE nova.api.openstack.extensions   File "/usr/local/lib/python2.7/dist-packages/glanceclient/openstack/common/apiclient/base.py", line 512, in get
2016-07-05 15:52:03.451 TRACE nova.api.openstack.extensions     {'x_request_id': self.manager.client.last_request_id})
2016-07-05 15:52:03.451 TRACE nova.api.openstack.extensions AttributeError: 'HTTPClient' object has no attribute 'last_request_id'
2016-07-05 15:52:03.451 TRACE nova.api.openstack.extensions

** Affects: nova
     Importance: Undecided
     Assignee: Madhuri Kumari (madhuri-rai07)
         Status: New

** Changed in: nova
     Assignee: (unassigned) => Madhuri Kumari (madhuri-rai07)

-- 
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/1599111

Title:
  HTTP exception thrown: Unexpected API Error

Status in OpenStack Compute (nova):
  New

Bug description:
  Description
  ===========
  Exception  is thrown when creating container from nova.

  Steps to reproduce
  ==================
  1. create a container image in glance
  glance image-create --container-format=docker --disk-format=raw --name ubuntu
  2. create a container
  nova boot --flavor m1.small --image ubuntu ubuntucontainer

  Expected result
  ===============
  Container should be created

  Actual result
  =============
  API Error

  Environment
  ===========
  1. Nova version
  commit b9d757bc0429159a235a397c51d510bd40e19709
  Merge: 44db7db 566bdf1
  Author: Jenkins <jenkins@xxxxxxxxxxxxxxxxxxxx>
  Date:   Wed Apr 13 03:21:25 2016 +0000

      Merge "Remove unused parameter from _get_requested_instance_group"

  
  2. Nova-docker version
  commit 034a4842fc1ebba5912e02cff8cd197ae81eb0c3
  Author: zhangguoqing <zhang.guoqing@xxxxxxxxxxx>
  Date:   Mon May 23 12:17:07 2016 +0000

      add active_migrations attribute to DockerDriver
      
      1. For passing the nova unit tests about the active_migrations attribute.
      2. Fix test_get_dns_entries DNS IPs that changed from nova.
      3. Add conf path to netconf that changed from nova.
      
      Closes-Bug: #1584741
      Closes-Bug: #1582615
      
      Change-Id: Iaab7e695055f042b9060f07e31681c66197b8c79

  3. Glance version
  commit bded216e10b07735a09077f0d4f4901e963c83b5
  Author: OpenStack Proposal Bot <openstack-infra@xxxxxxxxxxxxxxxxxxx>
  Date:   Tue Apr 12 23:08:25 2016 +0000

      Updated from global requirements
      
      Change-Id: I706c9ea19e8ab2c49ce748bba31ae03dd0ec6d74

  
  4. Compute Driver
  compute_driver=novadocker.virt.docker.DockerDriver

  Logs
  ====2016-07-05 15:52:02.835 DEBUG nova.api.openstack.wsgi [req-a956f02f-ef9f-4309-8c4d-fa3ab355bd5a admin admin] Calling method '<bound method ImagesController.show of <nova.api.openstack.compute.images.ImagesController object at 0x7febe55faad0>>' from (pid=30686) _process_stack /opt/stack/nova/nova/api/openstack/wsgi.py:699
  2016-07-05 15:52:03.451 ERROR nova.api.openstack.extensions [req-a956f02f-ef9f-4309-8c4d-fa3ab355bd5a admin admin] Unexpected exception in API method
  2016-07-05 15:52:03.451 TRACE nova.api.openstack.extensions Traceback (most recent call last):
  2016-07-05 15:52:03.451 TRACE nova.api.openstack.extensions   File "/opt/stack/nova/nova/api/openstack/extensions.py", line 478, in wrapped
  2016-07-05 15:52:03.451 TRACE nova.api.openstack.extensions     return f(*args, **kwargs)
  2016-07-05 15:52:03.451 TRACE nova.api.openstack.extensions   File "/opt/stack/nova/nova/api/openstack/compute/images.py", line 87, in show
  2016-07-05 15:52:03.451 TRACE nova.api.openstack.extensions     image = self._image_api.get(context, id)
  2016-07-05 15:52:03.451 TRACE nova.api.openstack.extensions   File "/opt/stack/nova/nova/image/api.py", line 93, in get
  2016-07-05 15:52:03.451 TRACE nova.api.openstack.extensions     show_deleted=show_deleted)
  2016-07-05 15:52:03.451 TRACE nova.api.openstack.extensions   File "/opt/stack/nova/nova/image/glance.py", line 283, in show
  2016-07-05 15:52:03.451 TRACE nova.api.openstack.extensions     include_locations=include_locations)
  2016-07-05 15:52:03.451 TRACE nova.api.openstack.extensions   File "/opt/stack/nova/nova/image/glance.py", line 513, in _translate_from_glance
  2016-07-05 15:52:03.451 TRACE nova.api.openstack.extensions     include_locations=include_locations)
  2016-07-05 15:52:03.451 TRACE nova.api.openstack.extensions   File "/opt/stack/nova/nova/image/glance.py", line 597, in _extract_attributes
  2016-07-05 15:52:03.451 TRACE nova.api.openstack.extensions     output[attr] = getattr(image, attr) or 0
  2016-07-05 15:52:03.451 TRACE nova.api.openstack.extensions   File "/usr/local/lib/python2.7/dist-packages/glanceclient/openstack/common/apiclient/base.py", line 490, in __getattr__
  2016-07-05 15:52:03.451 TRACE nova.api.openstack.extensions     self.get()
  2016-07-05 15:52:03.451 TRACE nova.api.openstack.extensions   File "/usr/local/lib/python2.7/dist-packages/glanceclient/openstack/common/apiclient/base.py", line 512, in get
  2016-07-05 15:52:03.451 TRACE nova.api.openstack.extensions     {'x_request_id': self.manager.client.last_request_id})
  2016-07-05 15:52:03.451 TRACE nova.api.openstack.extensions AttributeError: 'HTTPClient' object has no attribute 'last_request_id'
  2016-07-05 15:52:03.451 TRACE nova.api.openstack.extensions

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


Follow ups