node.target_raid_config cannot be unset

Bug #1498275 reported by Ramakrishnan G (rameshg87)
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ironic
Fix Released
High
Ramakrishnan G (rameshg87)

Bug Description

Today, we preserve node.target_raid_config after RAID is created. Currently there is no way to unset node.target_raid_config if someone no longer wishes to have RAID configured on the node. Try to do the below gives InvalidParameterValue error.

curl -g -i -X PUT http://10.10.1.31:6385/v1/nodes/169f5a78-1405-405c-b9c7-c82b627a22fd/states/raid -H "X-OpenStack-Ironic-API-Version: latest" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: $AUTH_TOKEN" -d '{}'

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/226148

Changed in ironic:
assignee: nobody → Ramakrishnan G (rameshg87) (rameshg87)
status: New → In Progress
Dmitry Tantsur (divius)
Changed in ironic:
importance: Undecided → High
milestone: none → 4.2.0
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to ironic (master)

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

commit d2afe204b7ae25eb8d20764fa9b400c4170ba94d
Author: Ramakrishnan G <email address hidden>
Date: Tue Sep 22 03:19:57 2015 +0000

    Allow unsetting node.target_raid_config

    Currently we have no mechanism to unset node.target_raid_config.
    This should be possible because operators may decide to stop
    using RAID on the bare metal after using it for a while.

    Change-Id: Ifdb2017827a7962d353ae69e9b4fb24144e19f8e
    Closes-Bug: 1498275

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