TgtAdm is broken
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
Critical
|
John Griffith | ||
OpenStack Compute (nova) |
Fix Released
|
Critical
|
Chuck Short |
Bug Description
Summary
=======
A patch for Bug #1011159 (https:/
ISCSIDriver with TgtAdm.
a) New volumes won't be exported.
b) Deleting volumes will be failed.
Reason
======
ISCSIDriver expects tid of a volume is specified properly when it was created and the driver use tid to delete it. The driver checks that tid exists before deleting it and doesn't free it if not found.
But scsi-target-utils 1.0.17 doesn't have an option to specify tid in <target xxx> tag. Tid is numbered serially from 1. So b) happens.
Currently, I can't find the reason of a). It looks exported but Nova can't
mount it.
I tried to revert this patch and Nova and Cinder worked perfectly.
Solutions
=========
There are 2 solutions for b).
1. Use newer scsi-target-utils. It has an option "controller_tid" to
specify tid for a target.
2. Add an argument for show_target() to specify iqn and use it in TgtAdm.
There is no way for tgtadm/tgt-admin to check a target with the iqn but
we can do "tgt-admin -s | grep iqn...".
description: | updated |
description: | updated |
Changed in cinder: | |
assignee: | nobody → Chuck Short (zulcss) |
status: | New → In Progress |
Changed in cinder: | |
milestone: | none → folsom-rc1 |
status: | In Progress → Confirmed |
importance: | Undecided → Critical |
Changed in nova: | |
importance: | Undecided → Critical |
milestone: | none → folsom-rc1 |
Changed in cinder: | |
assignee: | Chuck Short (zulcss) → John Griffith (john-griffith) |
status: | Confirmed → In Progress |
tags: | added: volume |
Changed in cinder: | |
status: | Fix Committed → Fix Released |
Changed in nova: | |
status: | Fix Committed → Fix Released |
Changed in cinder: | |
milestone: | folsom-rc1 → 2012.2 |
Changed in nova: | |
milestone: | folsom-rc1 → 2012.2 |
I suspect that problem 'a' will be addressed by https:/ /review. openstack. org/#/c/ 11899/