HPSS Connector
The HPSS connector can be used for accessing and sharing of data on an HPSS storage system. The connector is available as an add-on subscription to organizations with a Globus subscription - please contact us for pricing.
This document describes the steps needed to install an endpoint and the HPSS connector needed to access the storage system. This installation should be done by a system administrator, and once completed, users can use the endpoint to access HPSS storage via Globus to transfer, share and publish data on the system.
Preinstallation Checklist
In order for the HPSS Connector to function properly on the HPSS client node, please verify the following items.
Supported HPSS Versions
This connector supports HPSS versions 7.3 and newer. However, we are limited to only HPSS configurations that we have access to for building RPMs and verifying releases.
Recommended HPSS Patches
These HPSS issues severely impact performance so the patches are highly recommended.
BZ2819 - PIO 60 second delay impacts small file performance. There is a small percentage chance that, after a transfer completes, HPSS PIO will wait 60 seconds before informing the client that the transfer has completed. This fix has been implemented in 7.3.3p9, 7.3.4, 7.4.1p1 and 7.4.2.
BZ2856 - Enabling HPSS_API_REUSE_CONNECTIONS returns address already in use. This one sets a limit on how many active connections we can have. GridFTP and HPSS make considerable use of ephemeral TCP ports. Quick, successive file transfers can lead the system to run out of available ports. There is no fix for this HPSS issue at this time. The number of ephemeral ports can be increased and the amount of time a socket spends in timed wait can be decreased to help avoid this issue.
BZ7772 - PIO 5 second delay impacts small file performance. There is a high percentage chance that, after a transfer completes, HPSS PIO will wait 5 seconds before informing the client that the transfer has completed. This greatly impacts the performance of file retrieves and checksum operations. This fix has been implemented in 7.5.3+.
BZ7883 - Prevents successful transfers of files over 4GiB on HPSS versions 7.5.2+. Due to what appears to be a transfer length calculation error, transfer of files larger than 4GiB generate an EIO error at the 4GiB mark and the transfer terminates. This bug impacts all HPSS clients using the HPSS PIO interface. Upgrade to HPSS 7.5.2u5 / HPSS 7.5.3u1 to resolve this issue.
BZ10852 - Interrupted or canceled Transfer tasks result in lingering GridFTP processes. This fix was released in HPSS 8.3.
BZ11137 - Prevents the HPSS Connector from reauthenticating to HPSS when the storage gateway configuration changes. Without this patch, changes to the HPSS storage gateway options require a restart of the GCS Manager process.
HPSS Configuration Options
These options are generally set in /var/hpss/etc/env.conf and affect operation of data transfers. Some of these options may be required depending upon your configuration.
- HPSS_API_HOSTNAME
-
This option selects the network interface used for data transfers between the Globus services you are configuring and the HPSS mover machine(s). If this is unset, data transfers use the default network interface. This option is generally necessary on multihomed nodes. It should be set on the node running GridFTP.
- MVR_CLIENT_TIMEOUT
-
This controls the amount of time before a mover process will stop waiting for data from the Globus service in order to reclaim network resources. Default is 15 minutes. In very large file transfers, it is possible that movers may timeout before the transfer reaches data offsets which those movers are responsible for. This option is set on the mover nodes.
Note on Kerberos Configurations
Kerberos must be configured for access to the proper Kerberos realm that contains HPSS. The Kerberos configuration is usually kept in /etc/krb5.conf. If the HPSS Connector can not talk to the HPSS servers, you may need to enable the allow_weak_crypto option in the [libdefaults] section. This option permits weak encryption types, so prefer updating the HPSS service keys to stronger encryption types where possible.
Required HPSS Files
The following HPSS files located in /var/hpss/etc are known to be required for operation of the HPSS Connector:
-
auth.conf -
authz.conf -
env.conf -
ep.conf -
group -
HPSS.conf -
hpss.keytab(orhpss.unix.keytab) -
ieee_802_addr -
passwd -
site.conf
Configure Local User Accounts
When a user accesses HPSS via Globus, translations between usernames and user IDs are performed using the OS Name Service (ex /etc/passwd, ldap, nis, etc). The user’s home directory comes from HPSS, not from the OS Name Service. The HPSS password file (ie HPSS_UNIX_AUTH_PASSWD) is not used by Globus. This has a direct impact on authentication and file access. Verify that HPSS users have the same UID on the local system and within HPSS. For example, given an HPSS user hpssuser1, the UID and GID returned from the following command should match the UID and GID of the same account within HPSS:
$ getent passwd hpssuser1
hpssuser1:x:12345:1000:HPSS User:/home/hpssuser1:/bin/bash
HPSS_UNIX_AUTH_PASSWD, the HPSS client API implementation does use the HPSS passwd file during the authentication process. See the required HPSS files.
Configure HPSS Credentials
Globus GridFTP processes run as the local user gcsweb. The HPSS authentication phase
initially uses the HPSS account hpssftp to access HPSS, then changes the HPSS user ID to the
authenticated HPSS user (ie hpssuser1). This removes the need to maintain per-user
keytab files on the HPSS client node. However, this requires that the Globus GridFTP
processes, running as the local gcsweb account, have access to the hpssftp keytab
entry during the authentication phase.
The GCS Manager, which also runs as gcsweb, logs in to HPSS the same way to look
up each user’s home directory. The steps below give both processes the access they
need.
hpssftp. If you set
--login-name on the storage gateway, use that account instead.
Make sure the keytab allows read access to the gcsweb account. Assuming the keytab
for hpssftp is stored in /var/hpss/etc/hpss.keytab:
$ chgrp gcsweb /var/hpss/etc/hpss.keytab
$ chmod 640 /var/hpss/etc/hpss.keytab
HPSS installations configured for Kerberos authentication must also allow gcsweb
write access to the HPSS temporary kerberos ticket cache, typically /var/hpss/cred:
$ chmod 1777 /var/hpss/cred
Verify Basic Operations Via Scrub
Run scrub, the HPSS Client API test shell installed with HPSS in /opt/hpss/bin,
as the local user gcsweb to verify that it can authenticate to HPSS as hpssftp
(or your --login-name account). gcsweb has no login shell, so use sudo -u.
For example:
$ sudo -u gcsweb /opt/hpss/bin/scrub -a krb5 -p hpssftp -k -t /var/hpss/etc/hpss.keytab
scrub> quit
As a regular local user who also has an HPSS account (for example testuser1),
log into HPSS and perform some basic directory and file operations. Unlike the
previous step, these operations run as a non-privileged HPSS user:
$ /opt/hpss/bin/scrub
/hpss/home/testuser1
scrub> mkdir testdir
scrub> rmdir testdir
scrub> open testfile wc
File created using COS 1 (Small File COS)
scrub> write 5k
.done (144.981 KB/sec)
scrub> close
scrub> unlink testfile
scrub> quit
Installation
This section will explain how to install and configure the HPSS connector. Your Globus Connect Server endpoint must already be installed. See the Globus Connect Server v5.4 Install Guide.
Installing the HPSS Connector
The HPSS Connector is installed by RPM in order to simplify installation and enforce version requirements with requisite software. Unfortunately, Globus does not have access to all HPSS and RHEL version combinations to provide RPMs for all installations.
Visit the release page and find the latest release. Note that release candidates are also available from this page and are indicated with the Pre-release badge and have a Release Candidate name. For production use, make sure to choose the most recent official release which will have the Latest Release badge.
Go to the Assets section under the latest release. When possible, RPMs for supported platforms will be available for your convenience. If an RPM is not available, follow the build instructions in the repository README to build the RPM from source.
The RPM has a naming scheme of globus-gridftp-server-hpss-11.3-2.26-1.el9+gcsv5.x86_64.rpm.
- globus-gridftp-server-hpss
-
package name
- -11.3-
-
This package is for HPSS version 11.3.X
- -2.26-1
-
This is the first release of this connector version 2.26
- .el9
-
This package is for RHEL 9.X.
- +gcsv5
-
This package is for Globus Connect Server
Download the RPM and matching .asc file which will allow you to verify that the RPM has not changed since creation. Using a recent version of gpg (>= 2.0), import the public key used for signing:
$ gpg --keyserver hkp://keys.openpgp.org --recv-keys 1EA106A24003C353
gpg: key 1EA106A24003C353: public key "Jason Alt <jasonalt@globus.org>" imported
gpg: Total number processed: 1
gpg: imported: 1
And then verify the downloaded RPM:
$ gpg --verify globus-gridftp-server-hpss-11.3-2.26-1.el9+gcsv5.x86_64.rpm.asc globus-gridftp-server-hpss-11.3-2.26-1.el9+gcsv5.x86_64.rpm
gpg: Signature made Wed 06 Nov 2019 09:45:26 PM UTC
gpg: using RSA key C36C826C18ED73C338DCFA531EA106A24003C353
gpg: Good signature from "Jason Alt <jasonalt@gmail.com>" [unknown]
gpg: aka "Jason Alt <jasonalt@globus.org>" [unknown]
gpg: WARNING: This key is not certified with a trusted signature!
gpg: There is no indication that the signature belongs to the owner.
Primary key fingerprint: C36C 826C 18ED 73C3 38DC FA53 1EA1 06A2 4003 C353
And finally, install the downloaded RPM using DNF:
$ sudo dnf install ./globus-gridftp-server-hpss-11.3-2.26-1.el9+gcsv5.x86_64.rpm
Upgrading HPSS
Each HPSS Connector RPM is built for a single HPSS major and minor version,
which appears in the package name: globus-gridftp-server-hpss-11.3 is built
for HPSS 11.3. It works with any patch level of that version, but not with a
different major or minor version. The RPM does not block an HPSS upgrade, so
after upgrading HPSS to a new major or minor version, logins fail with "The
HPSS connector was not built for this version of HPSS" until the connector is
replaced. The GridFTP log shows both versions.
Replace the old RPM with the one built for the new HPSS version, where
OLD_VERSION and NEW_VERSION are the HPSS major and minor versions, such as
11.3:
$ sudo dnf swap globus-gridftp-server-hpss-OLD_VERSION ./globus-gridftp-server-hpss-NEW_VERSION-2.26-1.el9+gcsv5.x86_64.rpm
Then restart the GCS Manager on every node.
Identifying an Installed HPSS Connector
New in version 2.26.
The HPSS Connector library contains an origin string that identifies the connector version it was built from and the Linux distribution it was built on. Use it to confirm which release is installed, for example when reporting an issue to support@globus.org:
$ strings /usr/lib64/libglobus_gridftp_server_hpss_real.so | grep HPSS_DSI_ORIGIN
HPSS_DSI_ORIGIN: globus-gridftp-server-hpss-2.26.rhel9.6
- globus-gridftp-server-hpss-2.26
-
The package name and connector version.
- .rhel9.6
-
The distribution and version of the build host, from
IDandVERSION_IDin its/etc/os-release. This isunknownif the build host had no/etc/os-release.
The origin string does not include the HPSS version or the RPM build number
(the 11.3 and the -1 in globus-gridftp-server-hpss-11.3-2.26-1.el9). To
see those, ask RPM which package owns the library:
$ rpm -qf /usr/lib64/libglobus_gridftp_server_hpss_real.so
globus-gridftp-server-hpss-11.3-2.26-1.el9+gcsv5.x86_64
If RPM reports that the file is not owned by any package, the library was not installed from the RPM.
Creating HPSS Storage Gateways
An HPSS Storage Gateway is created with the command globus-connect-server storage-gateway create hpss, and can be updated with the command globus-connect-server storage-gateway update hpss.
Before looking into the policy options specific to the HPSS Connector, please familiarize yourself with the Globus Connect Server v5 Data Access Guide which describes the steps to create and update a storage gateway, using the POSIX connector as an example. The commands to create and update a storage gateway for the HPSS Connector are similar.
sudo systemctl restart gcs_manager.service on every node of the endpoint.
HPSS Connector Storage Gateway Policies
The HPSS Connector has the following policies to configure how
it accesses HPSS.
When you create the storage gateway, --authentication-mech and
--authenticator are required. UDA checksums are enabled unless you give
--no-uda-checksum. --login-name defaults to hpssftp.
HPSS Authentication
When a Globus user authenticates to an HPSS endpoint, the HPSS Connector will first authenticate to HPSS using either Kerberos or Unix authentication and the credential of a privileged HPSS account stored on the local node. That account’s session then changes user ID to the HPSS account that corresponds to the Globus user. In this way, Globus users can authenticate to HPSS without requiring a local HPSS key file for each user.
The --authentication-mech, --authenticator and --login-name command-line options
control how the HPSS Connector authenticates to HPSS.
--authentication-mech sets the type of HPSS authentication to
use and accepts either krb5 or unix. --login-name names the privileged
HPSS account, which must be allowed to switch to other HPSS users; it
defaults to hpssftp. --authenticator specifies the file containing the
HPSS credential for that account. The
--authenticator command-line option accepts a value of the form:
auth_keyfile|auth_keytab:<path_to_file>, where <path_to_file> is an
absolute path, for example auth_keytab:/var/hpss/etc/hpss.keytab. This
file must exist on all nodes in the endpoint.
Store File Checksums in User Defined Attributes
The HPSS Connector can optionally store MD5 checksums in the User-Defined Attributes (UDA) for use later with the sync-by-checksum transfer mode. This allows the HPSS Connector to report the checksum of an existing file without recalling the file from tape. This behavior is turned on with --uda-checksum and off with --no-uda-checksum; it is on by default when you create the storage gateway.
Creating HPSS Collections
An HPSS Collection is created with the command globus-connect-server collection create, and can be updated with the command globus-connect-server collection update.
As the HPSS Connector does not introduce any policies beyond those used by the base collection type, you can follow the sequence in the Collections Section of the Globus Connect Server v5 Data Access Guide.
Log Collection
The HPSS Connector provides three methods for collecting log messages for monitoring and debugging. Of these three methods, only HPSS Connector Standard Logging is recommended for production use. The other two methods are reserved for troubleshooting.
HPSS Connector Standard Logging
The HPSS Connector sends log messages of severity ERROR, WARN and INFO to the
standard GridFTP server log file, /var/log/gridftp.log. The GridFTP server
option log_level controls which of these are written. Globus Connect Server sets
log_level ERROR,WARN in /etc/gridftp.d/globus-connect-server, so by default
INFO messages are not collected. That file is managed by Globus Connect Server; to change the
log settings, create /etc/gridftp.d/hpss_logging with your own values, for
example:
log_single /var/log/gridftp.log log_level ERROR,WARN,INFO
log_level is a GridFTP server setting, so it applies to all GridFTP server
log messages, not only those from the HPSS Connector.
/etc/gridftp.d in ASCII order, and
a setting in a later file overrides the same setting in an earlier one. See
GridFTP Server Log Files.
Setting the log_level value to include any of the following severities will
allow you to collect messages of that type.
- ERROR
-
These messages require immediate action by the endpoint administrator. In the case of an error message, the connector has encountered a fatal condition and functionality is severely limited. These conditions typically impact all users of the connector. For example, the
ERRORseverity is used for configuration options that prevent users from using the system. - WARN
-
This message implies that a condition has occurred that the endpoint administrator should be aware of but the connector has recognized the condition and worked around it in order to provide functionality. In these cases, functionality may be limited but overall transfer operations will succeed. For example, the
WARNseverity is used to alert the endpoint administrator that the HPSS installation is missing recommended HPSS patches. - INFO
-
This severity is useful for gathering more information about the activity of GridFTP connections. It is used to notify the endpoint administrator of the particular commands used during a GridFTP session. For example,
INFOis used to record directory listing and file transfer events.
For more detail, enable HPSS Connector Debug Logging.
HPSS Connector log messages will have the format:
[22825] Tue Sep 1 13:18:09 2020 :: [HPSS Connector][INFO] User=johndoe TaskID=19c156ce-ec77-11ea-85ac-0e1702b77d41 :: Getting attributes of /home/johndoe/10M.dat
- [22825]
-
The process id.
- Tue Sep 1 13:18:09 2020
-
Current date and time.
- [HPSS Connector]
-
Tag to indicate that this message is from the HPSS Connector.
- [INFO]
-
The log message’s severity.
- User=johndoe
-
The local account that the Globus user is mapped to. The session uses the HPSS account with the same UID as this local account. This field is empty when the message is logged before the user is known.
- TaskID=19c156ce-ec77-11ea-85ac-0e1702b77d41
-
The associated Globus Transfer task ID. This field is empty when the operation is not part of a Transfer task, for example a directory listing.
As of version 2.26, the User= and TaskID= fields are always present, even when empty.
The remainder of the message includes the field separator :: followed by the actual HPSS Connector log message.
HPSS Request IDs
New in version 2.26.
HPSS assigns a request ID to each HPSS API call and records it in its own logs. When an HPSS API call made on behalf of a Globus task fails, the HPSS Connector logs that request ID along with the task ID, so you can find the matching entries in the HPSS logs.
The HPSS Connector logs these messages at severity INFO. Make sure your
log_level setting includes INFO to collect them. For example:
log_single /var/log/gridftp.log log_level ERROR,WARN,INFO
Each message lists the error fields separated by ` | `:
[22825] Tue Sep 1 13:18:09 2020 :: [HPSS Connector][INFO] User=johndoe TaskID=19c156ce-ec77-11ea-85ac-0e1702b77d41 :: HPSS-Request-ID: d15217dca33d044f8ff1f48ff295b358 | HPSS-Reason: HPSS_ENOENT | HPSS-Function: Hpss_Stat | HPSS-Last-Error: HPSS_ENOENT | HPSS-Last-Function: API_core_GetAttrs
- HPSS-Request-ID
-
The request ID HPSS assigned to the failed call, or
noneif HPSS did not assign one. On HPSS 11 it is 32 hexadecimal digits with no dashes, the same form HPSS uses in its own logs. - HPSS-Reason
-
The error returned by the HPSS API call.
- HPSS-Function
-
The HPSS Connector function that made the HPSS API call.
- HPSS-Last-Error
-
The last error HPSS recorded internally for the call.
- HPSS-Last-Function
-
The HPSS internal function that recorded
HPSS-Last-Error.
The same request ID is included in the error message returned to the user, for example:
550-GlobusError: v=1 c=PATH_NOT_FOUND 550-HPSS-Request-ID: d15217dca33d044f8ff1f48ff295b358 550-HPSS-Reason: HPSS_ENOENT 550-HPSS-Function: Hpss_Stat 550-HPSS-Last-Error: HPSS_ENOENT 550-HPSS-Last-Function: API_core_GetAttrs 550 End.
In the user’s error message, the HPSS-Last-Error and HPSS-Last-Function
lines appear only when HPSS recorded a last error.
To trace a failed transfer, take the task ID from the Globus web app or CLI,
find the HPSS Connector messages with that TaskID in the GridFTP log, then
search the HPSS logs for the HPSS-Request-ID value.
HPSS Connector Debug Logging
The HPSS Connector can be configured to log additional debug information. This logging mechanism is independent of the GridFTP server’s log file used with standard logging and is designed for use in resolving difficult issues by tracing interactions with the HPSS API. This logging interface is disabled by default. It is recommended that this remain off during production because of its verbosity.
To enable it, create the file /etc/gridftp.d/hpss_debug (the name must not
contain a ., or the GridFTP server ignores it) containing:
$GLOBUS_GRIDFTP_SERVER_HPSS_DEBUG "ALL,/var/log/hpss_connector_debug.log"
The log file must already exist and be writable by the local gcsweb account,
which the GridFTP server runs as when it accesses HPSS. The message format is
intended for HPSS Connector developers and may change between versions.
HPSS API Debug Logging
You can optionally enable the HPSS API to log additional debug information to its own log file. This may be useful in conjunction with debug logging when resolving interactions with HPSS. This option should remain disabled during production use.
To enable it, add these lines to /etc/gridftp.d/hpss_debug:
$HPSS_API_DEBUG 7 $HPSS_API_DEBUG_PATH "/var/log/hpss_api.debug"
These settings are passed to the HPSS client library. See the HPSS documentation for the meaning of the debug levels.
Appendix A: Troubleshooting
Below are some common issues encountered while using the Globus Transfer service with an endpoint running the HPSS connector along with possible resolutions to each problem.
Could not find home directory for <user>. <reason>. Error code is <code>
The GCS Manager logs this message in
/var/log/globus-connect-server/gcs-manager/gcs.log when it cannot look up a
user’s HPSS home directory. The GCS Manager runs as the local gcsweb account.
The <reason> identifies the step that failed:
- Failed to log into HPSS because the configured authentication mechanism is not known to HPSS.
-
GCS accepts only
krb5orunixfor --authentication-mech, so this means the HPSS client library on this node does not recognize the configured mechanism. - Failed to log into HPSS because the authenticator could not be parsed.
-
HPSS could not parse the storage gateway’s --authenticator value. Check that it has the form
auth_keyfile|auth_keytab:<path_to_file>, where<path_to_file>is an absolute path. - Failed to log into HPSS
-
The HPSS Connector could not authenticate to HPSS as
hpssftp(or your --login-name account). Check the storage gateway’s --authenticator and --login-name settings, and that the keytab is readable by the localgcswebaccount. - Failed to open libglobus_gridftp_server_hpss_real.so: <error>
-
The GCS Manager could not load the HPSS Connector. Check that the HPSS Connector package is installed and was built for the installed HPSS version, and that
ldd /usr/lib64/libglobus_gridftp_server_hpss_real.sofinds every library. - Failed to find symbol <name> in libglobus_gridftp_server_hpss_real.so: <error>
-
The two HPSS Connector libraries come from different releases. Reinstall the HPSS Connector package.
- A system error occurred while looking up user’s HPSS account with getpwname_r.
-
The OS Name Service lookup for the user failed, for example because LDAP or SSSD is not reachable. The error code is the system errno.
- Unable to find the user’s HPSS account with getpwnam()
-
The user has no local account on this node. See Configure Local User Accounts.
- Could not change active HPSS uid.
-
HPSS does not recognize the user’s local UID. See Configure Local User Accounts.
- Can not get current HPSS user credential
-
The HPSS login succeeded, but HPSS did not return the user’s credential, which holds the home directory.
The GCS Manager caches each lookup: a home directory for 10 minutes and a failure for 10 seconds. After you fix a problem, wait 10 seconds before trying again, or restart the GCS Manager to clear the cache.
To change a storage gateway setting, use globus-connect-server storage-gateway update hpss and restart the GCS Manager process.
Async Stage Requests Cause Red-Ball-of-Doom
The HPSS Connector uses the async stage request API for HPSS in order to
avoid inundating the core server with duplicate stage requests. This exposes a
deficiency for the HPSS Connector use case of HPSS. The HPSS async stage API expects the
call to be available long term in order to receive stage completion messages.
However, the GridFTP/HPSS Connector use case is a short-lived transient environment; the
GridFTP process can not wait minutes/hours/days for stage completion messages.
Users of the HPSS Connector will see the impact as a red-ball-of-doom indicator
in the HPSS GUI console. The warning is innocuous and can be ignored.
As a workaround, use the blackhole sync method. This configures nc (netcat) to listen for
stage completion messages intended for the HPSS Connector and discard whatever it receives.
nc should be launched on a highly-available server reachable by the HPSS core
servers (preferably run it directly on the core servers). Choose a port to use
for receiving callback notifications on and run this command:
admin@hpss-core $ nc -v -v -k -l <port>
Once nc is running, add this to /etc/gridftp.d/hpss_issue_35 on the GridFTP
nodes running the HPSS Connector:
$ASYNC_CALLBACK_ADDR <host>:<port>
Login Failures
When the HPSS Connector can not log a user into HPSS, the user sees one of two
generic messages and the cause is recorded in the GridFTP log at severity
ERROR (see HPSS Connector Standard Logging). The
error strings at the end of the log messages below are examples; the exact
text comes from HPSS.
If the HPSS Connector could not authenticate to HPSS as hpssftp (or your
--login-name account), the user sees:
Command Failed: Error (login)
Endpoint: xxxx
Server: xxxx
Message: Login Failed ---
Details: 530-Login incorrect. : GlobusError: v=1 c=CONFIGURATION_ERROR\r\n530-GridFTP-Message: The HPSS connector has a configuration issue that must be resolved by the endpoint administrator.\r\n530-GridFTP-JSON-Result: {"message": "The HPSS connector has a configuration issue that must be resolved by the endpoint administrator."}\r\n530 End.\r\n
If the HPSS Connector authenticated as hpssftp but could not switch to the user’s HPSS account, the user sees:
Command Failed: Error (login)
Endpoint: xxxx
Server: xxxx
Message: Login Failed ---
Details: 530-Login incorrect. : GlobusError: v=1 c=LOGIN_DENIED\r\n530-GridFTP-Message: The HPSS connector could not log you into HPSS. The issue must be resolved by the endpoint administrator.\r\n530-GridFTP-JSON-Result: {"message": "The HPSS connector could not log you into HPSS. The issue must be resolved by the endpoint administrator."}\r\n530 End.\r\n
Login Failure: Could not change active HPSS UID (No such file or directory)
This error message indicates that hpss_LoadDefaultThreadState() has returned ENOENT causing the login procedure to fail. This occurs when the UID of the authenticating user as known to the GridFTP process does not match the user’s ID as known by HPSS. The user sees the LOGIN_DENIED message. See Configure Local User Accounts.
- [22825] Tue Sep 1 13:18:09 2020
-
[HPSS Connector][ERROR] User=hpssuser1 TaskID= :: Could not change active HPSS UID to 12345. No such file or directory
Login Failure: Could not log into HPSS (Operation not permitted)
This error message indicates that hpss_SetLoginCred() failed with EPERM during the login procedure. This step in the login process accesses the keytab set by --authenticator so that the HPSS Connector can connect to HPSS as hpssftp. The error value indicates that the GridFTP process was unable to access the keytab file. The user sees the CONFIGURATION_ERROR message. The keytab must be readable by the local gcsweb account; see Configure HPSS Credentials.
- [22825] Tue Sep 1 13:18:09 2020
-
[HPSS Connector][ERROR] User=hpssuser1 TaskID= :: Could not log into HPSS as "hpssftp". Operation not permitted
Login Failure: Could not change active HPSS UID (Invalid argument)
If you receive this message, it is likely that /var/hpss/etc/site.conf is invalid. The user sees the LOGIN_DENIED message.
- [22825] Tue Sep 1 13:18:09 2020
-
[HPSS Connector][ERROR] User=hpssuser1 TaskID= :: Could not change active HPSS UID to 12345. Invalid argument
Transfer Error: Operation timed out
Large file transfers to/from HPSS tend to span multiple sets of HPSS mover processes. Each set is responsible for a large contiguous chunk of the file transfer. First set transfers offsets 0-N, second set transfers (N+1)-M, and so on. These mover sets are all initialized at the beginning of the transfer.
Any mover will timeout after MVR_CLIENT_TIMEOUT seconds (defaults to 15 minutes). If a mover set does not start the transfer within this timeout, the entire transfer aborts. This is an HPSS issue, not an HPSS Connector issue.
This error condition is usually obvious from the following errors issued in MVR_CLIENT_TIMEOUT seconds + 5 minute intervals. See MVR_CLIENT_TIMEOUT for more details.
2019-06-12 14:29:39 Error (transfer) Endpoint: XXXX HPSS Archive (e38ee901-6d04-11e5-ba46-22000b92c6ec) Server: XXXX:2811 Command: STOR ~/scratch_backups/XXXX Message: The operation timed out --- Details: Timeout waiting for response
2019-06-12 14:49:47 Error (transfer) Endpoint: XXXX HPSS Archive (e38ee901-6d04-11e5-ba46-22000b92c6ec) Server: XXXX:2811 File: /~/scratch_backups/XXXX Command: STOR ~/scratch_backups/XXX Message: Fatal FTP response --- Details: 500-GlobusError: v=1 c=GENERAL_ERROR\r\n500-HPSS-Request-ID: 3f9a6c2e81d047b5a1e2c4d6f8b0a9e7\r\n500-HPSS-Reason: HPSS_ETIMEDOUT\r\n500-HPSS-Function: Hpss_PIOExecute\r\n500 End.\r\n
The HPSS-Request-ID and HPSS-Reason values above are examples.
Appendix B: Performance
GridFTP installations benefit from and take full advantage of classes of service that use fixed length classic style allocation. In short, you’ll get the best performance from the GridFTP interface (actually any HPSS interface) if the segment count is below 32.
HPSS has multiple disk/tape allocation algorithms used to allocate space for incoming data. Fixed length allocation gives you equal size chunks to store data in. This was deemed wasteful because the last block was almost certainly never filled. Variable length allocation was created to solve this problem; it will give you increasingly larger segments as data is stored and truncates the last block. This is a win for most situations when HPSS is unsure how much data is to be stored for the given file.
Using either of these allocation mechanisms (any variable length allocation or fixed w/o knowing the file size), HPSS is free to continue to allocate segments until all the data is stored. This has a definite performance impact because internally HPSS retrieves data in 32-segment chunks. This means when you request a file from HPSS, internally it breaks it up into multiple transfers, each of which is ⇐ 32 segments. Functionally, this is transparent to the client. In terms of performance, the client will see a high load followed by a pause followed by a high load, etc.
In order to avoid the performance hit, you can use fixed length allocation with segment counts < 32 and take advantage of the fact that any WELL-BEHAVED GridFTP client will inform HPSS of the size of the incoming file before the transfer begins. In fact, the HPSS Connector is designed to require this. If a GridFTP client is not well behaved, the HPSS Connector will act as though a zero length transfer is about to occur and will handle it as such. So you’ll know if the client is not doing the right thing.