Changelog: slk v3.3.67#
Changes from slk v3.3.21 to v3.3.67
Changlog updated on 2022-10-21 (changes in slk chmod extended)
Highlight Fixes#
slk archive, partly archived files (slk archivecancelled during archival): During the archival process of a file, this file’s size is printed as0byte. If the archival process is canceled while a file has not been fully copied, this file will remain as0byte file in StrongLink. In the past, partly archived files could be retrieved; e.g. partly archived tar balls could be retrieved and extracted to rescue a few of the packed files.slk retrievegot options to skip-sand overwrite-fexisting filesslk archivegot a double verbose mode-vvslk list: pagination removed; list individual files; warning: might take a very long time when many items should be listedslk move: overwrite existing target file by defaultslk searchis activatedslk chmod: skips file(s) and returns exit code1ifslk chmodset the same permissions as the target file(s) already has(/ve)slk group: skips file(s) and returns exit code1ifslk groupset the same group as the target file(s) already has(/ve)
All Fixes#
slkin general:If the StrongLink instance is not accessible (server responds but no access to StrongLink; e.g. maintenance), this message is printed:
ERROR: Connection UnavailableIf
slkreceives no reply at all, this message is printed byslk login:Host not reachable: archive.dkrz.de. All other commands printERROR: Unhandled error occurred, please check logs.The process id and hostname are prepended to each log message (location of log file:
~/.slk/slk-cli.log)Removal of confusing verbose output from the log.
//in file paths are sustituted to/slk bad_input return exit code 1
slk archiveno archival status is printed by default
-vprints a one-line archival status-vvprints out the name of each processed file per line and appends the status:SUCCESSFUL,SKIPPEDorFAILEDDuring the archival process of a file, this file’s size is printed as
0byte. If the archival process is canceled while a file has not been fully copied, this file will remain as0byte file in StrongLink. In the past, partly archived files could be retrieved; e.g. partly archived tar balls could be retrieved and extracted to rescue a few of the packed files.does not hang anymore when one or more empty files are archived
slk chmod:can be applied on more than one file at once (i.e.
slk delete /arch/ab1234/file1 /arch/ab1234/file2)fixed a bug related to recursive
chmodon a nested folder hierarchyimproved speed
skips file(s) and returns exit code
1ifslk chmodset the same permissions as the target file(s) already has(/ve) => e.g.slk chmod 770on a file withrwxrwx---(==``770``) will result in exit code1
slk delete:can be applied on more than one file at once (i.e.
slk delete /arch/ab1234/file1 /arch/ab1234/file2)
slk group:improved speed
skips file(s) and returns exit code
1ifslk groupset the same group as the target file(s) already has(/ve) => e.g.slk group bm0146on a file with groupbm0146will result in exit code1
slk listpagination mode is removed (all results are printed at once to the command line)
automatically returns to the command line (no key has to be pressed)
can be applied on individual files now
user and group names longer than 10 characters are not cropped anymore
the column width of the output is not fixed anymore but variable
a size of
0byte is printed for each namespace/folder; this simplifies parsing the output ofslk listnot only the creation date but also the time (
hh:mm) is printeddoes not hang anymore when a non-existing search id is provided but prints
The search id could not be foundwhen a search with search id
12345does not find any results, thenslk list 12345will printERROR: No resources found for given search id: 12345nothing is printed when the content of a folder is listed for which the user has no read permissions; this message is printed to the log:
ERROR Get namespace children error: {"errors":[{"status":"403","detail":"You do not have permission to access this namespace.","title":"Forbidden"}],"suppressed":[],"localizedMessage":null}
slk move: changed behaviour when a target file does already exist:new default: overwrite existing target file
-i: prompt user (interactive mode) or do not overwrite (batch mode; exit code is1)
slk retrieve-foverwrite target file if it exists (otherwise create aDUPLICATEfile)-sskip retrieving file if it exists in target location (otherwise create aDUPLICATEfile)-nsrestore the full HSM path; useful when we performed a search, which found several files of the same name, and want to retrieve the search results
slk searchis availableslk tagcan be applied on individual files
names of metadata fields are case sensitive; Setting the metadata field Title of the schema netcdf requires
slk tag FILE netcdf.Title="blub". In the past, this would have worked:slk tag FILE netcdf.title="blub"(lowercase t).-displayprints the metadata of files; currently, does not work with metadata of netCDF files because of on special field
New Bugs#
slk listwildcard evaluation does not work for namespaces anymore but only for filesslk tag -displaydoes not work on netCDF files because they have a special metadata field whichslk tag -displaycannot handleslk list SEARCH_IDcollects all search results, first, and, then, prints them. This might take a while if many search results are found. Alternatively, you can runslk_helpers list_searchon the sameSEARCH_IDwhich will print search results continuously.