change_node_power_state inconsistent; validation in async part

Bug #1294676 reported by Ruby Loo
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ironic
Fix Released
Low
Michael Davies

Bug Description

Now that we are changing ironic.conductor.manager.ConductorManager to use worker threads, validations are being done in the synchronous part. (Eg, .vendor_passthru(), .do_node_deploy()). However, .change_node_power_state() is doing the validation in the async part. This is inconsistent and I think it may cause confusion to the users.

aeva black (tenbrae)
Changed in ironic:
status: New → Triaged
importance: Undecided → Low
Michael Davies (mrda)
Changed in ironic:
assignee: nobody → Michael Davies (mrda)
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/84374

Changed in ironic:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to ironic (master)

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

commit 66dad963c29525c42557957bdae0da01add65131
Author: Michael Davies <email address hidden>
Date: Tue Apr 1 17:50:42 2014 +1030

    Handling validation in conductor consistently

    Change where we do validation in change_node_power_state to follow
    where we do it for do_node_deploy and vendor_passthrough. That
    is, we perform validation synchronously before we spawn off a
    thread to perform the longer running action.

    Change-Id: Ic1f791bb5ef49c033e4baff8d3f6900091dbf332
    Closes-bug: #1294676

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