500 error going to /

Bug #1882156 reported by Sam Morrison
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Murano
Fix Released
High
Sam Morrison

Bug Description

Making a request to / results in a 500 error

Jun 05 09:02:50 apis2-1 murano-api[9372]: 2020-06-05 09:02:50.852 9386 WARNING murano.api.middleware.version_negotiation [-] Unknown version. Returning version choices.
Jun 05 09:02:50 apis2-1 murano-api[9372]: 2020-06-05 09:02:50.854 9386 INFO eventlet.wsgi [-] Traceback (most recent call last):
Jun 05 09:02:50 apis2-1 murano-api[9372]: File "/usr/lib/python3/dist-packages/eventlet/wsgi.py", line 547, in handle_one_response
Jun 05 09:02:50 apis2-1 murano-api[9372]: result = self.application(self.environ, start_response)
Jun 05 09:02:50 apis2-1 murano-api[9372]: File "/usr/lib/python3/dist-packages/webob/dec.py", line 129, in __call__
Jun 05 09:02:50 apis2-1 murano-api[9372]: resp = self.call_func(req, *args, **kw)
Jun 05 09:02:50 apis2-1 murano-api[9372]: File "/usr/lib/python3/dist-packages/webob/dec.py", line 193, in call_func
Jun 05 09:02:50 apis2-1 murano-api[9372]: return self.func(req, *args, **kwargs)
Jun 05 09:02:50 apis2-1 murano-api[9372]: File "/usr/lib/python3/dist-packages/oslo_middleware/base.py", line 131, in __call__
Jun 05 09:02:50 apis2-1 murano-api[9372]: response = req.get_response(self.application)
Jun 05 09:02:50 apis2-1 murano-api[9372]: File "/usr/lib/python3/dist-packages/webob/request.py", line 1314, in send
Jun 05 09:02:50 apis2-1 murano-api[9372]: application, catch_exc_info=False)
Jun 05 09:02:50 apis2-1 murano-api[9372]: File "/usr/lib/python3/dist-packages/webob/request.py", line 1278, in call_application
Jun 05 09:02:50 apis2-1 murano-api[9372]: app_iter = application(self.environ, start_response)
Jun 05 09:02:50 apis2-1 murano-api[9372]: File "/usr/lib/python3/dist-packages/webob/dec.py", line 129, in __call__
Jun 05 09:02:50 apis2-1 murano-api[9372]: resp = self.call_func(req, *args, **kw)
Jun 05 09:02:50 apis2-1 murano-api[9372]: File "/usr/lib/python3/dist-packages/webob/dec.py", line 193, in call_func
Jun 05 09:02:50 apis2-1 murano-api[9372]: return self.func(req, *args, **kwargs)
Jun 05 09:02:50 apis2-1 murano-api[9372]: File "/usr/lib/python3/dist-packages/oslo_middleware/request_id.py", line 58, in __call__
Jun 05 09:02:50 apis2-1 murano-api[9372]: response = req.get_response(self.application)
Jun 05 09:02:50 apis2-1 murano-api[9372]: File "/usr/lib/python3/dist-packages/webob/request.py", line 1314, in send
Jun 05 09:02:50 apis2-1 murano-api[9372]: application, catch_exc_info=False)
Jun 05 09:02:50 apis2-1 murano-api[9372]: File "/usr/lib/python3/dist-packages/webob/request.py", line 1278, in call_application
Jun 05 09:02:50 apis2-1 murano-api[9372]: app_iter = application(self.environ, start_response)
Jun 05 09:02:50 apis2-1 murano-api[9372]: File "/usr/lib/python3/dist-packages/webob/dec.py", line 143, in __call__
Jun 05 09:02:50 apis2-1 murano-api[9372]: return resp(environ, start_response)
Jun 05 09:02:50 apis2-1 murano-api[9372]: File "/usr/lib/python3/dist-packages/webob/dec.py", line 129, in __call__
Jun 05 09:02:50 apis2-1 murano-api[9372]: resp = self.call_func(req, *args, **kw)
Jun 05 09:02:50 apis2-1 murano-api[9372]: File "/usr/lib/python3/dist-packages/webob/dec.py", line 193, in call_func
Jun 05 09:02:50 apis2-1 murano-api[9372]: return self.func(req, *args, **kwargs)
Jun 05 09:02:50 apis2-1 murano-api[9372]: File "/usr/lib/python3/dist-packages/murano/api/versions.py", line 53, in __call__
Jun 05 09:02:50 apis2-1 murano-api[9372]: return self.index(req)
Jun 05 09:02:50 apis2-1 murano-api[9372]: File "/usr/lib/python3/dist-packages/murano/api/versions.py", line 48, in index
Jun 05 09:02:50 apis2-1 murano-api[9372]: response.body = jsonutils.dumps(dict(versions=version_objs))
Jun 05 09:02:50 apis2-1 murano-api[9372]: File "/usr/lib/python3/dist-packages/webob/response.py", line 549, in _body__set
Jun 05 09:02:50 apis2-1 murano-api[9372]: raise TypeError(msg)
Jun 05 09:02:50 apis2-1 murano-api[9372]: TypeError: You cannot set Response.body to a text object (use Response.text)
Jun 05 09:02:50 apis2-1 murano-api[9372]:

Changed in murano:
assignee: nobody → Sam Morrison (sorrison)
status: New → In Progress
zhurong (zhu-rong)
Changed in murano:
importance: Undecided → High
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to murano (master)

Reviewed: https://review.opendev.org/733029
Committed: https://git.openstack.org/cgit/openstack/murano/commit/?id=cd27f95c0bc9bc8941cb6982c788b214253e23ee
Submitter: Zuul
Branch: master

commit cd27f95c0bc9bc8941cb6982c788b214253e23ee
Author: Sam Morrison <email address hidden>
Date: Wed Jun 3 10:11:16 2020 +1000

    Fix versions api by using webob correctly

    Currently getting the following error:
    TypeError: You cannot set Response.body to a text object (use Response.text)

    Closes-Bug: #1882156

    Change-Id: Iba918ec671dabb2d0df72e071c6279176c63b312

Changed in murano:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to murano (stable/ussuri)

Fix proposed to branch: stable/ussuri
Review: https://review.opendev.org/740398

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to murano (stable/train)

Fix proposed to branch: stable/train
Review: https://review.opendev.org/740399

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to murano (stable/ussuri)

Reviewed: https://review.opendev.org/740398
Committed: https://git.openstack.org/cgit/openstack/murano/commit/?id=988251b0e5c0ae37bb4cfdf4745bbe0710521b0c
Submitter: Zuul
Branch: stable/ussuri

commit 988251b0e5c0ae37bb4cfdf4745bbe0710521b0c
Author: Sam Morrison <email address hidden>
Date: Wed Jun 3 10:11:16 2020 +1000

    Fix versions api by using webob correctly

    Currently getting the following error:
    TypeError: You cannot set Response.body to a text object (use Response.text)

    Closes-Bug: #1882156

    Change-Id: Iba918ec671dabb2d0df72e071c6279176c63b312
    (cherry picked from commit cd27f95c0bc9bc8941cb6982c788b214253e23ee)

tags: added: in-stable-ussuri
tags: added: in-stable-train
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to murano (stable/train)

Reviewed: https://review.opendev.org/740399
Committed: https://git.openstack.org/cgit/openstack/murano/commit/?id=fa8332f48fb491a725df4d44389907b0b52e5f61
Submitter: Zuul
Branch: stable/train

commit fa8332f48fb491a725df4d44389907b0b52e5f61
Author: Sam Morrison <email address hidden>
Date: Wed Jun 3 10:11:16 2020 +1000

    Fix versions api by using webob correctly

    Currently getting the following error:
    TypeError: You cannot set Response.body to a text object (use Response.text)

    Closes-Bug: #1882156

    Change-Id: Iba918ec671dabb2d0df72e071c6279176c63b312
    (cherry picked from commit cd27f95c0bc9bc8941cb6982c788b214253e23ee)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/murano 8.1.1

This issue was fixed in the openstack/murano 8.1.1 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/murano ussuri-eol

This issue was fixed in the openstack/murano ussuri-eol release.

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.