Bug #1351
iSCSI commands fail on some distributions
| Status: | Closed | Start date: | 07/12/2012 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | % 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
Associated revisions
Bug #1351: iSCSI commands fail on some distributions
Bug #1351: iSCSI commands fail on some distributions
(cherry picked from commit 7f999d9ca63439a1dc9dae1b63494b6c3ceb1276)
History
#1
Updated by Jaime Melis almost 9 years ago
- File fix-bug-1351.patch
added - Status changed from New to Closed
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