DUAS6: command line fails "GetUsrUidGrp(username) returns error [0]"

book

Article ID: 132151

calendar_today

Updated On:

Products

CA Automic Dollar Universe

Issue/Introduction


Any Dollar Universe command line fails systematically with any System User in case the uxioserv process is started as a System User containing an uppercase character (ie Tom or TOM).


Example of errors that appear in universe.log when a command like "$UXEXE/uxlst upr upr=*" when the node is started with the system user TOM:


|ERROR|X|DQL|pid=p.t| k_define_user_owls_key | UXOS_GetUsrUidGrp(username_in_lowercase) returns error [0] 
|ERROR|X|IO |pid=p.t| k_select_accept_aut | kTrtHelloRequest in error [-1] 
|ERROR|X|IO |pid=p.t| u_io_thread_trt | New client 76 (uxcmd/different_username on server.domain.com) authentication failed: Hello request error (Hello request error) 
|ERROR|X|cmd|pid=p.t| k_handshakeHello | hello request in error, mat is [3] 
|ERROR|X|cmd|pid=p.t| owls_connect_auth | k_connect_auth_timeout(nodename/SIO) returns error [-1] 
|ERROR|X|cmd|pid=p.t| o_callsrv_connect_r | Connection error 0 [Hello request error] 
|ERROR|X|cmd|pid=p.t| owls_cmd_return | Can not connect to server. Error!


In data/exp/local the file .key is not created which explains why the command line fails: 

[[email protected]]# ls -latr $UNI_DIR_DATA/exp/local

total 8 

drwxr-xr-x 7 TOM TOM 4096 Feb 1 10:47 .. 

drwxr-xr-x 2 TOM TOM 4096 Feb 1 11:45 . 


Nevertheless, submission works fine as we can see that the Job Log is created with the correct user: 

[[email protected]]# ls -latr $UNI_DIR_LOG/exp

-rw-r--r-- 1 univa univa 613 Feb 1 11:48 XS000000001U000000001.0000007 

-rw-r--r-- 1 TOM TOM 613 Feb 1 11:54 XS000000001U000000001.0000008




Cause

Code was forcing the username to lowercase.

Environment

Dollar Universe 6 on Unix / Linux node started with a user containing uppercase characters on its name

Resolution

If Dollar Universe is on version < 6.10.11 there are two simple workarounds : 


1. Simply create the same user starting the Node in lowercase in the system: 

useradd svcqltosmpapl01 


2. Assign the node or install the node with a system user in lowercase. 

For example, if you have the system user called univa that you can use to admin Dollar Universe 


as root launch the following: 

. ./unienv.ksh 

$UNI_DIR_EXEC/uxrights -m assign -a univa 

$UNI_DIR_EXEC/uxrights -m grant 

$UNI_DIR_EXEC/unistart 


In both cases you will be able to submit jobs as users with a mix of lower and uppercase without any problem. 


The solution consists on upgrading / installing Dollar Universe on version 6.10.11 where  a new node setting U_FORCE_USER_LOWERCASE allows to change the user name to lowercase or (by default) to let it as it is.