[ 
https://issues.apache.org/jira/browse/HADOOP-19222?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17864255#comment-17864255
 ] 

ASF GitHub Bot commented on HADOOP-19222:
-----------------------------------------

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 ...




> Switch yum repo baseurl due to CentOS 7 sunset
> ----------------------------------------------
>
>                 Key: HADOOP-19222
>                 URL: https://issues.apache.org/jira/browse/HADOOP-19222
>             Project: Hadoop Common
>          Issue Type: Bug
>            Reporter: Cheng Pan
>            Priority: Major
>              Labels: pull-request-available
>
> Similar to HADOOP-18151 (which handled sunset for CentOS 8), CentOS 7 reached 
> EOL on July 1, 2024



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to