RDO tickets are now tracked in Jira https://issues.redhat.com/projects/RDO/issues/
Bug 1209431 - creating a tuskar plan with the exact name gives the user a traceback
Summary: creating a tuskar plan with the exact name gives the user a traceback
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: RDO
Classification: Community
Component: python-tuskarclient
Version: trunk
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: Kilo
Assignee: Ana Krivokapic
QA Contact: Shai Revivo
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-04-07 11:03 UTC by Ami Jeain
Modified: 2016-04-18 09:36 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2016-04-18 09:36:40 UTC
Embargoed:


Attachments (Terms of Use)

Description Ami Jeain 2015-04-07 11:03:21 UTC
Description of problem:


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


How reproducible:

100%

Steps to Reproduce:
1. install the latest undercloud, including tuskar
2. run the following line twice: #tuskar plan-create -d 'just a test' test1
3.

Actual results:
you would get a dirty traceback

Expected results:
a meaning message is being shown to the user, without any traceback

Additional info:
the traceback:

$ tuskar plan-create -d 'just a test' test1
ERROR (shell) Exiting due to an error:
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/tuskarclient/shell.py", line 245, in main
    TuskarShell(sys.argv[1:]).run()
  File "/usr/lib/python2.7/site-packages/tuskarclient/shell.py", line 75, in run
    args.func(tuskar_client, args)
  File "/usr/lib/python2.7/site-packages/tuskarclient/v2/plans_shell.py", line 116, in do_plan_create
    description=vars(args).get('description')
  File "/usr/lib/python2.7/site-packages/tuskarclient/v2/plans.py", line 97, in create
    return self._post(self._path(), fields)
  File "/usr/lib/python2.7/site-packages/tuskarclient/openstack/common/apiclient/base.py", line 178, in _post
    body = self.client.post(url, json=json).json()
  File "/usr/lib/python2.7/site-packages/tuskarclient/openstack/common/apiclient/client.py", line 358, in post
    return self.client_request("POST", url, **kwargs)
  File "/usr/lib/python2.7/site-packages/tuskarclient/openstack/common/apiclient/client.py", line 345, in client_request
    self, method, url, **kwargs)
  File "/usr/lib/python2.7/site-packages/tuskarclient/openstack/common/apiclient/client.py", line 261, in client_request
    method, self.concat_url(endpoint, url), **kwargs)
  File "/usr/lib/python2.7/site-packages/tuskarclient/openstack/common/apiclient/client.py", line 201, in request
    raise exceptions.from_response(resp, method, url)
Conflict: test1 (HTTP 409)

Comment 1 Ana Krivokapic 2015-06-01 10:44:14 UTC
Upstream patch: https://review.openstack.org/#/c/187149

Comment 4 Ana Krivokapic 2015-06-18 11:20:25 UTC
Merged upstream.

Comment 5 Mike McCune 2016-03-28 22:14:36 UTC
This bug was accidentally moved from POST to MODIFIED via an error in automation, please see mmccune with any questions

Comment 7 Ana Krivokapic 2016-04-18 09:36:40 UTC
Tuskar is no longer being maintained.


Note You need to log in before you can comment on or make changes to this bug.