| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Unfortunately I made a mistake, and did not handle version with 'rc' in it
as specified here:
http://fedoraproject.org/wiki/Packaging:NamingGuidelines#Pre-Release_packages
I'm incrementing the version to 2.1.<fb-ver> to get version sequencing
right. It's a little uncool for me to be mixing my developer and packager
roles here, but I think I can rationalize a version bump, given the
tag and WWN improvements recently.
Signed-off-by: Andy Grover <agrover@redhat.com>
|
| |
|
|
|
|
|
|
| |
Packaging tools tend to miscalculate which version is higher when "fb" is
in the version. Switch to omitting "fb" from $EXTRAVERSION. git tags will
continue to have "fb".
Signed-off-by: Andy Grover <agrover@redhat.com>
|
| |
|
|
|
|
| |
From tag implementation.
Signed-off-by: Andy Grover <agrover@redhat.com>
|
| |
|
|
|
|
| |
extraneous.
Signed-off-by: Andy Grover <agrover@redhat.com>
|
| |
|
|
|
|
| |
self passed implicitly.
Signed-off-by: Andy Grover <agrover@redhat.com>
|
| |
|
|
| |
Signed-off-by: Andy Grover <agrover@redhat.com>
|
| |
|
|
|
|
| |
Report an error if source wwn_or_tag is empty.
Signed-off-by: Andy Grover <agrover@redhat.com>
|
| |
|
|
|
|
|
|
| |
UINodeACL expects the NodeACL wwn name, not the NodeACL itself.
Closes #18
Signed-off-by: Andy Grover <agrover@redhat.com>
|
| |
|
|
|
|
| |
Let's ditch the rc1 bit, it has no use.
Signed-off-by: Andy Grover <agrover@redhat.com>
|
| |
|
|
|
|
| |
See https://bugzilla.redhat.com/show_bug.cgi?id=915664
Signed-off-by: Andy Grover <agrover@redhat.com>
|
| |
|
|
|
|
| |
tag() always takes a new_tag.
Signed-off-by: Andy Grover <agrover@redhat.com>
|
| |
|
|
|
|
|
|
|
|
| |
Tags allow initiator WWNs to be given shorter names, as well as multiple
WWNs to be managed as one unit. get() operations just get values from
Simplify auth- and discovery_auth-setting code.
Signed-off-by: Andy Grover <agrover@redhat.com>
|
| |
|
|
|
|
| |
Such as __init__() and summary().
Signed-off-by: Andy Grover <agrover@redhat.com>
|
| |
|
|
|
|
|
|
|
| |
We save so much, they can get smooshed when something goes wrong but
you're just checking it out with targetcli. Save 10.
Only save backups when saving to default location.
Signed-off-by: Andy Grover <agrover@redhat.com>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Don't raise an exception if we can't set emulate_model_alias, just
print a diagnostic.
Rename ui_set_model_alias to setup_model_alias. 'setup' seems a little
more accurate since we don't always set model alias, it depends on
the preference.
Rename export_backstore_as_model pref to export_backstore_name_as_model.
Add a configshell default for export_backstore_name_as_model, set to True.
Signed-off-by: Andy Grover <agrover@redhat.com>
|
| |
|
|
| |
Signed-off-by: Andy Grover <agrover@redhat.com>
|
| |
|
|
|
|
|
|
|
| |
New method ui_set_model_alias in UIBackstore class is invoked in
the ui_command_create method of each subclass. The method either
sets the attribute successfully or raises an informational error.
The storage object is created either way.
Signed-off-by: Tregaron Bayly <tbayly@bluehost.com>
|
| |
|
|
|
|
|
|
|
| |
This lets us not bother with different text to have good grammar if the
number of objects is 0, 1, or more.
Update for rtslib changes.
Signed-off-by: Andy Grover <agrover@redhat.com>
|
| |
|
|
| |
Signed-off-by: Andy Grover <agrover@redhat.com>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
see https://bugzilla.redhat.com/show_bug.cgi?id=903909
Allow "GiB" as well as "GB" and "G" for units
Use translate() instead of multiple replace() calls
import missing RTSLiBError
Signed-off-by: Andy Grover <agrover@redhat.com>
|
| |
|
|
| |
Signed-off-by: Andy Grover <agrover@redhat.com>
|
| |
|
|
| |
Signed-off-by: Andy Grover <agrover@redhat.com>
|
| |
|
|
|
|
|
| |
rtslib.root.restore() now returns a list of the specific errors that
occurred. Print this list.
Signed-off-by: Andy Grover <agrover@redhat.com>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Implement ip autocomplete using ethtool, instead of using rtslib's
list_eth_ips().
List 0.0.0.0 and ::0 (INADDR_ANY and IN6ADDR_ANY) in create autocomplete
possibilities.
Do not filter possible IPs -- if they're not valid (e.g. link-local) then
the configfs create will fail, no problem.
Handle ipv6 address bracketing. rtslib wants bracketed addresses, but
configshell doesn't like doing completions with brackets. Present w/o
brackets there, and then add them to ipv6 addrs for rtslib calls.
Improve portal create help text.
Signed-off-by: Andy Grover <agrover@redhat.com>
|
| |
|
|
|
|
| |
rtslib fb25 or later needed.
Signed-off-by: Andy Grover <agrover@redhat.com>
|
| |
|
|
|
|
|
|
|
|
| |
Instead of a TPG LUN. This will create the TPG LUN if it doesn't already
exist, and reuse it if it does.
This change needs the new storage object equivalence code, so rtslib fb25
is needed.
Signed-off-by: Andy Grover <agrover@redhat.com>
|
| |
|
|
|
|
|
| |
Change name of StorageObject to 'so' so the storage_object parameter
doesn't get overwritten.
Signed-off-by: Andy Grover <agrover@redhat.com>
|
| |
|
|
| |
Signed-off-by: Andy Grover <agrover@redhat.com>
|
| |
|
|
|
|
|
|
| |
See rhbz #873230
Make initially created TPGs not use authentication.
Signed-off-by: Andy Grover <agrover@redhat.com>
|
| |
|
|
|
|
| |
Seems slightly nicer!
Signed-off-by: Andy Grover <agrover@redhat.com>
|
| |
|
|
| |
Signed-off-by: Andy Grover <agrover@redhat.com>
|
| |
|
|
|
|
|
| |
Some targets (e.g. sbp with no LUNs defined) may fail enabling.
Catch this.
Signed-off-by: Andy Grover <agrover@redhat.com>
|
| |
|
|
|
|
|
|
| |
Would erase savefile if exception occurred during dump
fsync() for correctness too.
Signed-off-by: Andy Grover <agrover@redhat.com>
|
| |
|
|
| |
Signed-off-by: Andy Grover <agrover@redhat.com>
|
| |
|
|
| |
Signed-off-by: Andy Grover <agrover@redhat.com>
|
| |
|
|
|
|
|
|
| |
Label them as such.
Return more info for Block storage objects too.
Signed-off-by: Andy Grover <agrover@redhat.com>
|
| |
|
|
|
|
| |
buffered -> write-back
Signed-off-by: Andy Grover <agrover@redhat.com>
|
| |
|
|
|
|
|
|
|
|
|
| |
Only used in fileiobackstore.
We don't need to print "using buffered mode" any more since summary
shows it.
Fix default to buffer, like docs say.
Signed-off-by: Andy Grover <agrover@redhat.com>
|
| |
|
|
| |
Signed-off-by: Andy Grover <agrover@redhat.com>
|
| |
|
|
|
|
|
|
|
| |
Don't show fabrics that need physical WWNs unless they are present.
Showing them is just clutter.
Simplify target summary.
Signed-off-by: Andy Grover <agrover@redhat.com>
|
| |
|
|
| |
Signed-off-by: Andy Grover <agrover@redhat.com>
|
| |
|
|
|
|
|
| |
SBP (1394) does not let a tpg be enabled until there is at least one
LUN defined for it.
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>
|
| |
|
|
|
|
|
|
|
| |
Subclass UIStorageObject. Override summary(). Having Storageobject be
used for all so types was getting too ugly.
Also, clean up hackery in bytes_to_human.
Signed-off-by: Andy Grover <agrover@redhat.com>
|
| |
|
|
|
|
|
| |
Old strategy of trying to open with O_EXCL doesn't work on files. We could
use flock/fcntl but won't they be dropped when targetcli exits?
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>
|