Bug 803905

Summary: osapi v1.1 returns errors when getting server status
Product: [Fedora] Fedora Reporter: Steven Dake <sdake>
Component: openstack-novaAssignee: Pádraig Brady <pbrady>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 17CC: akscram, alexander.sakhnov, asalkeld, bfilippov, jonathansteffan, markmc, matt_domsch, mlvov, pbrady, p, rbryant, rkukura
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Fixed In Version: openstack-nova-2012.1-0.10.rc1.fc17 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-04-12 03:00:42 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description Steven Dake 2012-03-15 22:27:20 UTC
Description of problem:
api log attached

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. run code in my on disk repo (not yet pushed)
2. I can provide code if needed
3. The essential operation is to post a server (which works) then get the server (which produces the error results)
Actual results:
2012-03-15 15:20:55 INFO nova.api.openstack.wsgi [req-86b36a4f-3dfa-4109-8112-14cc108b11e8 app_wordpress sdake] GET http://localhost:8774/v1.1/sdake/servers/26c5e18f-a370-44e1-b5ee-4d1021e8b46f
2012-03-15 15:20:55 ERROR nova.api.openstack [req-86b36a4f-3dfa-4109-8112-14cc108b11e8 app_wordpress sdake] Caught error: Template tree mismatch; adding slave servers to master server
(nova.api.openstack): TRACE: Traceback (most recent call last):
(nova.api.openstack): TRACE:   File "/usr/lib/python2.7/site-packages/nova/api/openstack/__init__.py", line 41, in __call__
(nova.api.openstack): TRACE:     return req.get_response(self.application)
(nova.api.openstack): TRACE:   File "/usr/lib/python2.7/site-packages/webob/request.py", line 1053, in get_response
(nova.api.openstack): TRACE:     application, catch_exc_info=False)
(nova.api.openstack): TRACE:   File "/usr/lib/python2.7/site-packages/webob/request.py", line 1022, in call_application
(nova.api.openstack): TRACE:     app_iter = application(self.environ, start_response)
(nova.api.openstack): TRACE:   File "/usr/lib/python2.7/site-packages/webob/dec.py", line 159, in __call__
(nova.api.openstack): TRACE:     return resp(environ, start_response)
(nova.api.openstack): TRACE:   File "/usr/lib/python2.7/site-packages/routes/middleware.py", line 131, in __call__
(nova.api.openstack): TRACE:     response = self.app(environ, start_response)
(nova.api.openstack): TRACE:   File "/usr/lib/python2.7/site-packages/webob/dec.py", line 159, in __call__
(nova.api.openstack): TRACE:     return resp(environ, start_response)
(nova.api.openstack): TRACE:   File "/usr/lib/python2.7/site-packages/webob/dec.py", line 147, in __call__
(nova.api.openstack): TRACE:     resp = self.call_func(req, *args, **self.kwargs)
(nova.api.openstack): TRACE:   File "/usr/lib/python2.7/site-packages/webob/dec.py", line 208, in call_func
(nova.api.openstack): TRACE:     return self.func(req, *args, **kwargs)
(nova.api.openstack): TRACE:   File "/usr/lib/python2.7/site-packages/nova/api/openstack/wsgi.py", line 800, in __call__
(nova.api.openstack): TRACE:     content_type, body, accept)
(nova.api.openstack): TRACE:   File "/usr/lib/python2.7/site-packages/nova/api/openstack/wsgi.py", line 876, in _process_stack
(nova.api.openstack): TRACE:     request, action_args)

(nova.api.openstack): TRACE:   File "/usr/lib/python2.7/site-packages/nova/api/openstack/wsgi.py", line 770, in post_process_extensions
(nova.api.openstack): TRACE:     **action_args)
(nova.api.openstack): TRACE:   File "/usr/lib/python2.7/site-packages/nova/api/openstack/compute/contrib/extended_server_attributes.py", line 60, in show
(nova.api.openstack): TRACE:     resp_obj.attach(xml=ExtendedServerAttributesTemplate())
(nova.api.openstack): TRACE:   File "/usr/lib/python2.7/site-packages/nova/api/openstack/wsgi.py", line 493, in attach
(nova.api.openstack): TRACE:     self.serializer.attach(kwargs[self.media_type])
(nova.api.openstack): TRACE:   File "/usr/lib/python2.7/site-packages/nova/api/openstack/xmlutil.py", line 741, in attach
(nova.api.openstack): TRACE:     raise ValueError(msg)
(nova.api.openstack): TRACE: ValueError: Template tree mismatch; adding slave servers to master server
(nova.api.openstack): TRACE:

with a compute error (500) error code produced
Expected results:
server info generated

Additional info:

Comment 1 Steven Dake 2012-03-16 02:46:13 UTC
note taking master of the file:


appears to fix the problem.  It looks like it was rebased today.


Comment 2 Pádraig Brady 2012-03-16 04:12:56 UTC
Thanks. I'll look at back porting a fix in the morning.

Comment 3 Pádraig Brady 2012-03-16 18:52:33 UTC
Looks like this 1 character change fixes it:

Comment 4 Fedora Update System 2012-03-16 23:54:53 UTC
openstack-nova-2012.1-0.8.e4.fc17 has been submitted as an update for Fedora 17.

Comment 5 Fedora Update System 2012-03-17 16:49:54 UTC
Package openstack-nova-2012.1-0.8.e4.fc17:
* should fix your issue,
* was pushed to the Fedora 17 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing openstack-nova-2012.1-0.8.e4.fc17'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).

Comment 6 Fedora Update System 2012-03-20 16:07:25 UTC
openstack-nova-2012.1-0.8.rc1.fc17 has been submitted as an update for Fedora 17.

Comment 7 Fedora Update System 2012-03-26 09:15:23 UTC
openstack-nova-2012.1-0.9.rc1.fc17 has been submitted as an update for Fedora 17.

Comment 8 Fedora Update System 2012-03-29 19:01:21 UTC
openstack-nova-2012.1-0.10.rc1.fc17 has been submitted as an update for Fedora 17.

Comment 9 Fedora Update System 2012-04-12 03:00:42 UTC
openstack-nova-2012.1-0.10.rc1.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.