Bug 910831 - Ignores silently non existing paths
Summary: Ignores silently non existing paths
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: scsi-target-utils
Version: 20
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Andy Grover
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-02-13 16:39 UTC by Juan Quintela
Modified: 2014-12-16 12:06 UTC (History)
4 users (show)

Fixed In Version: scsi-target-utils-1.0.41-1.fc20
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 978003 (view as bug list)
Environment:
Last Closed: 2014-12-16 12:06:48 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Juan Quintela 2013-02-13 16:39:28 UTC
Description of problem:
Write in the configuration file a path that don't exist:

<target iqn.2010-12.org.trasno:iscsi.lvm>
backing-store /dev/trasno/windows
backing-store /path/not/exist
</target>

First path exist, and the second one don't exist.  If you start tgtd 
with this configuration it will start correctly without giving a single warning.  Neither it writes anything in /var/log/messages

Version-Release number of selected component (if applicable):


How reproducible:

Allways.


Steps to Reproduce:
1. Create a config file like the one showed, with one existing path and another that don't exist.
2.
3.
  
Actual results:

tgtd is launched without any error/warning, and the backing store that don't exist just don't show up.

Expected results:
At least give a warning somewhere saying that the device don't exist.  Notice that if the file exist, but tgtd is not able to access to it, it already gives an error on /var/log/messages:

Feb 13 17:23:31 trasno tgtd[27313]: tgtd: backed_file_open(92) Could not open /mnt/images/iscsi/f14_64.img, Permission denied



Additional info:

Comment 1 Fedora End Of Life 2013-12-21 11:22:42 UTC
This message is a reminder that Fedora 18 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 18. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '18'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 18's end of life.

Thank you for reporting this issue and we are sorry that we may not be 
able to fix it before Fedora 18 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior to Fedora 18's end of life.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 2 Andy Grover 2014-01-16 23:09:36 UTC
Should be fixed in Fedora 20's scsi-target-utils-1.0.41-1, if you care to give it a try.

Comment 3 Juan Quintela 2014-12-16 12:06:48 UTC
Forgot to look at this.  It appears fixed, and now I am using targetcli and targetd.

Thanks, and sorry for the delay.


Note You need to log in before you can comment on or make changes to this bug.