Improve exception message during package uploading

Bug #1416021 reported by Roman Vasilets
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Murano
Fix Released
Medium
Roman Vasilets

Bug Description

When I'm use python-muranoclient. I have got an exception:

2015-01-29 11:04:04.675 21744 TRACE rally.benchmark.engine Traceback (most recent call last):
2015-01-29 11:04:04.675 21744 TRACE rally.benchmark.engine File "/usr/local/lib/python2.7/dist-packages/rally/benchmark/engine.py", line 232, in run
2015-01-29 11:04:04.675 21744 TRACE rally.benchmark.engine with base_ctx.ContextManager(context_obj):
2015-01-29 11:04:04.675 21744 TRACE rally.benchmark.engine File "/usr/local/lib/python2.7/dist-packages/rally/benchmark/context/base.py", line 158, in __enter__
2015-01-29 11:04:04.675 21744 TRACE rally.benchmark.engine self.setup()
2015-01-29 11:04:04.675 21744 TRACE rally.benchmark.engine File "/usr/local/lib/python2.7/dist-packages/rally/benchmark/context/base.py", line 141, in setup
2015-01-29 11:04:04.675 21744 TRACE rally.benchmark.engine ctx.setup()
2015-01-29 11:04:04.675 21744 TRACE rally.benchmark.engine File "/usr/local/lib/python2.7/dist-packages/rally/common/utils.py", line 207, in wrapper
2015-01-29 11:04:04.675 21744 TRACE rally.benchmark.engine result = f(self, *args, **kwargs)
2015-01-29 11:04:04.675 21744 TRACE rally.benchmark.engine File "/usr/local/lib/python2.7/dist-packages/rally/benchmark/context/murano.py", line 84, in setup
2015-01-29 11:04:04.675 21744 TRACE rally.benchmark.engine "package.zip")})
2015-01-29 11:04:04.675 21744 TRACE rally.benchmark.engine File "/opt/stack/python-muranoclient/muranoclient/v1/packages.py", line 63, in create
2015-01-29 11:04:04.675 21744 TRACE rally.benchmark.engine raise exceptions.from_response(response)
2015-01-29 11:04:04.675 21744 TRACE rally.benchmark.engine HTTPBadRequest: <html>
2015-01-29 11:04:04.675 21744 TRACE rally.benchmark.engine <head>
2015-01-29 11:04:04.675 21744 TRACE rally.benchmark.engine <title>400 Bad Request</title>
2015-01-29 11:04:04.675 21744 TRACE rally.benchmark.engine </head>
2015-01-29 11:04:04.675 21744 TRACE rally.benchmark.engine <body>
2015-01-29 11:04:04.675 21744 TRACE rally.benchmark.engine <h1>400 Bad Request</h1>
2015-01-29 11:04:04.675 21744 TRACE rally.benchmark.engine The server could not comply with the request since it is either malformed or otherwise incorrect.<br /><br />
2015-01-29 11:04:04.675 21744 TRACE rally.benchmark.engine Incorrect package format: Uploading file should be a zip' archive

But I can't see url to package from it's message. It's realy need.

Changed in murano:
assignee: nobody → Roman Vasilets (rvasilets)
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to murano (master)

Fix proposed to branch: master
Review: https://review.openstack.org/151330

Changed in murano:
status: New → In Progress
summary: - Improve exception message
+ Improve exception message during package uploading
Changed in murano:
importance: Undecided → Medium
milestone: none → 2015.1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to murano (master)

Reviewed: https://review.openstack.org/151330
Committed: https://git.openstack.org/cgit/stackforge/murano/commit/?id=c49cec2fba928a7aaf95d01176360e90743e14e4
Submitter: Jenkins
Branch: master

commit c49cec2fba928a7aaf95d01176360e90743e14e4
Author: Roman Vasilets <email address hidden>
Date: Thu Jan 29 19:48:57 2015 +0200

    Improve exception message

    Using python-muranoclient you can get an exception that doesn't
    give needed information. Add this information to it.

    Change-Id: Ic94a131e7cf0d25f10eb827df233a1c2f59ba9c3
    Closes-bug: #1416021

Changed in murano:
status: In Progress → Fix Committed
Changed in murano:
milestone: 2015.1.0 → none
Changed in murano:
status: Fix Committed → Fix Released
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.