[DOC] update doc for REST endpoint convert-config

Bug #1312409 reported by John Speidel
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Sahara
Fix Released
Medium
Patrick Amor

Bug Description

I tried using the following endpoint to upload an HDP template but the call resulted in a 404 error.
POST /v1.0/{tenant_id}/plugins/{plugin_name}/{version}/convert-config

I was able to successfully invoke a GET call with the same tenant, plugin name and version on the endpoint:
/v1.0/{tenant_id}/plugins/{plugin_name}/{version}

Doc should be update with correct url:

https://github.com/openstack/sahara/blob/master/sahara/api/v10.py#L158

Revision history for this message
John Speidel (jspeidel) wrote :

It appears that the docs are wrong.
The URI needs a name at the end:
POST /v1.0/{tenant_id}/plugins/{plugin_name}/{version}/convert-config/{template-name}

Revision history for this message
Sergey Lukjanov (slukjanov) wrote :

yup, it should be fixed

Changed in sahara:
milestone: none → juno-1
summary: - REST endpoint results in 404: POST
- /v1.0/{tenant_id}/plugins/{plugin_name}/{version}/convert-config
+ [DOC] update doc for REST endpoint convert-config
description: updated
Changed in sahara:
status: New → Triaged
importance: Undecided → Medium
tags: added: low-hanging-fruit
Changed in sahara:
assignee: nobody → Andrew Lazarev (alazarev)
Changed in sahara:
assignee: Andrew Lazarev (alazarev) → nobody
Changed in sahara:
milestone: juno-1 → juno-2
pritesh (pritesh)
Changed in sahara:
assignee: nobody → pritesh (pritesh)
Revision history for this message
Patrick Amor (pamor) wrote :
Changed in sahara:
assignee: pritesh (pritesh) → Patrick Amor (pamor)
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to sahara (master)

Reviewed: https://review.openstack.org/104646
Committed: https://git.openstack.org/cgit/openstack/sahara/commit/?id=953f829da5ba396974d150d20a0e79e20a11591f
Submitter: Jenkins
Branch: master

commit 953f829da5ba396974d150d20a0e79e20a11591f
Author: Patrick Amor <email address hidden>
Date: Thu Jul 3 11:42:25 2014 -0700

    Update doc for REST endpoint convert-config

    The convert-config REST endpoint documentation is incorrect.
    It requires the template-name at the end.

    Change-Id: I0061365b8d74bb5337a8a6e31a0d68746121dff1
    Closes-Bug: 1312409

Changed in sahara:
status: In Progress → Fix Committed
Changed in sahara:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in sahara:
milestone: juno-2 → 2014.2
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.