pan3793 commented on PR #6932:
URL: https://github.com/apache/hadoop/pull/6932#issuecomment-2218039686

   investigation:
   
   Yetus failed to create user "jenkins" on building run-specific image 
yetus/hadoop:tp-11600
   
https://ci-hadoop.apache.org/blue/rest/organizations/jenkins/pipelines/hadoop-multibranch/branches/PR-6932/runs/1/nodes/56/log/
   ```
   [2024-07-09T12:35:10.546Z] #8 [ 4/10] RUN if [ "998" != -1 ]; then (groupadd 
--non-unique --gid 998 dockersock && adduser "jenkins" dockersock ) || true; fi
   [2024-07-09T12:35:10.546Z] #8 0.359 Usage: adduser [options] LOGIN
   [2024-07-09T12:35:10.546Z] #8 0.359        adduser -D
   [2024-07-09T12:35:10.546Z] #8 0.359        adduser -D [options]
   [2024-07-09T12:35:10.546Z] #8 0.359 
   [2024-07-09T12:35:10.546Z] #8 0.359 Options:
   [2024-07-09T12:35:10.546Z] #8 0.359   -b, --base-dir BASE_DIR       base 
directory for the home directory of the
   [2024-07-09T12:35:10.546Z] #8 0.359                                 new 
account
   [2024-07-09T12:35:10.546Z] #8 0.359   -c, --comment COMMENT         GECOS 
field of the new account
   [2024-07-09T12:35:10.546Z] #8 0.359   -d, --home-dir HOME_DIR       home 
directory of the new account
   [2024-07-09T12:35:10.546Z] #8 0.359   -D, --defaults                print or 
change default useradd configuration
   [2024-07-09T12:35:10.546Z] #8 0.359   -e, --expiredate EXPIRE_DATE  
expiration date of the new account
   [2024-07-09T12:35:10.546Z] #8 0.359   -f, --inactive INACTIVE       password 
inactivity period of the new account
   [2024-07-09T12:35:10.546Z] #8 0.359   -g, --gid GROUP               name or 
ID of the primary group of the new
   [2024-07-09T12:35:10.546Z] #8 0.359                                 account
   [2024-07-09T12:35:10.546Z] #8 0.359   -G, --groups GROUPS           list of 
supplementary groups of the new
   [2024-07-09T12:35:10.546Z] #8 0.359                                 account
   [2024-07-09T12:35:10.546Z] #8 0.359   -h, --help                    display 
this help message and exit
   [2024-07-09T12:35:10.546Z] #8 0.359   -k, --skel SKEL_DIR           use this 
alternative skeleton directory
   [2024-07-09T12:35:10.546Z] #8 0.359   -K, --key KEY=VALUE           override 
/etc/login.defs defaults
   [2024-07-09T12:35:10.546Z] #8 0.359   -l, --no-log-init             do not 
add the user to the lastlog and
   [2024-07-09T12:35:10.546Z] #8 0.359                                 faillog 
databases
   [2024-07-09T12:35:10.546Z] #8 0.359   -m, --create-home             create 
the user's home directory
   [2024-07-09T12:35:10.546Z] #8 0.359   -M, --no-create-home          do not 
create the user's home directory
   [2024-07-09T12:35:10.546Z] #8 0.359   -N, --no-user-group           do not 
create a group with the same name as
   [2024-07-09T12:35:10.546Z] #8 0.359                                 the user
   [2024-07-09T12:35:10.546Z] #8 0.359   -o, --non-unique              allow to 
create users with duplicate
   [2024-07-09T12:35:10.546Z] #8 0.359                                 
(non-unique) UID
   [2024-07-09T12:35:10.546Z] #8 0.359   -p, --password PASSWORD       
encrypted password of the new account
   [2024-07-09T12:35:10.546Z] #8 0.359   -r, --system                  create a 
system account
   [2024-07-09T12:35:10.546Z] #8 0.359   -R, --root CHROOT_DIR         
directory to chroot into
   [2024-07-09T12:35:10.546Z] #8 0.359   -P, --prefix PREFIX_DIR       prefix 
directory where are located the /etc/* files
   [2024-07-09T12:35:10.546Z] #8 0.359   -s, --shell SHELL             login 
shell of the new account
   [2024-07-09T12:35:10.546Z] #8 0.359   -u, --uid UID                 user ID 
of the new account
   [2024-07-09T12:35:10.546Z] #8 0.359   -U, --user-group              create a 
group with the same name as the user
   [2024-07-09T12:35:10.546Z] #8 0.359   -Z, --selinux-user SEUSER     use a 
specific SEUSER for the SELinux user mapping
   [2024-07-09T12:35:10.546Z] #8 0.359 
   [2024-07-09T12:35:10.546Z] #8 DONE 0.4s
   ```
   this should be a Yetus side issue, and I suppose it has been broken for a 
while ...
   
   the corresponding code should be 
https://github.com/apache/yetus/blob/23ddb4e106785effb2e1154aed65329f722bfabe/precommit/src/main/shell/test-patch-docker/Dockerfile.patchspecific#L31
   
   due to the incorrectly setup for user "jenkins", the PATH env is abnormal, 
then commands like `pwd`, `bash` become unavailable ...


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to