Hello community,
here is the log from the commit of package yast2-iscsi-lio-server for
openSUSE:Factory checked in at 2014-05-16 18:18:33
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
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"
Changes:
--------
---
/work/SRC/openSUSE:Factory/yast2-iscsi-lio-server/yast2-iscsi-lio-server.changes
2014-05-06 14:04:07.000000000 +0200
+++
/work/SRC/openSUSE:Factory/.yast2-iscsi-lio-server.new/yast2-iscsi-lio-server.changes
2014-05-16 18:18:34.000000000 +0200
@@ -1,0 +2,6 @@
+Thu May 15 09:53:44 CEST 2014 - [email protected]
+
+- save configuration on Finish (call lio_dump and tcm_dump)
+- 3.1.7
+
+-------------------------------------------------------------------
Old:
----
yast2-iscsi-lio-server-3.1.6.tar.bz2
New:
----
yast2-iscsi-lio-server-3.1.7.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ yast2-iscsi-lio-server.spec ++++++
--- /var/tmp/diff_new_pack.131c6W/_old 2014-05-16 18:18:35.000000000 +0200
+++ /var/tmp/diff_new_pack.131c6W/_new 2014-05-16 18:18:35.000000000 +0200
@@ -17,7 +17,7 @@
Name: yast2-iscsi-lio-server
-Version: 3.1.6
+Version: 3.1.7
Release: 0
BuildRoot: %{_tmppath}/%{name}-%{version}-build
++++++ yast2-iscsi-lio-server-3.1.6.tar.bz2 ->
yast2-iscsi-lio-server-3.1.7.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/yast2-iscsi-lio-server-3.1.6/package/yast2-iscsi-lio-server.changes
new/yast2-iscsi-lio-server-3.1.7/package/yast2-iscsi-lio-server.changes
--- old/yast2-iscsi-lio-server-3.1.6/package/yast2-iscsi-lio-server.changes
2014-05-06 09:40:49.000000000 +0200
+++ new/yast2-iscsi-lio-server-3.1.7/package/yast2-iscsi-lio-server.changes
2014-05-15 12:10:47.000000000 +0200
@@ -1,4 +1,10 @@
-------------------------------------------------------------------
+Thu May 15 09:53:44 CEST 2014 - [email protected]
+
+- save configuration on Finish (call lio_dump and tcm_dump)
+- 3.1.7
+
+-------------------------------------------------------------------
Tue May 6 09:20:58 CEST 2014 - [email protected]
- fixed integer conversion to string (bnc #874963)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/yast2-iscsi-lio-server-3.1.6/package/yast2-iscsi-lio-server.spec
new/yast2-iscsi-lio-server-3.1.7/package/yast2-iscsi-lio-server.spec
--- old/yast2-iscsi-lio-server-3.1.6/package/yast2-iscsi-lio-server.spec
2014-05-06 09:40:49.000000000 +0200
+++ new/yast2-iscsi-lio-server-3.1.7/package/yast2-iscsi-lio-server.spec
2014-05-15 12:10:47.000000000 +0200
@@ -17,7 +17,7 @@
Name: yast2-iscsi-lio-server
-Version: 3.1.6
+Version: 3.1.7
Release: 0
BuildRoot: %{_tmppath}/%{name}-%{version}-build
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/yast2-iscsi-lio-server-3.1.6/src/modules/IscsiLioData.rb
new/yast2-iscsi-lio-server-3.1.7/src/modules/IscsiLioData.rb
--- old/yast2-iscsi-lio-server-3.1.6/src/modules/IscsiLioData.rb
2014-05-06 09:40:50.000000000 +0200
+++ new/yast2-iscsi-lio-server-3.1.7/src/modules/IscsiLioData.rb
2014-05-15 12:10:47.000000000 +0200
@@ -1403,6 +1403,17 @@
nil
end
+ def SaveSettings
+ dump_cmd = "/usr/sbin/lio_dump --file /etc/target/lio_setup.sh"
+ if !LogExecCmd(dump_cmd)
+ Report.Error(_("Cannot save lio setup"))
+ end
+ setup_cmd = "/usr/sbin/tcm_dump --file /etc/target/tcm_setup.sh"
+ if !LogExecCmd(setup_cmd)
+ Report.Error(_("Cannot save tcm setup"))
+ end
+ end
+
publish :function => :CreateLunName, :type => "string (list <string>,
string)"
publish :function => :ParseConfigIetd, :type => "map <string, any> (map
<string, any>)"
publish :function => :AddNewTarget, :type => "void (string, integer, list
<string>)"
@@ -1446,6 +1457,7 @@
publish :function => :DoRemoveClntLun, :type => "boolean (string, integer,
string, integer)"
publish :function => :DoCreateClntLun, :type => "boolean (string, integer,
string, integer, integer)"
publish :function => :UpdateConfig, :type => "void ()"
+ publish :function => :SaveSettings, :type => "void()"
end
IscsiLioData = IscsiLioDataClass.new
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/yast2-iscsi-lio-server-3.1.6/src/modules/IscsiLioServer.rb
new/yast2-iscsi-lio-server-3.1.7/src/modules/IscsiLioServer.rb
--- old/yast2-iscsi-lio-server-3.1.6/src/modules/IscsiLioServer.rb
2014-05-06 09:40:50.000000000 +0200
+++ new/yast2-iscsi-lio-server-3.1.7/src/modules/IscsiLioServer.rb
2014-05-15 12:10:47.000000000 +0200
@@ -280,13 +280,12 @@
# IscsiLioServer write dialog caption
caption = _("Saving iSCSI LIO Target Configuration")
- # TODO FIXME And set the right number of stages
+ # number of stages
steps = 2
sl = 500
Builtins.sleep(sl)
- # TODO FIXME Names of real stages
# We do not set help text here, because it was set outside
Progress.New(
caption,
@@ -294,15 +293,15 @@
steps,
[
# Progress stage 1/2
- _("Write the settings"),
+ _("Write firewall settings"),
# Progress stage 2/2
- _("Run SuSEconfig")
+ _("Write lio configuration")
],
[
# Progress step 1/2
- _("Writing the settings..."),
+ _("Writing the firewall settings..."),
# Progress step 2/2
- _("Running SuSEconfig..."),
+ _("Writing lio configuration..."),
# Progress finished
_("Finished")
],
@@ -315,6 +314,7 @@
Progress.set(true)
Progress.NextStage
+ IscsiLioData.SaveSettings
Builtins.sleep(sl)
true
end
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]