summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* targetcli: Change copyright to Apache License 2.02.1upstreamNicholas Bellinger2013-07-0414-783/+282
| | | | | | | | | This patch converts rtslib code copyright from AGPL to the permissive Apache License 2.0. It also update copyright owner to Datera, Inc. Signed-off-by: Nicholas Bellinger <nab@risingtidesystems.com>
* targetcli: Add support for iser network portal attribute in UIPortal classNicholas Bellinger2013-04-111-1/+24
| | | | Signed-off-by: Nicholas Bellinger <nab@risingtidesystems.com>
* src: fix display of numeral formsJan Engelhardt2013-03-121-6/+6
| | | | For an amount of 0, the plural is to be used in English.
* Fixup debian/copyright to refer to correct licenseHannes Reinecke2013-01-181-3/+4
| | | | | | | | The package is distributed under the GNU Affero GPL, so the debian copyright file should refer to the correct license. Signed-off-by: Hannes Reinecke <hare@suse.de> Signed-off-by: Nicholas Bellinger <nab@risingtidesystems.com>
* luns create/delete now accept lunX syntaxJerome Martin2012-05-081-3/+14
| | | | | | | * Normally, the lun is referenced by its index which is a numebr greater than 0, and this is supported by tab completion. Howver, it seems that for some, typing 'lunX' instead of just 'X' is more intuitive, so the alternative syntax is now allowed.
* Fixed wrong exception check in luns/ createJerome Martin2012-05-081-2/+3
| | | | | * When trying to create a new LUN with a bad storage object, a stack trace was being dumped.
* Allow CTRL-D in saveconfig and unsaved config promptJerome Martin2012-05-082-2/+10
|
* Added node ACLs tcq_depth attributeJerome Martin2012-05-081-0/+29
| | | | * This is not an attribute in rtslib, but we present it as if it was one.
* Changed default auto_cd_after_create to FalseJerome Martin2012-05-081-1/+1
| | | | * Do not enter a new object context right after creating it by default.
* Skip unsaved config check on exit when not rootJerome Martin2012-05-081-1/+2
| | | | * A warning would be nice but lio_dump needs root privileges.
* Now check if config needs save before exitingJerome Martin2012-05-081-0/+45
| | | | * If there are unsaved changes, prompt the user.
* Made startup message less verbose, display versionJerome Martin2012-05-081-9/+7
| | | | | * Now displaying targetcli / rtslib version on startup * Retained only copyright notice.
* Added generic auth support in ui_nodeJerome Martin2012-05-072-44/+30
| | | | | * Replaces Node ACL ad-hoc auth support * Allows auth support in TPGT (recently added in iSCSI)
* Made startup less verboseJerome Martin2012-05-071-6/+6
| | | | * Loading fabric modules success and failures are now debug messages only.
* Removed full git log from packages changelogs.Jerome Martin2011-11-011-22/+20
|
* Added install prefix for setup.py in specfileJerome Martin2011-10-191-1/+1
| | | | * Useful on SuSe where default prefix is /usr/local instead of /usr
* Renamed redhat/ to rpm/Jerome Martin2011-10-192-4/+4
|
* Normalized release archive generation.Jerome Martin2011-09-221-2/+9
| | | | | | | | | | | | * Now using gzip -n to compress the release tarball. * Forcing gzip compression level to 6. * Setting the timestamp for all files in the archive to the last commit's one. * Feeding a sorted list of files to tar. * Forcing numerid UIDs in tarball and original owner/group to be uid 0. * Forcing gnu archive format. * Forcing blocking factor. * Forcing name quoting style. * Preserves git archive permissions.
* Now using a tarball-release based Makefile.2.0rc1Jerome Martin2011-09-2212-1051/+115
| | | | | | | | | | | | | | | * Removed useless obsolete targets (setup.py based) * Merged version templating in Makefile (removed bin/gen_changelog*). * Added 'release' make target that generates a dist/*.tar.gz official versionned release tarball from which one can just use setup.py, dpkg-buildpackage or rpmbuild (no Makefile in it). * Removed obsolete bin/lint as well. * Now the 'rpm' and 'deb' Makefile targets use the generated release build. * Makefile commands now use no echo mode. * Added timestamps for virtual targets. * Removed obsolete (empty) doc packages generation. The shell is self-documenting. * Cleaned up setup.py alignements.
* Spacing between classes is now two lines.Jerome Martin2011-09-204-0/+24
|
* Changed name to targetcli at community request.Jerome Martin2011-09-2032-110/+110
|
* Updated version numbering code.Jerome Martin2011-09-161-18/+3
| | | | | | | | | * Now uses 'git describe --tags' output, just replacing dashes with dots for compatibility with RPM version numbers. * For coherency, RPM and debian version numbers are now the same. * Removed the timestamp, as it is not needed anymore (even when reordering commits, the version is non-ambiguous, as for non-tagged commits we have part of the last commit hash and the number of commits since last tag).
* Fixed build branch (in git export) in Makefile.Jerome Martin2011-07-291-1/+2
|
* Fixed build and install dependencies.Jerome Martin2011-07-192-3/+3
| | | | | * Added lio-utils dependency to rtsadmin packages. * Added python-rtslib and python-configshell to build requires.
* Root UI now imports tcm_dump directly.Jerome Martin2011-07-191-2/+7
|
* Moved saveconfig to /, added hostname reminder.Jerome Martin2011-07-192-13/+15
| | | | | | | * Reminder is useful for remote access. * Moving to root node makes it clear that the whole config is saved, not just the current node or subtree. * Removes command clutter from nodes.
* Removed temporary debug hidden cmds _sh and _cfs.Jerome Martin2011-07-181-8/+0
| | | | | | * Were not even proper UI commands (just hardcoded test cases) * Now useless as that part has been debugged * Shell access can be dangerous using remote access.
* Converted to refactored ConfigShell/Node layout.Jerome Martin2011-07-186-342/+302
| | | | | | | * Now using console, log, prefs through shell. * Root node binds to shell, not the other way. * Replaced del_child() calls by remove_child() * Replaced a children loop scan by ConfigNode get_child() method.
* Fixed error for nonexisting IP on portal creation.Jerome Martin2011-06-101-2/+1
| | | | * Message is now less wordy and includes faulty IP Address.
* Now check for acls_auth feature in ACL UI.Jerome Martin2011-06-091-4/+4
| | | | * Prevents exposing auth config group when the feature is not implemented.
* Added discovery_auth support to fabric modules UI.Jerome Martin2011-06-091-0/+50
|
* Using config params wrappers, not direct access.Jerome Martin2011-06-082-43/+27
|
* Now using configshell new ui_type style.Jerome Martin2011-06-084-15/+13
| | | | * Instead of using directly ui_type_* methods, use the type name.
* Missed 'writable' flag to some globals params.Jerome Martin2011-06-081-4/+8
|
* Merged UIAttributes/UIParameters to UIRTSLibNode.Jerome Martin2011-06-044-63/+53
| | | | | | | | * As a result all UIRTSLibNode have the capabilities to use attributes and parameters. * Added a couple of checks to actually enable the feature only if the underlying rtslib node has attributes/parameters. * Added the writable flag to the Attributes/Parameters.
* Added auto_cd_after_create global.Jerome Martin2011-06-015-39/+109
| | | | | * Automatically cd's to newly created object after a 'create' command if true. * Added autosave (always) of last created node's path under @last bookmark.
* 'version' command now warns if version is not set.Jerome Martin2011-06-011-3/+11
|
* Code cleanup: unused imports, indents, unused vars.Jerome Martin2011-06-015-8/+7
|
* Fixed regression from 1d55a9f7 (target creation)Jerome Martin2011-06-011-1/+1
| | | | * Only impacts non multi-TPG targets, was a non-converted object name.
* Added version command to new style storage objects.Jerome Martin2011-05-311-9/+8
|
* Fixed some line breaks.Jerome Martin2011-05-312-10/+6
|
* Added autocompletion for "acls/ delete".Jerome Martin2011-05-311-0/+23
|
* Fixed regression in 1d55a9f (catch RTSLibNotInCFS)Jerome Martin2011-05-311-4/+0
| | | | | | | * An abusive catch of RTSLibNotInCFS in execute_command was retrying the command endlessly, which is bad on general principle but even worse when the RTSLibNotInCFS is legit and should get through (i.e. trying to delete a non-existent MappedLUN would result in and endless loop).
* Fixed legacy storage object and backstore deletion.Jerome Martin2011-05-311-2/+2
| | | | | * Wrong object reference after previous wholesale conversion to using "rtsnode" for underlying configFS objects in UIRTSLibNode.
* Fixed .gitignore to be more precise.Jerome Martin2011-05-311-2/+4
|
* Switched to 1:1 hba:storage view.Jerome Martin2011-05-316-222/+658
| | | | | | | | | * Added 'legacy_hba_view' global boolean to select legacy view if needed. * Added root refresh when setting a global parameter. * All backstore plugins now part of the backstores/ tree * Only one storage object by backstore. * We now hide indiviual backstores. As they are mapped 1:1 with storage objects, both levels are collapsed.
* Fixed missing space in help text.Jerome Martin2011-05-271-1/+1
|
* Now creates first TPG for multi TPG target.Jerome Martin2011-05-261-2/+5
| | | | | * The target is useless without at least one TPG, so now we create it automatically.
* Global 'auto_add_mapped_luns' now defaults to true.Jerome Martin2011-05-261-1/+2
|
* Better handling of non-existing configfs objects.Jerome Martin2011-05-263-87/+110
| | | | | | | | | | | * If rtslib/configfs objects have been deleted under us, catch the (new) RTSLibNotInCFS exception and refresh before executing the command. * All UI objects attached to a configfs/rtslib node now check that they still exist before executing a command. If not, display an error, refresh the tree and go back to root (i.e. after doing '../ delete object' while in /parent/object). Done via a new class UIRTSLibNode. * Refactored a bit UIRTSLibNode to use self.rtsnode instead of self.lun, self.tpg, etc.