xcat2 / xcat-docker

Repository to build Docker image for xCAT
5 stars 5 forks source link

Enhancement on docker container after testing in automation environment #6

Closed robin2008 closed 5 years ago

robin2008 commented 5 years ago

Some changes found during UT:

robin2008 commented 5 years ago

UT: docker build successfully on both x86 and ppc64le, and working too.

docker run -d --name xcatmn --network=host --hostname xcatmn --privileged -v /sys/fs/cgroup:/sys/fs/cgroup:ro xcat2
57c1d191490cd48afd7d272ec2a500db765af245c26ab856cd26b9678e66b2bc

1, check loop device: OK

bindembp:xcat-docker binxu$ docker exec -it xcatmn /bin/bash
[root@xcatmn /]# ls /dev/loop*
/dev/loop0  /dev/loop1  /dev/loop2  /dev/loop3  /dev/loop4  /dev/loop5  /dev/loop6  /dev/loop7  /dev/loop-control

2, check man command: OK

[root@xcatmn /]# man nodels
NODELS.1(1)                                                 User Contributed Perl Documentation                                                NODELS.1(1)

NAME
       nodels - lists the nodes, and their attributes, from the xCAT database.

SYNOPSIS
       nodels [noderange] [-b | --blame] [-H | --with-fieldname] [-S] [table.column | shortname] [...]

       nodels [noderange] [-H | --with-fieldname] [table]

       nodels [-? | -h | --help | -v | --version]
...

3, check PATH: okay

docker exec -it xcatmn tabdump site
#key,value,comments,disable
"blademaxp","64",,
"fsptimeout","0",,
"installdir","/install",,
"ipmimaxp","64",,
"ipmiretries","3",,
"ipmitimeout","2",,
"consoleondemand","no",,
"master","172.17.0.2",,
"forwarders","192.168.65.1",,
"nameservers","172.17.0.2",,
"maxssh","8",,
"ppcmaxp","64",,
"ppcretry","3",,
"ppctimeout","0",,
"powerinterval","0",,
"syspowerinterval","0",,
"sharedtftp","1",,
"SNsyncfiledir","/var/xcat/syncfiles",,
"nodesyncfiledir","/var/xcat/node/syncfiles",,
"tftpdir","/tftpboot",,
"xcatdport","3001",,
"xcatiport","3002",,
"xcatconfdir","/etc/xcat",,
"timezone","Zulu",,
"useNmapfromMN","no",,
"enableASMI","no",,
"db2installloc","/mntdb2",,
"databaseloc","/var/lib",,
"sshbetweennodes","ALLGROUPS",,
"dnshandler","ddns",,
"vsftp","n",,
"cleanupxcatpost","no",,
"dhcplease","43200",,
"auditnosyslog","0",,
"xcatsslversion","TLSv1",,
"auditskipcmds","ALL",,