API end-points for changing node states are not discoverable

Bug #1311288 reported by aeva black
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ironic
Fix Released
Low
Anusha

Bug Description

The API endpoints for changing a node's power and provision state are documented here:
  http://docs.openstack.org/developer/ironic/webapi/v1.html#nodestates

but they are not discoverable from the API alone. For example, there is nothing in the output of "GET v1/nodes/UUID" or "GET /v1/nodes/UUID/states/" which would indicate that a client should issue "POST /v1/nodes/UUID/states/provision", or that the body must contain the "target" parameter, or what the acceptable values are.

Tags: api
aeva black (tenbrae)
tags: added: api
Changed in ironic:
status: New → Triaged
importance: Undecided → Low
Rakesh H S (rh-s)
Changed in ironic:
assignee: nobody → Rakesh H S (rh-s)
Revision history for this message
John Stafford (john-stafford) wrote :

Hi Rakesh,

Are you still working on this bug?

Rakesh H S (rh-s)
Changed in ironic:
assignee: Rakesh H S (rh-s) → nobody
Anusha (anusha-iiitm)
Changed in ironic:
assignee: nobody → Anusha (anusha-iiitm)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to ironic (master)

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

Changed in ironic:
status: Triaged → In Progress
Changed in ironic:
assignee: Anusha (anusha-iiitm) → Lucas Alvares Gomes (lucasagomes)
Changed in ironic:
assignee: Lucas Alvares Gomes (lucasagomes) → Anusha (anusha-iiitm)
Changed in ironic:
assignee: Anusha (anusha-iiitm) → Lucas Alvares Gomes (lucasagomes)
Changed in ironic:
assignee: Lucas Alvares Gomes (lucasagomes) → Anusha (anusha-iiitm)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to ironic (master)

Reviewed: https://review.openstack.org/205895
Committed: https://git.openstack.org/cgit/openstack/ironic/commit/?id=3274cdeed452e6fb37872001b615a0b37ed69d65
Submitter: Jenkins
Branch: master

commit 3274cdeed452e6fb37872001b615a0b37ed69d65
Author: Anusha Ramineni <email address hidden>
Date: Fri Jul 24 13:43:56 2015 +0530

    Make end-points discoverable via Ironic API

    This commit makes the following API end-points
    discoverable via Ironic API
    1. '/v1/nodes/<uuid>/states'
    2. '/v1/drivers/<driver-name>/properties'

    API Micro version is bumped to v1.14 with this change.

    Closes-Bug:#1311288
    Closes-Bug: #1475744
    Co-Authored-By: Lucas Alvares Gomes <email address hidden>
    Change-Id: Ibc0013b8c09c80d90042bf12b31a54820b00b43c

Changed in ironic:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in ironic:
milestone: none → 4.2.0
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.