Test Design of HA - xcat2/xcat-core GitHub Wiki
-
xcatmn1
is xcat MN and HA control node -
xcatha1
andxcatha2
are 2 HA MN nodes -
xcatcn
is compute node managed byxcatha1
andxcatha2
, 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.py
andcfgha_mn
into /install/postscripts - backup
xcatha1
andxcatha2
node 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
insynclists
- Modify
xcatha1
andxcatha2
postbootscripts
, configure physical ip as static IP usingconfignetwork -s
, addcfgha_mn
inpostbootscripts
chdef <xcatha> -p postbootscripts="confignetwork -s,cfgha_mn -l <nfs_server>:<shared_data_dir> -i <vip> -x s"
- provison
xcatha1
as standby HA MN node - provision
xcatha2
as standby HA MN node - activate
xcatha1
as primary HA MN - import diskless osimage from
xcatmn1
- define
xcatcn
in xcatha1 - provision diskless
xcatcn
inxcatha1
- deactivate
xcatha1
as standby HA MN - activate
xcatha2
as primary HA MN - provision diskless
xcatcn
inxcatha2
- restore environment
- download
xcatha.py
, copyxcatha.py
andcfgha_mn
into/install/postscripts
- backup
xcatha1
andxcatha2
node 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
xcatha1
andxcatha2
postbootscripts, configure physical ip as static IP usingconfignetwork -s
- provision diskfull
xcatha1
andxcatha2
- install xCAT in
xcatha1
andxcatha2
- configure
xcatha1
andxcatha2
as standby HA MN nodes
updatenode <xcatha> -p postbootscripts="cfgha_mn -l <nfs_server>:<shared_data_dir> -i <vip> -x s"
- activate
xcatha1
as primary HA MN - import diskless osimage from
xcatmn1
inxcatha1
- define
xcatcn
inxcatha1
- provision diskless
xcatcn
inxcatha1
- deactivate
xcatha1
as standby HA MN - activate
xcatha2
as primary HA MN - provision diskless
xcatcn
inxcatha2
- restore environment