Hello community,
here is the log from the commit of package yast2-iscsi-lio-server for
openSUSE:Factory checked in at 2018-03-26 13:08:17
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/yast2-iscsi-lio-server (Old)
and /work/SRC/openSUSE:Factory/.yast2-iscsi-lio-server.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "yast2-iscsi-lio-server"
Mon Mar 26 13:08:17 2018 rev:25 rq:590728 version:4.0.6
Changes:
--------
---
/work/SRC/openSUSE:Factory/yast2-iscsi-lio-server/yast2-iscsi-lio-server.changes
2018-02-14 10:50:56.595149521 +0100
+++
/work/SRC/openSUSE:Factory/.yast2-iscsi-lio-server.new/yast2-iscsi-lio-server.changes
2018-03-26 13:08:24.949801257 +0200
@@ -1,0 +2,15 @@
+Fri Mar 23 07:24:02 UTC 2018 - [email protected]
+
+- bsc#1086029
+ Handle the case that users want to delete a LUNs which
+ are not created yet(LUNs have data structure in memory but
+ not execute command to create them).
+
+-------------------------------------------------------------------
+Thu Mar 22 06:11:48 UTC 2018 - [email protected]
+
+- bsc#1085421
+ Handle the case that the storage of a LUN get disconnected
+ accidentally.
+
+-------------------------------------------------------------------
Old:
----
yast2-iscsi-lio-server-4.0.4.tar.bz2
New:
----
yast2-iscsi-lio-server-4.0.6.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ yast2-iscsi-lio-server.spec ++++++
--- /var/tmp/diff_new_pack.xbZawZ/_old 2018-03-26 13:08:26.325751789 +0200
+++ /var/tmp/diff_new_pack.xbZawZ/_new 2018-03-26 13:08:26.333751502 +0200
@@ -17,7 +17,7 @@
Name: yast2-iscsi-lio-server
-Version: 4.0.4
+Version: 4.0.6
Release: 0
BuildRoot: %{_tmppath}/%{name}-%{version}-build
++++++ yast2-iscsi-lio-server-4.0.4.tar.bz2 ->
yast2-iscsi-lio-server-4.0.6.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/yast2-iscsi-lio-server-4.0.4/package/yast2-iscsi-lio-server.changes
new/yast2-iscsi-lio-server-4.0.6/package/yast2-iscsi-lio-server.changes
--- old/yast2-iscsi-lio-server-4.0.4/package/yast2-iscsi-lio-server.changes
2018-02-13 10:01:09.000000000 +0100
+++ new/yast2-iscsi-lio-server-4.0.6/package/yast2-iscsi-lio-server.changes
2018-03-23 16:26:06.000000000 +0100
@@ -1,4 +1,19 @@
-------------------------------------------------------------------
+Fri Mar 23 07:24:02 UTC 2018 - [email protected]
+
+- bsc#1086029
+ Handle the case that users want to delete a LUNs which
+ are not created yet(LUNs have data structure in memory but
+ not execute command to create them).
+
+-------------------------------------------------------------------
+Thu Mar 22 06:11:48 UTC 2018 - [email protected]
+
+- bsc#1085421
+ Handle the case that the storage of a LUN get disconnected
+ accidentally.
+
+-------------------------------------------------------------------
Mon Feb 12 13:59:06 UTC 2018 - [email protected]
- fate#319238
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/yast2-iscsi-lio-server-4.0.4/package/yast2-iscsi-lio-server.spec
new/yast2-iscsi-lio-server-4.0.6/package/yast2-iscsi-lio-server.spec
--- old/yast2-iscsi-lio-server-4.0.4/package/yast2-iscsi-lio-server.spec
2018-02-13 10:01:09.000000000 +0100
+++ new/yast2-iscsi-lio-server-4.0.6/package/yast2-iscsi-lio-server.spec
2018-03-23 16:26:06.000000000 +0100
@@ -17,7 +17,7 @@
Name: yast2-iscsi-lio-server
-Version: 4.0.4
+Version: 4.0.6
Release: 0
BuildRoot: %{_tmppath}/%{name}-%{version}-build
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/yast2-iscsi-lio-server-4.0.4/src/include/iscsi-lio-server/TargetData.rb
new/yast2-iscsi-lio-server-4.0.6/src/include/iscsi-lio-server/TargetData.rb
--- old/yast2-iscsi-lio-server-4.0.4/src/include/iscsi-lio-server/TargetData.rb
2018-02-13 10:01:09.000000000 +0100
+++ new/yast2-iscsi-lio-server-4.0.6/src/include/iscsi-lio-server/TargetData.rb
2018-03-23 16:26:06.000000000 +0100
@@ -285,6 +285,10 @@
end
class TargetData
+ include Yast::UIShortcuts
+ include Yast::I18n
+ include Yast::Logger
+
RE_IQN_TARGET = /iqn\.\d{4}\-\d{2}\.[\w\.:\-]+\s\.+\s\[TPGs:\s\d+\]/
RE_IQN_NAME = /iqn\.\d{4}-\d{2}\.[\w\.:\-]+/
@@ -462,7 +466,14 @@
lun_num_int = lun_num[3,lun_num.length]
lun_path_tmp = RE_LUN_PATH.match(line).to_s
lun_path = lun_path_tmp[1,lun_path_tmp.length-2]
- @current_tpg.store_lun(lun_num,[rand(9999), lun_num_int, lun_name,
lun_path, File.ftype(lun_path)])
+ if !File.exist?(lun_path)
+ msg = format(_("Cannot access the storage %s.\n" \
+ "Please consider reconnecting the storage or\n" \
+ "deleting then recreating the target which is using this
storage."), lun_path)
+ Yast::Popup.Error(msg)
+ else
+ @current_tpg.store_lun(lun_num,[rand(9999), lun_num_int, lun_name,
lun_path, File.ftype(lun_path)])
+ end
end
# handle portals here
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/yast2-iscsi-lio-server-4.0.4/src/include/iscsi-lio-server/UI_dialogs.rb
new/yast2-iscsi-lio-server-4.0.6/src/include/iscsi-lio-server/UI_dialogs.rb
--- old/yast2-iscsi-lio-server-4.0.4/src/include/iscsi-lio-server/UI_dialogs.rb
2018-02-13 10:01:09.000000000 +0100
+++ new/yast2-iscsi-lio-server-4.0.6/src/include/iscsi-lio-server/UI_dialogs.rb
2018-03-23 16:26:06.000000000 +0100
@@ -2562,7 +2562,7 @@
rescue Cheetah::ExecutionFailed => e
if e.stderr != nil
failed_storage += (lun[3] + "\n")
- table_remove_lun_item(lun[0])
+ table_remove_lun(lun[3])
update_table
next
end
@@ -2892,7 +2892,12 @@
end
end
when :delete
- lun = @lun_table.get_selected
+ lun_array = @lun_table.get_selected
+ lun = lun_array[0]
+ if lun[1] == -1
+ @lun_table.table_remove_lun(lun[3])
+ return nil
+ end
cmd = "targetcli"
p1 = "backstores/"
if lun[4] == "file"