IBM / CAST

CAST can enhance the system management of cluster-wide resources. It consists of the open source tools: cluster system management (CSM) and burst buffer.
Eclipse Public License 1.0
27 stars 34 forks source link

added in an automated script to build the /test/ directories related … #969

Closed williammorrison2 closed 4 years ago

williammorrison2 commented 4 years ago

…to CSM FVT framework.

Purpose

Automation script to build the /test/ directories needed for CSM FVT regression"

How to Test

  1. Run the script on the XCATMN to see if executes accordingly. (If the XCAT server is up and running the script will succeed.)
  2. Run the script on the CSM MASTER Node (other than the XCATMN) to see if executes accordingly.
  3. Try to run the script on the non CSM MASTER node and non CSM MASTER (set in the /CAST/csmtest/csm_test.cfg)
  4. Run the /CAST/csmtest/include/csm_fvt_xcat_setup_on_non_mn.sh script if needed.
  5. Run the script an additional time to ensure all the directories/files exists.

Screenshots

This script can be run on both the XCATMN (if the CSM MASTER is the same) or independently of the XCATMN. In order to run the script independently from the XCATMN, the user must first make sure the /usr/local/bin scripts are in place from the ./csm_fvt_xcat_setup_on_non_mn.sh script.

Try to run the script without the /usr/local/bin installed Expected results

[root@c650f99p04 include]# ./csm_fvt_test_dir_setup.sh
------------------------------------------------------------------------------------------------------------------------
[Info    ] Running the ./csm_fvt_test_dir_setup.sh script
------------------------------------------------------------------------------------------------------------------------
[Error   ] Please run the /CAST/csmtest/include/csm_fvt_xcat_setup_on_non_mn.sh script.
[Info    ] This will setup the /usr/local/bin directory with the appropriate scripts.
------------------------------------------------------------------------------------------------------------------------

Try to run the script on the non CSM MASTER node.

[root@c650f99p16 include]# ./csm_fvt_test_dir_setup.sh
------------------------------------------------------------------------------------------------------------------------
[Error   ] This script must be run as root and on the CSM MASTER:  node
------------------------------------------------------------------------------------------------------------------------

Once the /CAST/csmtest/include/csm_fvt_xcat_setup_on_non_mn.sh script is executed, then the ./csm_fvt_test_dir_setup.sh can be ran.

[root@c650f99p04 include]# ./csm_fvt_xcat_setup_on_non_mn.sh
------------------------------------------------------------------------------------------------------------------------
[Info    ] Running the ./csm_fvt_xcat_setup_on_non_mn.sh script
------------------------------------------------------------------------------------------------------------------------
[Info    ] Creating the /etc/profile.d/xcat.sh file.
[Info    ] Copying all the previous XCAT script files.
[Info    ] Creating the lsdef.sh script
[Info    ] Creating the nodels.sh script
[Info    ] Creating the nodestat.sh script
[Info    ] Creating the ppping.sh script
[Info    ] Creating the rinv.sh script
[Info    ] Creating the rpower.sh script
[Info    ] Creating the rvitals.sh script
[Info    ] Creating the xcoll.sh script
[Info    ] Creating the xdcp.sh script
[Info    ] Creating the xdsh.sh script
------------------------------------------------------------------------------------------------------------------------
[Info    ] The XCAT files are different from the newly generated script.
------------------------------------------------------------------------------------------------------------------------
[Info    ] 1. The newly generated XCAT files will replace the existing one.
[Info    ] 2. The previous XCAT files will be saved to the following dir: /tmp/csm_fvt_xcat_backup
------------------------------------------------------------------------------------------------------------------------

If the user chooses to run the script again and if no files have changed then the following out will be displayed.

[root@c650f99p06 include]# ./csm_fvt_xcat_setup_on_non_mn.sh
------------------------------------------------------------------------------------------------------------------------
[Info    ] Running the ./csm_fvt_xcat_setup_on_non_mn.sh script
------------------------------------------------------------------------------------------------------------------------
[Info    ] Copying all the previous XCAT script files.
[Info    ] Creating the lsdef.sh script
[Info    ] Creating the nodels.sh script
[Info    ] Creating the nodestat.sh script
[Info    ] Creating the ppping.sh script
[Info    ] Creating the rinv.sh script
[Info    ] Creating the rpower.sh script
[Info    ] Creating the rvitals.sh script
[Info    ] Creating the xcoll.sh script
[Info    ] Creating the xdcp.sh script
[Info    ] Creating the xdsh.sh script
------------------------------------------------------------------------------------------------------------------------
[Info    ] The xcat files are the same as the newly generated script.
[Info    ] No additional steps needed.
------------------------------------------------------------------------------------------------------------------------

Once the above steps have been followed and have been executed successfully then the ./csm_fvt_test_dir_setup.sh can be ran. This is a successful run (including all the files needed for the CSM FVT regression)

[root@c650f99p04 include]# ./csm_fvt_test_dir_setup.sh
------------------------------------------------------------------------------------------------------------------------
[Info    ] Running the ./csm_fvt_test_dir_setup.sh script
------------------------------------------------------------------------------------------------------------------------
[Info    ] The /test/archive/archive.sh & /test/archive/archive_input.sh files already exist.
[Info    ] Creating OLD RPMS in /test/old_rpms
[Info    ] The /test/results/clean_logs.sh file already exist.
------------------------------------------------------------------------------------------------------------------------

If the script is executed after the initial install, then the script will skip all the process and display the infomation below.

[root@c650f99p04 include]# ./csm_fvt_test_dir_setup.sh
------------------------------------------------------------------------------------------------------------------------
[Info    ] Running the ./csm_fvt_test_dir_setup.sh script
------------------------------------------------------------------------------------------------------------------------
[Info    ] The /test/archive/archive.sh & /test/archive/archive_input.sh files already exist.
[Info    ] The OLD RPMS already exist.
[Info    ] The /test/results/clean_logs.sh file already exist.
------------------------------------------------------------------------------------------------------------------------

Open Questions and Pre-Merge TODOs