HTTP exception thrown: Unexpected API Error

Bug #1599111 reported by Madhuri Kumari
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Invalid
Undecided
Madhuri Kumari
nova-docker
New
Undecided
Unassigned

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 <email address hidden>
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@99cloud.net>
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 <email address hidden>
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

Changed in nova:
assignee: nobody → Madhuri Kumari (madhuri-rai07)
Revision history for this message
John Garbutt (johngarbutt) wrote :

nova-docker is not part of upstream nova, or supported by upstream Nova. Moving to the nova-docker project.

Changed in nova:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.