'iscsiadm ... -o delete' fails occasionally on bulk deployments

Bug #1324670 reported by Adam Gandelman
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Cinder
Invalid
Undecided
Unassigned
Kilo
Fix Released
Undecided
John Griffith
Ironic
Fix Released
Medium
Chris Jones
os-brick
Fix Released
High
John Griffith

Bug Description

Attempting to deploy 25 nodes at once, we consistently hit at least one failure caused by iscsiadm on the conductor failing to delete the respective target from the local iscsi db:

2014-05-29 19:42:40.361 5970 ERROR ironic.drivers.modules.pxe [-] PXE deploy failed for instance e7552c1e-cc26-407d-82f6-3293d7731e18. Error: Unexpected error while running command.
Command: sudo ironic-rootwrap /etc/ironic/rootwrap.conf iscsiadm -m node -p 10.22.157.172:3260 -T iqn-fe3d700e-6a02-4c00-ae76-b91a4f8f7d7d -o delete
Exit code: 6
Stdout: ''
Stderr: 'iscsiadm: Could not execute operation on all records: encountered iSCSI database failure\n'

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

Changed in ironic:
assignee: nobody → Adam Gandelman (gandelman-a)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on ironic (master)

Change abandoned by Adam Gandelman (<email address hidden>) on branch: master
Review: https://review.openstack.org/96611

Revision history for this message
Dmitry Tantsur (divius) wrote :

Hi Adam! As your change it abandoned, will you continue working on this bug? If not, could you please unassign yourself and set status back to new?

Revision history for this message
aeva black (tenbrae) wrote :

Based on the description (occasional failure, known situation, easy work-around) I'm setting this to Medium sev.

Changed in ironic:
importance: Undecided → Medium
Changed in ironic:
assignee: Adam Gandelman (gandelman-a) → Sean Dague (sdague)
Changed in ironic:
assignee: Sean Dague (sdague) → Dmitry "Divius" Tantsur (divius)
Dmitry Tantsur (divius)
Changed in ironic:
assignee: Dmitry "Divius" Tantsur (divius) → Adam Gandelman (gandelman-a)
Changed in ironic:
assignee: Adam Gandelman (gandelman-a) → Chris Krelle (nobodycam)
Changed in ironic:
assignee: Chris Krelle (nobodycam) → Ruby Loo (rloo)
Ruby Loo (rloo)
Changed in ironic:
assignee: Ruby Loo (rloo) → Chris Jones (5-cjones)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to ironic (master)

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

commit af398ee3c47cfd5a0db5f9e760d6b54872c89501
Author: Chris Jones <email address hidden>
Date: Thu May 29 21:15:23 2014 +0100

    Work around iscsiadm delete failures

    Attempting to delete an iSCSI target immediately after the initiator has
    logged out of the session can sometimes cause iscsiadm's database update
    to fail. This allows the delete command to be retried up to 5 times on
    failure. We also accept exit code 21 (no records found) as success.

    Closes-bug: #1324670
    Change-Id: I064fcd01e3bd713b0ec19cc1fdb562ca7fd8b666

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
Changed in os-brick:
status: New → Triaged
importance: Undecided → High
Revision history for this message
Eric Harney (eharney) wrote :
Changed in os-brick:
status: Triaged → Fix Released
Changed in cinder:
status: New → Invalid
Revision history for this message
Eric Harney (eharney) wrote :
Eric Harney (eharney)
Changed in os-brick:
assignee: nobody → John Griffith (john-griffith)
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.