iscsiadm cmd failure
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Vish Ishaya |
Bug Description
iscsiadm call fails in multiple different scenarios possibly due to wrong parameter format passed to _run_iscsiadm:
2011-07-27 21:10:47,141 DEBUG nova.utils [-] Running cmd (subprocess): sudo iscsiadm -m node -T iqn.2011-
2011-07-27 21:10:47,153 DEBUG nova.utils [-] Result was 255 from (pid=28764) execute /mnt/share/
2011-07-27 21:10:47,153 ERROR nova [-] Exception during message handling
(nova): TRACE: Traceback (most recent call last):
(nova): TRACE: File "/mnt/share/
(nova): TRACE: rval = node_func(
(nova): TRACE: File "/mnt/share/
(nova): TRACE: function(self, context, instance_id, *args, **kwargs)
(nova): TRACE: File "/mnt/share/
(nova): TRACE: volume_id)
(nova): TRACE: File "/mnt/share/
(nova): TRACE: path = self.driver.
(nova): TRACE: File "/mnt/share/
(nova): TRACE: self._run_
(nova): TRACE: File "/mnt/share/
(nova): TRACE: iscsi_command)
(nova): TRACE: File "/mnt/share/
(nova): TRACE: cmd=' '.join(cmd))
(nova): TRACE: ProcessExecutio
(nova): TRACE: Command: sudo iscsiadm -m node -T iqn.2011-
(nova): TRACE: Exit code: 255
(nova): TRACE: Stdout: ''
(nova): TRACE: Stderr: 'iscsiadm: no records found!\n'
(nova): TRACE:
(Same code with '--op=new' works good)
or...
2011-08-22 23:38:01,922 DEBUG nova.utils [-] Running cmd (subprocess): sudo iscsiadm -m node -T iqn.2010-
2011-08-22 23:38:01,938 DEBUG nova.volume.driver [-] iscsiadm ('--op', 'delete'): stdout=# BEGIN RECORD 2.0-871
node.name = iqn.2010-
node.tpgt = 1
node.startup = manual
iface.hwaddress = <empty>
iface.ipaddress = <empty>
iface.iscsi_
iface.net_ifacename = <empty>
iface.transport
iface.initiatorname = <empty>
node.discovery_
node.discovery_port = 3260
node.discovery_type = send_targets
node.session.
node.session.
node.session.
node.session.
node.session.
node.session.
node.session.
node.session.
node.session.
node.session.
node.session.
node.session.
node.session.
node.session.
node.session.
node.session.
node.session.
node.session.
node.session.
node.session.
node.session.
node.session.
node.session.
node.session.
node.conn[
node.conn[0].port = 3260
node.conn[
node.conn[
node.conn[
node.conn[
node.conn[
node.conn[
node.conn[
node.conn[
node.conn[
node.conn[
node.conn[
node.conn[
node.conn[
# END RECORD
stderr= from (pid=2366) _run_iscsiadm /mnt/share/
As a result iscsiadm doing nothing.
For op new & delete we can probably change the code to pass something like '--op=new' and '--op=delete' instead of ('--op', 'new') & ('--op', 'delete'), but update receives multiple params.
Possible workaround might be also to add something like that within _run_iscsiadm:
iscsi_command=
Related branches
- OpenStack release team: Pending requested
-
Diff: 12 lines (+1/-1)1 file modifiednova/volume/driver.py (+1/-1)
- Devin Carlen (community): Approve
- Brian Waldon (community): Approve
- Alex Meade (community): Approve
-
Diff: 12 lines (+1/-1)1 file modifiednova/volume/driver.py (+1/-1)
- OpenStack release team: Pending requested
-
Diff: 30 lines (+3/-3)1 file modifiednova/volume/driver.py (+3/-3)
- Ben McGraw (community): Approve
- Christopher MacGown (community): Approve
- Joshua McKenty (community): Approve
- Matthew Hooker (community): Approve
- Jesse Andrews (community): Approve
-
Diff: 30 lines (+3/-3)1 file modifiednova/volume/driver.py (+3/-3)
description: | updated |
Changed in nova: | |
status: | In Progress → Fix Committed |
Changed in nova: | |
milestone: | none → diablo-4 |
status: | In Progress → Fix Committed |
Changed in nova: | |
milestone: | diablo-4 → 2011.3 |
status: | Fix Committed → Fix Released |
I fixed this in my cleanup volume branch by changing the call to execute to unpack the tuple using an asterix:
*iscsi_command