http-stress.sh testcase fails with TBROK in SLES15SP5 kernel as below
ftp-download-stress 1 TINFO: download file with size '2147483647'
/opt/ltp/testcases/bin/create_file: line 62: /var/ftp/ftp_file: No such file or directory
Failed to create /var/ftp/ftp_file
ftp-download-stress 1 TBROK: Failed to create test file
ftp-download-stress 1 TBROK: 'ftp-download-stress01-rmt.sh 10.33.10.228 ftp_file 2147483647' failed on 'emulp57': 'curl: (7) Failed to connect to 10.33.10.228 port 21 after 0 ms: Couldn't connect to server ftp-download-stress01-rmt 1 TINFO: stat: time=0.000368 size=0 speed=0 ftp-download-stress01-rmt 1 TINFO: Expected file size '2147483647' ftp-download-stress01-rmt 1 TBROK: Failed to download ftp://10.33.10.228/ftp_file'
Testcase is trying to create file 'ftp_file' under directory '/var/ftp' which does not exist & hence fails with TBROK .
FTP_DOWNLOAD_DIR environment varaible in tst_net.sh script with below path.
export FTP_DOWNLOAD_DIR="${FTP_DOWNLOAD_DIR:-/var/ftp}"
This path does not exists on SLES lpars
root@emulp57:/opt/ltp/testcases/bin ls -l /var/ftp
ls: cannot access '/var/ftp': No such file or directory
/var/ftp is default ftp directory for RHEL distros but not for SLES.
We need to use ftp supported directory for SLES in order to make ftp-download-stress testcase works.
For SLES, found - /srv/ftp is the ftp directory.
Proposing solution -
distro=`/usr/bin/cat /etc/os-release |grep "ID="|grep -v VERSION_ID|cut -d "=" -f2|tr -d '"' | head -n1`
if [ "$distro" = sles ]; then
export HTTP_DOWNLOAD_DIR="${HTTP_DOWNLOAD_DIR:-/srv/www/htdocs}"
export FTP_DOWNLOAD_DIR="${FTP_DOWNLOAD_DIR:-/srv/ftp}"
export FTP_UPLOAD_DIR="${FTP_UPLOAD_DIR:-/srv/ftp/pub}"
export FTP_UPLOAD_URLDIR="${FTP_UPLOAD_URLDIR:-pub}"
else
export HTTP_DOWNLOAD_DIR="${HTTP_DOWNLOAD_DIR:-/var/www/html}"
export FTP_DOWNLOAD_DIR="${FTP_DOWNLOAD_DIR:-/var/ftp}"
export FTP_UPLOAD_DIR="${FTP_UPLOAD_DIR:-/var/ftp/pub}"
export FTP_UPLOAD_URLDIR="${FTP_UPLOAD_URLDIR:-pub}"
fi
You haven't gotten a response since May so I guess you really have to submit your solution to ltp@lists.linux.it as proper patch. The same counts for your other issues.
http-stress.sh testcase fails with TBROK in SLES15SP5 kernel as below
Testcase is trying to create file 'ftp_file' under directory '/var/ftp' which does not exist & hence fails with TBROK .
This path does not exists on SLES lpars
root@emulp57:/opt/ltp/testcases/bin ls -l /var/ftp ls: cannot access '/var/ftp': No such file or directory
/var/ftp is default ftp directory for RHEL distros but not for SLES.
We need to use ftp supported directory for SLES in order to make ftp-download-stress testcase works.
For SLES, found - /srv/ftp is the ftp directory.
Proposing solution -
Thanks & Regards, Indira