| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
No longer supported in rtslib and latest version of the TCMU kernel code.
Signed-off-by: Andy Grover <agrover@redhat.com>
|
| |
|
|
|
|
| |
Add support for defining user-backed storage objects.
Signed-off-by: Andy Grover <agrover@redhat.com>
|
| |
|
|
|
|
|
|
|
|
| |
This used to translate to setting emulate_write_cache, but this is no
longer supported by the kernel (a good thing).
targetcli commands are not an API, so we can change this whenever it is
appropriate.
Signed-off-by: Andy Grover <agrover@redhat.com>
|
| |
|
|
| |
Signed-off-by: Andy Grover <agrover@redhat.com>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
If argument is not a valid storageobject path (or lun, for nodeacl),
also check to see if it's a file or block device, and attempt to
create a new storage object backed by it, and proceed from there.
Enable path autocompletion to go along with this.
This allows mapping a block device to an existing NodeACL in one command.
Signed-off-by: Andy Grover <agrover@redhat.com>
|
| |
|
|
|
|
|
|
| |
Makes things a little easier.
Update manpage quickstart to no longer require this step.
Signed-off-by: Andy Grover <agrover@redhat.com>
|
| |
|
|
| |
Signed-off-by: Andy Grover <agrover@redhat.com>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
If run_cmdline raises an exception, return 1 as exit code and print
exception text to stderr.
Keep running shell.run_interactive until shell._exit is set, logging
error messages.
Overriding execute_command in UINode no longer needed, remove.
Signed-off-by: Andy Grover <agrover@redhat.com>
|
| |
|
|
| |
Signed-off-by: Andy Grover <agrover@redhat.com>
|
| |
|
|
|
|
|
|
|
|
| |
It is possible to create targets for hardware-based targets using WWNs
that are not in the fabric's WWN list. However, if the user is
creating one of these, print a warning, because if the user doesn't
expect this (e.g. made a typo from an existing hw WWN) then things won't
work and it may not be clear why.
Signed-off-by: Andy Grover <agrover@redhat.com>
|
| |
|
|
| |
Signed-off-by: Andy Grover <agrover@redhat.com>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Python 3.3 provides the fallocate() system call which is better for
allocating disk space than ftruncate(). ftruncate() sets the file size
to the requested size but does not reserve the blocks in the file
system. Unlike ftruncate(), fallocate() fails if there is not enough
free space.
Moreover, this patch improves error handling when the file cannot be
opened or when the requested size is too large to be converted to a
long int.
Signed-off-by: Christophe Vu-Brugier <cvubrugier@yahoo.fr>
|
| |
|
|
| |
Signed-off-by: Christophe Vu-Brugier <cvubrugier@yahoo.fr>
|
| |
|
|
|
|
|
|
|
| |
As a result it's now better for saveconfig to save/cull backups before
saving the current state, hopefully not a big deal.
Resolves #34
Signed-off-by: Andy Grover <agrover@redhat.com>
|
| |
|
|
|
|
|
| |
Get the RTSRoot object on init, and then use it when needed in other
methods.
Signed-off-by: Andy Grover <agrover@redhat.com>
|
| |
|
|
| |
Signed-off-by: Andy Grover <agrover@redhat.com>
|
| |
|
|
| |
Signed-off-by: Andy Grover <agrover@redhat.com>
|
| | |
|
| |
|
|
|
|
|
|
| |
targetcli will now use the python-ethtool module if present to generate a
list of possible portal listening addresses, but will still work if it
is not present.
Signed-off-by: Andy Grover <agrover@redhat.com>
|
| |
|
|
|
|
| |
Generated with `2to3 -f filter`.
Signed-off-by: Christophe Vu-Brugier <cvubrugier@yahoo.fr>
|
| |
|
|
|
|
| |
Generated with `2to3 -f ws_comma`.
Signed-off-by: Christophe Vu-Brugier <cvubrugier@yahoo.fr>
|
| |
|
|
|
|
| |
Generated with `2to3 -f except`.
Signed-off-by: Christophe Vu-Brugier <cvubrugier@yahoo.fr>
|
| |
|
|
| |
Signed-off-by: Andy Grover <agrover@redhat.com>
|
| |
|
|
|
|
| |
Version is also used in scripts/targetcli.
This reverts commit fedfcb6332ecd3b5d37db6212ffbf4d3ae1735b5.
|
| |
|
|
| |
Signed-off-by: Andy Grover <agrover@redhat.com>
|
| |
|
|
|
|
| |
Also update the package name, version, URL and maintainer.
Signed-off-by: Christophe Vu-Brugier <cvubrugier@yahoo.fr>
|
| |
|
|
|
|
| |
See https://bugzilla.redhat.com/show_bug.cgi?id=882094
Signed-off-by: Andy Grover <agrover@redhat.com>
|
| |
|
|
| |
Signed-off-by: Andy Grover <agrover@redhat.com>
|
| |
|
|
|
|
|
| |
UINodeACL's list of rtsnodes is called 'rtsnodes', not 'rtsnode'.
Reported-by: Xiaowei Li <xiaoli@redhat.com>
Signed-off-by: Andy Grover <agrover@redhat.com>
|
| |
|
|
| |
Signed-off-by: Andy Grover <agrover@redhat.com>
|
| |
|
|
|
|
|
|
|
|
| |
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>
Signed-off-by: Andy Grover <agrover@redhat.com>
|
| |
|
|
|
|
|
|
|
|
| |
Build an array of summary items instead of appending to a string.
Handle fabrics that support 'acls' but don't have "generate_node_acls".
If disabled, just say disabled and nothing else.
Signed-off-by: Andy Grover <agrover@redhat.com>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
LIO has many different ways to configure authentication. This might be
the most confusing part of using LIO. The key bit is that LIO *always*
wants an ACL for an initiator -- the question is if these are manually
created, or created on-the-fly. This is controlled by
"attrib/generate_node_acls".
Change TPG summary line to always show the state of generate_node_acls.
Furthermore, make the status green if the settings for a particular
auth configuration are set:
* authentication=0
No authentication is performed, so anyone can connect. Since iqns are
trivially forgeable, manual ACLs are silly. The user probably also wants
generate_node_acls=1.
* authentication=1, generate_node_acls=1
ACLs are generated and auth settings are at the TPG level. We go green
if CHAP userid and password are also set for the TPG. ACL summary tries
to direct the user to look at the TPG. Also indicate if mutual auth is
configured.
* authentication=1, generate_node_acls=0
Auth at the ACL level. Manually created ACLs. Try to tell the user to
look at the ACL-level, and go green only if userid and password are set.
Also indicate if mutual auth is configured.
Signed-off-by: Andy Grover <agrover@redhat.com>
|
| |
|
|
| |
Signed-off-by: Andy Grover <agrover@redhat.com>
|
| |
|
|
| |
Signed-off-by: Andy Grover <agrover@redhat.com>
|
| |
|
|
|
|
|
|
| |
Instead of checking both mutual_password and mutual_userid, just
check authenticate_target, which is essentially the same thing but using
configfs a little less. This also uses the discovery version.
Signed-off-by: Andy Grover <agrover@redhat.com>
|
| |
|
|
|
|
| |
Now, both TPG and ACL auth is covered by a single feature flag.
Signed-off-by: Andy Grover <agrover@redhat.com>
|
| |
|
|
| |
Signed-off-by: Andy Grover <agrover@redhat.com>
|
| |
|
|
|
|
| |
Make sure NodeACL (new or old) being changed isn't used as model.
Signed-off-by: Andy Grover <agrover@redhat.com>
|
| |
|
|
| |
Signed-off-by: Andy Grover <agrover@redhat.com>
|
| |
|
|
| |
Signed-off-by: Andy Grover <agrover@redhat.com>
|
| |
|
|
|
|
| |
ramdisks don't have a udev_path.
Signed-off-by: Andy Grover <agrover@redhat.com>
|
| |
|
|
| |
Signed-off-by: Andy Grover <agrover@redhat.com>
|
| |
|
|
| |
Signed-off-by: Andy Grover <agrover@redhat.com>
|
| |
|
|
| |
Signed-off-by: Andy Grover <agrover@redhat.com>
|
| |
|
|
| |
Signed-off-by: Andy Grover <agrover@redhat.com>
|
| |
|
|
|
|
| |
If it doesn't exist then it can't match existing backstores.
Signed-off-by: Andy Grover <agrover@redhat.com>
|
| |
|
|
| |
Signed-off-by: Andy Grover <agrover@redhat.com>
|
| |
|
|
|
|
|
| |
We need to get the size from the object, since block devs won't have
a passed-in value.
Signed-off-by: Andy Grover <agrover@redhat.com>
|
| |
|
|
|
|
|
| |
Not a differentiator in whether we can use a block device as a backstore
or not.
Signed-off-by: Andy Grover <agrover@redhat.com>
|