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: