[Bug 1093639] New: Targetcli, no config shown after reboot, errno 95 after restoreconfig, 2.1.47fb
http://bugzilla.suse.com/show_bug.cgi?id=1093639 Bug ID: 1093639 Summary: Targetcli, no config shown after reboot, errno 95 after restoreconfig, 2.1.47fb Classification: openSUSE Product: openSUSE Distribution Version: Leap 15.0 Hardware: x86-64 OS: Other Status: NEW Severity: Major Priority: P5 - None Component: Kernel Assignee: kernel-maintainers@forge.provo.novell.com Reporter: holger@fam-schranz.de QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- Hello, we configure a tcmu runner configuration. But after each reboot the configuration isn't shown in the targetcli and the tcmu-runner display some error maessages ============================================= Details: tcmu runner: rpm -qa | grep -i tcmu tcmu-runner-handler-rbd-1.3.0-lp150.1.1.x86_64 libtcmu2-1.3.0-lp150.1.1.x86_64 tcmu-runner-1.3.0-lp150.1.1.x86_64 leap150:~ # target: leap150:~ # rpm -qa | grep -i target python3-targetcli-fb-2.1.47-lp150.5.2.noarch targetcli-fb-common-2.1.47-lp150.5.2.noarch leap150:~ # System: leap150:~ # hostnamectl Static hostname: leap150.fritz.box Transient hostname: leap150 Icon name: computer-vm Chassis: vm Machine ID: 4ca09638477648d0a8baebb3df9d0158 Boot ID: 6598454d093d44a4a40c41fbe6aed1be Virtualization: oracle Operating System: openSUSE Leap 15.0 CPE OS Name: cpe:/o:opensuse:leap:15.0 Kernel: Linux 4.12.14-lp150.11-default Architecture: x86-64 leap150:~ # We configured as the follows: /> ls o- / ..................................................................... [...] o- backstores .......................................................... [...] | o- block .............................................. [Storage Objects: 0] | o- fileio ............................................. [Storage Objects: 0] | o- pscsi .............................................. [Storage Objects: 0] | o- ramdisk ............................................ [Storage Objects: 0] | o- rbd ................................................ [Storage Objects: 0] | o- user:qcow .......................................... [Storage Objects: 1] | | o- tcmtest ............................ [/home/tf1.img (1.0GiB) activated] | | o- alua ............................................... [ALUA Groups: 1] | | o- default_tg_pt_gp ................... [ALUA state: Active/optimized] | o- user:rbd ........................................... [Storage Objects: 0] o- iscsi ........................................................ [Targets: 1] | o- iqn.2003-01.org.linux-iscsi.leap150.x8664:sn.f21ea062ec7a ..... [TPGs: 1] | o- tpg1 ........................................... [no-gen-acls, no-auth] | o- acls ...................................................... [ACLs: 1] | | o- iqn.1996-04.de.suse:01:c94c1ee1f242 .............. [Mapped LUNs: 1] | | o- mapped_lun0 ............................ [lun0 user/tcmtest (rw)] | o- luns ...................................................... [LUNs: 1] | | o- lun0 ............................ [user/tcmtest (default_tg_pt_gp)] | o- portals ................................................ [Portals: 2] | o- 192.168.178.35:3260 .......................................... [OK] | o- 192.168.178.45:3260 .......................................... [OK] o- loopback ..................................................... [Targets: 0] o- vhost ........................................................ [Targets: 0] o- xen-pvscsi ................................................... [Targets: 0] -------------------------- But after reboot an empty configuration is present ..... leap150:~ # targetcli ls o- / ..................................................................... [...] o- backstores .......................................................... [...] | o- block .............................................. [Storage Objects: 0] | o- fileio ............................................. [Storage Objects: 0] | o- pscsi .............................................. [Storage Objects: 0] | o- ramdisk ............................................ [Storage Objects: 0] | o- rbd ................................................ [Storage Objects: 0] | o- user:qcow .......................................... [Storage Objects: 0] | o- user:rbd ........................................... [Storage Objects: 0] o- iscsi ........................................................ [Targets: 0] o- loopback ..................................................... [Targets: 0] o- vhost ........................................................ [Targets: 0] o- xen-pvscsi ................................................... [Targets: 0] --------------------------- Than we try to restore the last config - with following reports/messages: leap150:~ # targetcli targetcli shell version 2.1.fb47 Copyright 2011-2013 by Datera, Inc and others. For help on commands, type 'help'. /> restoreconfig /etc/target/backup/saveconfig-20180516-21:11:45.json Configuration restored, 3 recoverable errors: Storage Object user/tcmtest: Cannot set attribute dev_config: [Errno 95] Operation not supported, skipped Storage Object user/tcmtest: Cannot set attribute dev_size: [Errno 95] Operation not supported, skipped Storage Object user/tcmtest: Cannot set attribute emulate_write_cache: [Errno 95] Operation not supported, skipped -------------------------- Now it shown the configuration .. /> ls o- / ..................................................................... [...] o- backstores .......................................................... [...] | o- block .............................................. [Storage Objects: 0] | o- fileio ............................................. [Storage Objects: 0] | o- pscsi .............................................. [Storage Objects: 0] | o- ramdisk ............................................ [Storage Objects: 0] | o- rbd ................................................ [Storage Objects: 0] | o- user:qcow .......................................... [Storage Objects: 1] | | o- tcmtest ............................ [/home/tf1.img (1.0GiB) activated] | | o- alua ............................................... [ALUA Groups: 1] | | o- default_tg_pt_gp ................... [ALUA state: Active/optimized] | o- user:rbd ........................................... [Storage Objects: 0] o- iscsi ........................................................ [Targets: 1] | o- iqn.2003-01.org.linux-iscsi.leap150.x8664:sn.f21ea062ec7a ..... [TPGs: 1] | o- tpg1 ........................................... [no-gen-acls, no-auth] | o- acls ...................................................... [ACLs: 1] | | o- iqn.1996-04.de.suse:01:c94c1ee1f242 .............. [Mapped LUNs: 1] | | o- mapped_lun0 ............................ [lun0 user/tcmtest (rw)] | o- luns ...................................................... [LUNs: 1] | | o- lun0 ............................ [user/tcmtest (default_tg_pt_gp)] | o- portals ................................................ [Portals: 2] | o- 192.168.178.35:3260 .......................................... [OK] | o- 192.168.178.45:3260 .......................................... [OK] o- loopback ..................................................... [Targets: 0] o- vhost ........................................................ [Targets: 0] o- xen-pvscsi ................................................... [Targets: 0] /> exit Global pref auto_save_on_exit=true Last 10 configs saved in /etc/target/backup. Configuration saved to /etc/target/saveconfig.json ------------------------- After each reboot we have to execute the procdure with restoreconfig ... ------------------------- Also the systemctl status for the tcmu-runner service report the same errors: leap150:~ # systemctl status tcmu-runner.service ? tcmu-runner.service - LIO Userspace-passthrough daemon Loaded: loaded (/usr/lib/systemd/system/tcmu-runner.service; disabled; vendor preset: disabled) Active: active (running) since Thu 2018-05-17 07:51:02 CEST; 2h 58min ago Main PID: 1910 (tcmu-runner) Tasks: 7 (limit: 4915) CGroup: /system.slice/tcmu-runner.service ??1910 /usr/bin/tcmu-runner May 17 07:51:43 leap150 tcmu-runner[1910]: 2018-05-17 07:51:43.573 1910 [ERROR] reconfig_device:192 qcow/tcmtest: Handler reconfig failed with error -95. May 17 07:51:43 leap150 tcmu-runner[1910]: reconfig_device:192 qcow/tcmtest: Handler reconfig failed with error -95. May 17 07:51:43 leap150 tcmu-runner[1910]: 2018-05-17 07:51:43.573 1910 [ERROR] reconfig_device:192 qcow/tcmtest: Handler reconfig failed with error -95. May 17 07:51:43 leap150 tcmu-runner[1910]: reconfig_device:192 qcow/tcmtest: Handler reconfig failed with error -95. May 17 07:51:43 leap150 tcmu-runner[1910]: 2018-05-17 07:51:43.573 1910 [ERROR] reconfig_device:192 qcow/tcmtest: Handler reconfig failed with error -95. May 17 07:51:43 leap150 tcmu-runner[1910]: reconfig_device:192 qcow/tcmtest: Handler reconfig failed with error -95. May 17 07:51:43 leap150 tcmu-runner[1910]: 2018-05-17 07:51:43.574 1910 [ERROR] reconfig_device:192 qcow/tcmtest: Handler reconfig failed with error -95. May 17 07:51:43 leap150 tcmu-runner[1910]: reconfig_device:192 qcow/tcmtest: Handler reconfig failed with error -95. May 17 07:51:43 leap150 tcmu-runner[1910]: reconfig_device:192 qcow/tcmtest: Handler reconfig failed with error -95. May 17 07:51:43 leap150 tcmu-runner[1910]: 2018-05-17 07:51:43.575 1910 [ERROR] reconfig_device:192 qcow/tcmtest: Handler reconfig failed with error -95. ============================================================================= Best regards Holger -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1093639
http://bugzilla.suse.com/show_bug.cgi?id=1093639#c1
--- Comment #1 from Holger Schranz
From where I can get the lost configuration - it says it is recoverable.
Here is the .json file from where I try to recover: saveconfig-20180520-10:43:38.json { "fabric_modules": [], "storage_objects": [ { "alua_tpgs": [ { "alua_access_state": 0, "alua_access_status": 0, "alua_access_type": 3, "alua_support_active_nonoptimized": 1, "alua_support_active_optimized": 1, "alua_support_offline": 1, "alua_support_standby": 1, "alua_support_transitioning": 1, "alua_support_unavailable": 1, "alua_write_metadata": 0, "implicit_trans_secs": 0, "name": "default_tg_pt_gp", "nonop_delay_msecs": 100, "preferred": 0, "tg_pt_gp_id": 0, "trans_delay_msecs": 0 } ], "attributes": { "cmd_time_out": 30, "dev_config": "qcow//home/tf1.img", "dev_size": 1073741824, "emulate_write_cache": 0 }, "config": "qcow//home/tf1.img", "hw_max_sectors": 128, "name": "tcmtest", "plugin": "user", "size": 1073741824, "wwn": "3c77f03f-a79e-4839-88d4-716d4c764ec7" } ], "targets": [ { "fabric": "iscsi", "tpgs": [ { "attributes": { "authentication": 0, "cache_dynamic_acls": 0, "default_cmdsn_depth": 64, "default_erl": 0, "demo_mode_discovery": 1, "demo_mode_write_protect": 1, "fabric_prot_type": 0, "generate_node_acls": 0, "login_keys_workaround": 1, "login_timeout": 15, "netif_timeout": 2, "prod_mode_write_protect": 0, "t10_pi": 0, "tpg_enabled_sendtargets": 1 }, "enable": true, "luns": [ { "alias": "b25cf380cd", "alua_tg_pt_gp_name": "default_tg_pt_gp", "index": 0, "storage_object": "/backstores/user/tcmtest" } ], "node_acls": [ { "attributes": { "dataout_timeout": 3, "dataout_timeout_retries": 5, "default_erl": 0, "nopin_response_timeout": 30, "nopin_timeout": 15, "random_datain_pdu_offsets": 0, "random_datain_seq_offsets": 0, "random_r2t_offsets": 0 }, "mapped_luns": [ { "alias": "d8bbc3799b", "index": 0, "tpg_lun": 0, "write_protect": false } ], "node_wwn": "iqn.1996-04.de.suse:01:c94c1ee1f242" } ], "parameters": { "AuthMethod": "CHAP,None", "DataDigest": "CRC32C,None", "DataPDUInOrder": "Yes", "DataSequenceInOrder": "Yes", "DefaultTime2Retain": "20", "DefaultTime2Wait": "2", "ErrorRecoveryLevel": "0", "FirstBurstLength": "65536", "HeaderDigest": "CRC32C,None", "IFMarkInt": "Reject", "IFMarker": "No", "ImmediateData": "Yes", "InitialR2T": "Yes", "MaxBurstLength": "262144", "MaxConnections": "1", "MaxOutstandingR2T": "1", "MaxRecvDataSegmentLength": "8192", "MaxXmitDataSegmentLength": "262144", "OFMarkInt": "Reject", "OFMarker": "No", "TargetAlias": "LIO Target" }, "portals": [ { "ip_address": "192.168.178.35", "iser": false, "offload": false, "port": 3260 }, { "ip_address": "192.168.178.45", "iser": false, "offload": false, "port": 3260 } ], "tag": 1 } ], "wwn": "iqn.2003-01.org.linux-iscsi.leap150.x8664:sn.f21ea062ec7a" } ] } leap150:/etc/target/backup # ============================================================================== When the targetcli is closed the information is lost: actual saveconfig.json file: { "fabric_modules": [], "storage_objects": [ { "alua_tpgs": [ { "alua_access_state": 0, "alua_access_status": 0, "alua_access_type": 3, "alua_support_active_nonoptimized": 1, "alua_support_active_optimized": 1, "alua_support_offline": 1, "alua_support_standby": 1, "alua_support_transitioning": 1, "alua_support_unavailable": 1, "alua_write_metadata": 0, "implicit_trans_secs": 0, "name": "default_tg_pt_gp", "nonop_delay_msecs": 100, "preferred": 0, "tg_pt_gp_id": 0, "trans_delay_msecs": 0 } ], "attributes": { "cmd_time_out": 30, "dev_config": "qcow//home/tf1.img", "dev_size": 1073741824, "emulate_write_cache": 0 }, "config": "qcow//home/tf1.img", "hw_max_sectors": 128, "name": "tcmtest", "plugin": "user", "size": 1073741824, "wwn": "3c77f03f-a79e-4839-88d4-716d4c764ec7" } ], "targets": [ { "fabric": "iscsi", "tpgs": [ { "attributes": { "authentication": 0, "cache_dynamic_acls": 0, "default_cmdsn_depth": 64, "default_erl": 0, "demo_mode_discovery": 1, "demo_mode_write_protect": 1, "fabric_prot_type": 0, "generate_node_acls": 0, "login_keys_workaround": 1, "login_timeout": 15, "netif_timeout": 2, "prod_mode_write_protect": 0, "t10_pi": 0, "tpg_enabled_sendtargets": 1 }, "enable": true, "luns": [ { "alias": "b25cf380cd", "alua_tg_pt_gp_name": "default_tg_pt_gp", "index": 0, "storage_object": "/backstores/user/tcmtest" } ], "node_acls": [ { "attributes": { "dataout_timeout": 3, "dataout_timeout_retries": 5, "default_erl": 0, "nopin_response_timeout": 30, "nopin_timeout": 15, "random_datain_pdu_offsets": 0, "random_datain_seq_offsets": 0, "random_r2t_offsets": 0 }, "mapped_luns": [ { "alias": "d8bbc3799b", "index": 0, "tpg_lun": 0, "write_protect": false } ], "node_wwn": "iqn.1996-04.de.suse:01:c94c1ee1f242" } ], "parameters": { "AuthMethod": "CHAP,None", "DataDigest": "CRC32C,None", "DataPDUInOrder": "Yes", "DataSequenceInOrder": "Yes", "DefaultTime2Retain": "20", "DefaultTime2Wait": "2", "ErrorRecoveryLevel": "0", "FirstBurstLength": "65536", "HeaderDigest": "CRC32C,None", "IFMarkInt": "Reject", "IFMarker": "No", "ImmediateData": "Yes", "InitialR2T": "Yes", "MaxBurstLength": "262144", "MaxConnections": "1", "MaxOutstandingR2T": "1", "MaxRecvDataSegmentLength": "8192", "MaxXmitDataSegmentLength": "262144", "OFMarkInt": "Reject", "OFMarker": "No", "TargetAlias": "LIO Target" }, "portals": [], "tag": 1 } ], "wwn": "iqn.2003-01.org.linux-iscsi.leap150.x8664:sn.f21ea062ec7a" } ] } leap150:/etc/target/backup # -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1093639
http://bugzilla.suse.com/show_bug.cgi?id=1093639#c3
--- Comment #3 from Holger Schranz
http://bugzilla.suse.com/show_bug.cgi?id=1093639
http://bugzilla.suse.com/show_bug.cgi?id=1093639#c4
--- Comment #4 from Holger Schranz
http://bugzilla.suse.com/show_bug.cgi?id=1093639
Hannes Reinecke
http://bugzilla.suse.com/show_bug.cgi?id=1093639
http://bugzilla.suse.com/show_bug.cgi?id=1093639#c5
Lee Duncan
http://bugzilla.suse.com/show_bug.cgi?id=1093639
http://bugzilla.suse.com/show_bug.cgi?id=1093639#c6
--- Comment #6 from Holger Schranz
http://bugzilla.suse.com/show_bug.cgi?id=1093639
http://bugzilla.suse.com/show_bug.cgi?id=1093639#c7
Lee Duncan
Hello Mr. Duncan,
After one year ... please close it. Meanwhile we have implement a new solution.
Thanks a lot
Best regards
Thank you for your reply. My apologies on the lack of response up until now -- this bug somehow fell through the cracks and was recently assigned to me. If you have this or any other issue with the target or initiator code, please feel free to file a bug an cc me. -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com