Bug #1351

iSCSI commands fail on some distributions

Added by Jaime Melis almost 9 years ago. Updated almost 9 years ago.

Status:ClosedStart date:07/12/2012
Priority:NormalDue date:
Assignee:Jaime Melis% Done:

0%

Category:Drivers - Auth
Target version:Release 3.8
Resolution: Pull request:
Affected Versions:OpenNebula 3.6

Description

All of the ssh_exec_and_log commands are piped in the remote host to |sh -s. In some distros sh is linked to bash and in others to other minor shells like dash.

In the tgt_admin_dump_config the >& /dev/null construct is used, which is not valid for sh, so it fails for all the distros where sh is not linked to bash.

The fix is simple: replace >& /dev/null with >/dev/null 2>&1 in the tgt_admin_dump_config in scripts_common.sh

fix-bug-1351.patch Magnifier (416 Bytes) Jaime Melis, 07/12/2012 10:22 AM

Associated revisions

Revision 7f999d9c
Added by Jaime Melis almost 9 years ago

Bug #1351: iSCSI commands fail on some distributions

Revision 5d33f46d
Added by Jaime Melis over 8 years ago

Bug #1351: iSCSI commands fail on some distributions
(cherry picked from commit 7f999d9ca63439a1dc9dae1b63494b6c3ceb1276)

History

#1 Updated by Jaime Melis almost 9 years ago

Patch attached. It should be applied on the source or in these two files once it's installed:

  • /var/lib/one/remotes/scripts_common.sh
  • /usr/lib/one/sh/scripts_common.sh

Also available in: Atom PDF