Test Design of HA - xcat2/xcat-core GitHub Wiki
-
xcatmn1is xcat MN and HA control node -
xcatha1andxcatha2are 2 HA MN nodes -
xcatcnis compute node managed byxcatha1andxcatha2, it is used to test provision
test case file and other useful files(cfgha_mn and hosts file) are kept under /opt/xcat/share/xcat/tools/autotest/testcase/HA
Test case1: setup_2_new_HA_MN
Test case2: configure_exist_xCAT_MN_to_HA_MN
- download
xcatha.py, copyxcatha.pyandcfgha_mninto /install/postscripts - backup
xcatha1andxcatha2node definition - backup osimage definition
rhels7.4-ppc64le-install-compute - create
/opt/xcat/share/xcat/tools/autotest/testcase/HA/hosts, contains:- 2 HA nodes physical IP
- VIP and hostname
- control node
- customize diskful osimage
rhels7.4-ppc64le-install-compute, add/opt/xcat/share/xcat/tools/autotest/testcase/HA/hostsinsynclists - Modify
xcatha1andxcatha2postbootscripts, configure physical ip as static IP usingconfignetwork -s, addcfgha_mninpostbootscripts
chdef <xcatha> -p postbootscripts="confignetwork -s,cfgha_mn -l <nfs_server>:<shared_data_dir> -i <vip> -x s"
- provison
xcatha1as standby HA MN node - provision
xcatha2as standby HA MN node - activate
xcatha1as primary HA MN - import diskless osimage from
xcatmn1 - define
xcatcnin xcatha1 - provision diskless
xcatcninxcatha1 - deactivate
xcatha1as standby HA MN - activate
xcatha2as primary HA MN - provision diskless
xcatcninxcatha2 - restore environment
- download
xcatha.py, copyxcatha.pyandcfgha_mninto/install/postscripts - backup
xcatha1andxcatha2node definition - backup osimage definition
rhels7.4-ppc64le-install-compute - create /opt/xcat/share/xcat/tools/autotest/testcase/HA/hosts, contains: 2 HA nodes physical IP, VIP and hostname, control node
- customize diskful osimage rhels7.4-ppc64le-install-compute, add /opt/xcat/share/xcat/tools/autotest/testcase/HA/hosts in synclists
- Modify
xcatha1andxcatha2postbootscripts, configure physical ip as static IP usingconfignetwork -s - provision diskfull
xcatha1andxcatha2 - install xCAT in
xcatha1andxcatha2 - configure
xcatha1andxcatha2as standby HA MN nodes
updatenode <xcatha> -p postbootscripts="cfgha_mn -l <nfs_server>:<shared_data_dir> -i <vip> -x s"
- activate
xcatha1as primary HA MN - import diskless osimage from
xcatmn1inxcatha1 - define
xcatcninxcatha1 - provision diskless
xcatcninxcatha1 - deactivate
xcatha1as standby HA MN - activate
xcatha2as primary HA MN - provision diskless
xcatcninxcatha2 - restore environment