[tuskar] wrong URL for tuskar in default installation of TripleO

Bug #1439567 reported by Dariusz Smigiel
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
High
Jay Dobies

Bug Description

Default installation of TripleO prevent user from using tuskar.

When everything is installed, and setup, I wanted to create a new plan with tuskar client.
"tuskar plan-create overcloud"
returns
WARNING:tuskarclient.common.http:Request returned failure status.
ERROR:tuskarclient.shell:Exiting due to an error:
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/tuskarclient/shell.py", line 226, in main
    TuskarShell(sys.argv[1:]).run()
  File "/usr/local/lib/python2.7/dist-packages/tuskarclient/shell.py", line 73, in run
    args.func(tuskar_client, args)
  File "/usr/local/lib/python2.7/dist-packages/tuskarclient/v2/plans_shell.py", line 69, in do_plan_create
    description=vars(args).get('description')
  File "/usr/local/lib/python2.7/dist-packages/tuskarclient/v2/plans.py", line 98, in create
    return self._create(self._path(), fields)
  File "/usr/local/lib/python2.7/dist-packages/tuskarclient/common/base.py", line 71, in _create
    resp, body = self.api.json_request('POST', url, body=body)
  File "/usr/local/lib/python2.7/dist-packages/tuskarclient/common/http.py", line 201, in json_request
    resp, body_iter = self._http_request(url, method, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/tuskarclient/common/http.py", line 180, in _http_request
    raise exc.from_response(response, method, conn_url)
NotFound: Not Found (HTTP 404)

and tuskar-api returns:

192.168.122.1 - - [02/Apr/2015 08:04:52] "POST /v2/v2/plans HTTP/1.1" 404 56

Solution:
User have to change URL in keystone.endpoint for all occurences of tuskar:

mysql> select service.id, endpoint.url from endpoint join service on endpoint.service_id=service.id where service.extra like "%tuskar%";

mysql> update endpoint set url=replace(url, 'v2', '') where service_id='88795bddd5674218a47ba1beb8b2c733';
Query OK, 3 rows affected (0.02 sec)
Rows matched: 3 Changed: 3 Warnings: 0

Without this, user is not able to use Tripleo + Tuskar

Tags: tripleo tuskar
Revision history for this message
Jay Dobies (jdob) wrote :
Changed in tripleo:
status: New → Triaged
status: Triaged → Fix Committed
assignee: nobody → Jay Dobies (jdob)
importance: Undecided → High
Jay Dobies (jdob)
Changed in tripleo:
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.