Bug 1206184

Summary: target.service restore failure with the target still being activated
Product: [Fedora] Fedora Reporter: Yanko Kaneti <yaneti>
Component: targetcliAssignee: Andy Grover <agrover>
Status: CLOSED UPSTREAM QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: agrover
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-04-22 22:52:16 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Yanko Kaneti 2015-03-26 13:48:01 UTC
Description of problem:
With some recent iscsi changes in the kernel (4.0rc), targetcli restore here errors out while restoring a config created a month or so ago (again on rawhide)
The error is 

target[1057]: Storage Object block/p_back: Cannot set attribute emulate_fua_write: [Errno 22] Invalid argument, skipped

FWIW p is a lvm volume

While the restore exits with an error and the service remains in failed state the said target as actually working.


Version-Release number of selected component (if applicable):
targetcli-2.1.fb39-1.fc22.noarch
kernel 4.0.0-0.rc5.git0.3.fc23.x86_64


How reproducible:
Always

Comment 1 Andy Grover 2015-03-31 22:06:35 UTC
fix created and posted upstream

Comment 2 Yanko Kaneti 2015-04-22 12:15:12 UTC
I can see that your fix landed in linus's tree, and consequently rawhide.
Things work as expected now here.

https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=86d65dc4fe74d5b3228fe13c5eff0b10ae6808eb

Thanks.

Perhaps this bug can be closed now.

Comment 3 Andy Grover 2015-04-22 22:52:16 UTC
Thanks! Will do.