<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/targetcli.git/scripts, branch 3.0-pre2</title>
<subtitle>github.com: agrover/targetcli-fb.git
</subtitle>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/targetcli.git/'/>
<entry>
<title>Initscripts start warns of already loaded modules</title>
<updated>2014-05-19T20:27:13+00:00</updated>
<author>
<name>Jerome Martin</name>
<email>jxm@netiant.com</email>
</author>
<published>2014-05-19T20:27:13+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/targetcli.git/commit/?id=14e223728bb521b6defc3529e51beaef37eb56fb'/>
<id>14e223728bb521b6defc3529e51beaef37eb56fb</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Use parse_specfile(), list_specfiles() in initscript</title>
<updated>2014-05-19T19:48:13+00:00</updated>
<author>
<name>Jerome Martin</name>
<email>jxm@netiant.com</email>
</author>
<published>2014-05-19T18:57:00+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/targetcli.git/commit/?id=f902c7f3840f1539e9de79f83068df500730fc57'/>
<id>f902c7f3840f1539e9de79f83068df500730fc57</id>
<content type='text'>
Following rtslib/4f735bb86e8cef3de111d4ddff98695aeb35536e, we cannot use
RTSRoot.fabric_modules before loading the kernel modules.

To circumvent the problem, rtslib/93934a720968780b24ce03bb8e03d81f352d6662
introduced parse_specfile() and list_specfiles() which only require the
specfiles to be present on the system.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Following rtslib/4f735bb86e8cef3de111d4ddff98695aeb35536e, we cannot use
RTSRoot.fabric_modules before loading the kernel modules.

To circumvent the problem, rtslib/93934a720968780b24ce03bb8e03d81f352d6662
introduced parse_specfile() and list_specfiles() which only require the
specfiles to be present on the system.
</pre>
</div>
</content>
</entry>
<entry>
<title>Initscript rely on rtslib to create configfs nodes</title>
<updated>2014-05-19T19:36:10+00:00</updated>
<author>
<name>Jerome Martin</name>
<email>jxm@netiant.com</email>
</author>
<published>2014-05-19T16:31:39+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/targetcli.git/commit/?id=12662ce573bec0464ba7f9f575c5359382403c99'/>
<id>12662ce573bec0464ba7f9f575c5359382403c99</id>
<content type='text'>
We used to mkdir the fabric modules configfs nodes after loading the kernel
modules. RTSLib does this already, so rely on it and remove that code from the
initscript.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We used to mkdir the fabric modules configfs nodes after loading the kernel
modules. RTSLib does this already, so rely on it and remove that code from the
initscript.
</pre>
</div>
</content>
</entry>
<entry>
<title>Initscript stop action LSB compliance fix</title>
<updated>2014-05-19T16:22:30+00:00</updated>
<author>
<name>Jerome Martin</name>
<email>jxm@netiant.com</email>
</author>
<published>2014-05-19T16:19:12+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/targetcli.git/commit/?id=7daa580ddc108fc283b82e7796d78b12afc9ce29'/>
<id>7daa580ddc108fc283b82e7796d78b12afc9ce29</id>
<content type='text'>
When trying to stop an already stopped service, the initscript should succeed
and return 0. We now return 0 when trying to stop the target when
/sys/kernel/config/target does not exists. This also fixes a potential problem
when upgrading targetcli with the target stopped.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When trying to stop an already stopped service, the initscript should succeed
and return 0. We now return 0 when trying to stop the target when
/sys/kernel/config/target does not exists. This also fixes a potential problem
when upgrading targetcli with the target stopped.
</pre>
</div>
</content>
</entry>
<entry>
<title>Use FabricModules.all(), not RTSRoot in initscript</title>
<updated>2014-05-19T15:58:40+00:00</updated>
<author>
<name>Jerome Martin</name>
<email>jxm@netiant.com</email>
</author>
<published>2014-05-19T15:58:40+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/targetcli.git/commit/?id=b7cd5e1246e10243e01d7e16c879ec9553aeae8b'/>
<id>b7cd5e1246e10243e01d7e16c879ec9553aeae8b</id>
<content type='text'>
* In rtslib/61f72fd404eda5e263c2fd774db814dde5daa7cf, all module loading
  logic was removed from rtslib, and thus RTSRoot cannot be instanciated
  before the initscript loaded the target module.
* FabricModules.all() is a class method that only relies on specfiles
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* In rtslib/61f72fd404eda5e263c2fd774db814dde5daa7cf, all module loading
  logic was removed from rtslib, and thus RTSRoot cannot be instanciated
  before the initscript loaded the target module.
* FabricModules.all() is a class method that only relies on specfiles
</pre>
</div>
</content>
</entry>
<entry>
<title>Migrate running config if no startup file</title>
<updated>2014-05-19T14:12:07+00:00</updated>
<author>
<name>Jerome Martin</name>
<email>jxm@netiant.com</email>
</author>
<published>2014-05-19T10:10:22+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/targetcli.git/commit/?id=8b3d1b1a8bf7bf542fc635c0302e872db4a50e14'/>
<id>8b3d1b1a8bf7bf542fc635c0302e872db4a50e14</id>
<content type='text'>
This allows to ease a little bit migration from development setups and legacy
lio-utils based installations. Configuration dumps only happens when starting
/etc/init.d/target if there is not pre-existing /etc/scsi_target.lio config and
the configfs target node is up.

* Initscript start detects migrations and saves running config
* Added lio-utils migration information in README.md
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This allows to ease a little bit migration from development setups and legacy
lio-utils based installations. Configuration dumps only happens when starting
/etc/init.d/target if there is not pre-existing /etc/scsi_target.lio config and
the configfs target node is up.

* Initscript start detects migrations and saves running config
* Added lio-utils migration information in README.md
</pre>
</div>
</content>
</entry>
<entry>
<title>Allow the startup config to contain new attributes</title>
<updated>2014-05-12T00:49:56+00:00</updated>
<author>
<name>Jerome Martin</name>
<email>jxm@netiant.com</email>
</author>
<published>2014-05-11T23:44:34+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/targetcli.git/commit/?id=b03c4c0be821486252920abb5faf89014d4a7bdd'/>
<id>b03c4c0be821486252920abb5faf89014d4a7bdd</id>
<content type='text'>
Attributes not described in policy files but existing in the installed kernel
modules can now be loaded by rtslib.Config, which means they can also be dumped
to the startup config. We must allow loading them also from there.

Also, the initscript can now load a config with new attributes.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Attributes not described in policy files but existing in the installed kernel
modules can now be loaded by rtslib.Config, which means they can also be dumped
to the startup config. We must allow loading them also from there.

Also, the initscript can now load a config with new attributes.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix initscript to accept missing fabric modules</title>
<updated>2014-05-11T21:40:28+00:00</updated>
<author>
<name>Jerome Martin</name>
<email>jxm@netiant.com</email>
</author>
<published>2014-05-11T21:40:28+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/targetcli.git/commit/?id=9aad6655ab584be5b8647e63fa72d809d63d38cc'/>
<id>9aad6655ab584be5b8647e63fa72d809d63d38cc</id>
<content type='text'>
It is possible that we include spec files with rtlib for fabric modules not
currently installed. A current example is the usb_gadget fabric module.

The target initscript will simply issue a warning when a fabric module
referenced in a spec file cannot be loaded.

Also, on stop, the initscript now tries to do as much as possible, even
if unloading something fails along the way.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It is possible that we include spec files with rtlib for fabric modules not
currently installed. A current example is the usb_gadget fabric module.

The target initscript will simply issue a warning when a fabric module
referenced in a spec file cannot be loaded.

Also, on stop, the initscript now tries to do as much as possible, even
if unloading something fails along the way.
</pre>
</div>
</content>
</entry>
<entry>
<title>New "configure" mode in targetcli</title>
<updated>2014-05-11T17:33:36+00:00</updated>
<author>
<name>Jerome Martin</name>
<email>jxm@netiant.com</email>
</author>
<published>2014-05-11T15:44:22+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/targetcli.git/commit/?id=a672a5777eb9a6ec79c8a710d152a989803ff80d'/>
<id>a672a5777eb9a6ec79c8a710d152a989803ff80d</id>
<content type='text'>
This is an early preview of the next-generation targetcli based on the new
rtslib.Config API and the lio shell from the rtsli lio-config branch.

This mode allows editing a candidate configuration without impacting the
running system. This candidate configuration can then either be commited or
discarded at will. If commited, it will be applied to the running system and
saved as the new startup configuration.

Other features include loading a configuration from file, undo support,
rollback support, configuration backups and more.

This new mode is using a subshell not based anymore on configshell.
The plan is to introduce this new subshell in the next release, deemed as a
transition release, and eventually replace entirely the current targetcli UI,
when it will have reached parity with the current configshell both in terms of
features and quality of user interaction (colors, syntetic view of the system,
auto-completion, etc.). A basic standalone version of this shell is included
as targetcli-ng.

More information can be found in the target-devel mailing-list, notably the
"[ANN] LIO userspace improvements" thread dated 2014-02-27:

http://thread.gmane.org/gmane.linux.scsi.target.devel/5838/focus=5847

The code was manually ported over from the rtslib lio-config branch.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is an early preview of the next-generation targetcli based on the new
rtslib.Config API and the lio shell from the rtsli lio-config branch.

This mode allows editing a candidate configuration without impacting the
running system. This candidate configuration can then either be commited or
discarded at will. If commited, it will be applied to the running system and
saved as the new startup configuration.

Other features include loading a configuration from file, undo support,
rollback support, configuration backups and more.

This new mode is using a subshell not based anymore on configshell.
The plan is to introduce this new subshell in the next release, deemed as a
transition release, and eventually replace entirely the current targetcli UI,
when it will have reached parity with the current configshell both in terms of
features and quality of user interaction (colors, syntetic view of the system,
auto-completion, etc.). A basic standalone version of this shell is included
as targetcli-ng.

More information can be found in the target-devel mailing-list, notably the
"[ANN] LIO userspace improvements" thread dated 2014-02-27:

http://thread.gmane.org/gmane.linux.scsi.target.devel/5838/focus=5847

The code was manually ported over from the rtslib lio-config branch.
</pre>
</div>
</content>
</entry>
<entry>
<title>Migrate to rtslib.Config for config save/restore</title>
<updated>2014-05-11T15:31:11+00:00</updated>
<author>
<name>Jerome Martin</name>
<email>jxm@netiant.com</email>
</author>
<published>2014-05-11T08:13:40+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/targetcli.git/commit/?id=67f92d8720a4ac177e933a3e313672d29fb8b952'/>
<id>67f92d8720a4ac177e933a3e313672d29fb8b952</id>
<content type='text'>
* System startup configuration is now done in this package, and both the new
  initscript and saving configuration from the shell (saveconfig) are using
  the new rtslib.Config API and the /etc/target/scsi_target.lio as config file

* The new initscript is a complete rewrite from scratch, and handles module
  (both core and fabric) loading and configfs initial configfs group creation,
  using rtlib.FabricModule specfile information

* Packaging update to conflict with lio-utils and ship the new init script

* Minor code cleanup in UINode.assert_root
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* System startup configuration is now done in this package, and both the new
  initscript and saving configuration from the shell (saveconfig) are using
  the new rtslib.Config API and the /etc/target/scsi_target.lio as config file

* The new initscript is a complete rewrite from scratch, and handles module
  (both core and fabric) loading and configfs initial configfs group creation,
  using rtlib.FabricModule specfile information

* Packaging update to conflict with lio-utils and ship the new init script

* Minor code cleanup in UINode.assert_root
</pre>
</div>
</content>
</entry>
</feed>
