Cleaning process with maintenance mode should be prevented

Bug #1563644 reported by Yushiro FURUKAWA
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Ironic
Fix Released
High
Unassigned

Bug Description

Currently, manual cleaning for an ironic node which is maintenance mode has prevented.
    $ ironic node-set-provision-state $NODE_UUID clean --clean_steps [''']

However, following steps hasn't prevented yet. Therefore, I think it should be prevented too.

[Condition]
  (A) and (B) or
  (A) and (C) or
  (A) and (B) and (C)

  (A):The ironic node: maintenance = True
  (B):/ironic.conf: automated_clean = True
  (C):The ironic node: clean_step is not None

[Not prevented action]
  (1) Change provision state to "manage"
      $ ironic node-set-provision-state $NODE_UUID manage
  (2) Change provision state from "manage" to "provide"
      $ ironic node-set-provision-state $NODE_UUID provide

      If ironic.conf has 'automated_clean = True' or manually configured
      clean_step exists, cleaning process should be executed.

[What happens?]
After executing (2) with above condition, cleaning process runs but nothing
to do while cleaning with following debug message.

    LOG.debug('Heartbeat from node %(node)s in maintenance mode; '
              'not taking any action.', {'node': node.uuid})

I think it is difficult for operator to realize this situation.

Tags: conductor
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/299097

Changed in ironic:
assignee: nobody → Yushiro FURUKAWA (y-furukawa-2)
status: New → In Progress
Dmitry Tantsur (divius)
tags: added: conductor
removed: ironic
Changed in ironic:
importance: Undecided → High
Revision history for this message
Vasyl Saienko (vsaienko) wrote :

Related mail thread is: http://lists.openstack.org/pipermail/openstack-dev/2016-September/103114.html
The decision was to not prevent launch cleaning for nodes in maintenance mode. But since cleaning can't succeed in this case we should move node to CLEAN FAILED state.

Related fix: https://review.openstack.org/#/c/366828/

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on ironic (master)

Change abandoned by Yushiro FURUKAWA (<email address hidden>) on branch: master
Review: https://review.openstack.org/299097
Reason: Let's follow alternative patch https://review.openstack.org/#/c/366828/

Thanks for reviewing my patch, Avinash, David, Naohiro, Vladyslav, Vasyl, Julia, Mikhail and Madhuri!!

Ruby Loo (rloo)
Changed in ironic:
assignee: Yushiro FURUKAWA (y-furukawa-2) → Dmitry Tantsur (divius)
Dmitry Tantsur (divius)
Changed in ironic:
assignee: Dmitry Tantsur (divius) → nobody
status: In Progress → Triaged
Dmitry Tantsur (divius)
Changed in ironic:
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.