{"action":"created","issue":{"url":"https://api.github.com/repos/xcat2/xcat-core/issues/5583","repository_url":"https://api.github.com/repos/xcat2/xcat-core","labels_url":"https://api.github.com/repos/xcat2/xcat-core/issues/5583/labels{/name}","comments_url":"https://api.github.com/repos/xcat2/xcat-core/issues/5583/comments","events_url":"https://api.github.com/repos/xcat2/xcat-core/issues/5583/events","html_url":"https://github.com/xcat2/xcat-core/pull/5583","id":355915080,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEyMzMxOTMz","number":5583,"title":"add HA test cases for redhat","user":{"login":"bybai","id":6743951,"node_id":"MDQ6VXNlcjY3NDM5NTE=","avatar_url":"https://avatars2.githubusercontent.com/u/6743951?v=4","gravatar_id":"","url":"https://api.github.com/users/bybai","html_url":"https://github.com/bybai","followers_url":"https://api.github.com/users/bybai/followers","following_url":"https://api.github.com/users/bybai/following{/other_user}","gists_url":"https://api.github.com/users/bybai/gists{/gist_id}","starred_url":"https://api.github.com/users/bybai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bybai/subscriptions","organizations_url":"https://api.github.com/users/bybai/orgs","repos_url":"https://api.github.com/users/bybai/repos","events_url":"https://api.github.com/users/bybai/events{/privacy}","received_events_url":"https://api.github.com/users/bybai/received_events","type":"User","site_admin":false},"labels":[{"id":310580979,"node_id":"MDU6TGFiZWwzMTA1ODA5Nzk=","url":"https://api.github.com/repos/xcat2/xcat-core/labels/component:test","name":"component:test","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/xcat2/xcat-core/milestones/41","html_url":"https://github.com/xcat2/xcat-core/milestone/41","labels_url":"https://api.github.com/repos/xcat2/xcat-core/milestones/41/labels","id":3538202,"node_id":"MDk6TWlsZXN0b25lMzUzODIwMg==","number":41,"title":"2.14.4","description":"","creator":{"login":"zet809","id":8222144,"node_id":"MDQ6VXNlcjgyMjIxNDQ=","avatar_url":"https://avatars2.githubusercontent.com/u/8222144?v=4","gravatar_id":"","url":"https://api.github.com/users/zet809","html_url":"https://github.com/zet809","followers_url":"https://api.github.com/users/zet809/followers","following_url":"https://api.github.com/users/zet809/following{/other_user}","gists_url":"https://api.github.com/users/zet809/gists{/gist_id}","starred_url":"https://api.github.com/users/zet809/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zet809/subscriptions","organizations_url":"https://api.github.com/users/zet809/orgs","repos_url":"https://api.github.com/users/zet809/repos","events_url":"https://api.github.com/users/zet809/events{/privacy}","received_events_url":"https://api.github.com/users/zet809/received_events","type":"User","site_admin":false},"open_issues":58,"closed_issues":19,"state":"open","created_at":"2018-08-01T06:44:28Z","updated_at":"2018-09-04T06:46:03Z","due_on":"2018-10-05T07:00:00Z","closed_at":null},"comments":1,"created_at":"2018-08-31T09:53:13Z","updated_at":"2018-09-04T08:14:55Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/xcat2/xcat-core/pulls/5583","html_url":"https://github.com/xcat2/xcat-core/pull/5583","diff_url":"https://github.com/xcat2/xcat-core/pull/5583.diff","patch_url":"https://github.com/xcat2/xcat-core/pull/5583.patch"},"body":"for https://github.com/xcat2/xcat2-task-management/issues/249\r\n\r\nAdd 2 testcase:\r\nsetup_2_new_HA_MN\r\nconfigure_exist_xCAT_MN_to_HA_MN\r\n\r\nI ran UT in autotest ENV, the log was too long, so I only paste the results  here:\r\n```\r\nxcattest.log.20180828224841:------END::setup_2_new_HA_MN::Passed::Time:Tue Aug 28 23:37:23 2018 ::Duration::2917 sec------\r\nxcattest.log.20180830223154:------END::configure_exist_xCAT_MN_to_HA_MN::Passed::Time:Thu Aug 30 23:00:43 2018 ::Duration::1724 sec------\r\n```\r\nKey process:\r\n```\r\nRUN:updatenode c910f03c11k16 -P \"cfghamn -l $mnip:/install/HA -i 10.3.17.233 -x a\" [Tue Aug 28 23:26:10 2018]\r\nElapsedTime:9 sec\r\nRETURN rc = 0\r\nOUTPUT:\r\nc910f03c11k16: vpdupdate is not supported on the pSeries KVM Guest platform\r\nc910f03c11k16: updating VPD database\r\nc910f03c11k16: trying to download postscripts...\r\nc910f03c11k16: postscripts downloaded successfully\r\nc910f03c11k16: trying to get mypostscript from 10.3.11.15...\r\nc910f03c11k16: Running postscript: cfghamn\r\nc910f03c11k16: The shared data directory is :/install/HA\r\nc910f03c11k16: The VIP is 10.3.17.233\r\nc910f03c11k16: VIP NIC is : eth2:0\r\nc910f03c11k16: Loaded plugins: product-id, search-disabled-repos, subscription-manager\r\nc910f03c11k16: This system is not registered with an entitlement server. You can use subscription-manager to register.\r\nc910f03c11k16: Package yum-utils-1.1.31-45.el7.noarch already installed and latest version\r\nc910f03c11k16: Nothing to do\r\nc910f03c11k16: NETMASK is : 255.0.0.0\r\nc910f03c11k16: VIP hostname is : autotesthamn\r\nc910f03c11k16: There is no xcat-inventory data\r\nc910f03c11k16: Start to activate autotesthamn\r\nc910f03c11k16: 2018-08-28 23:26:12,506 - INFO - Activating this node as xCAT primary MN\r\nc910f03c11k16: 2018-08-28 23:26:12,510 - INFO - ########## Activate stage ##########\r\nc910f03c11k16: 2018-08-28 23:26:12,510 - INFO - ===> Check virtual ip stage <===\r\nc910f03c11k16: 2018-08-28 23:26:12,510 - DEBUG - ping -c 1 -w 10 10.3.17.233\r\nc910f03c11k16: PING 10.3.17.233 (10.3.17.233) 56(84) bytes of data.\r\nc910f03c11k16: --- 10.3.17.233 ping statistics ---\r\nc910f03c11k16: 3 packets transmitted, 0 received, +3 errors, 100% packet loss, time 2101ms\r\nc910f03c11k16: pipe 3\r\nc910f03c11k16: 2018-08-28 23:26:15,656 - INFO - virtual ip can be used.\r\nc910f03c11k16: 2018-08-28 23:26:15,656 - INFO - ===> Configure virtual ip as alias ip stage <===\r\nc910f03c11k16: 2018-08-28 23:26:15,659 - DEBUG - ifconfig eth2:0 10.3.17.233  netmask 255.0.0.0 [Passed]\r\nc910f03c11k16: 2018-08-28 23:26:15,666 - INFO - ===> Configure hostname stage <===\r\nc910f03c11k16: 2018-08-28 23:26:15,668 - DEBUG - hostname autotesthamn [Passed]\r\nc910f03c11k16: 2018-08-28 23:26:15,668 - INFO - Check if xCAT data is in shared data directory\r\nc910f03c11k16: 2018-08-28 23:26:15,669 - DEBUG - There is xCAT data //xcat/HA/c910f03c11k16/install in shared data //xcat/HA/c910f03c11k16\r\nc910f03c11k16: 2018-08-28 23:26:15,669 - INFO - ===> Start all services stage <===\r\nc910f03c11k16: 2018-08-28 23:26:16,746 - DEBUG - systemctl start postgresql [Passed]\r\nc910f03c11k16: 2018-08-28 23:26:19,363 - DEBUG - systemctl start xcatd [Passed]\r\nc910f03c11k16: 2018-08-28 23:26:19,769 - ERROR - lsdef -t site -i domain|grep domain [Failed]\r\nc910f03c11k16: 2018-08-28 23:26:19,769 - WARNING - \"domain\" entry is not in \"site\" table. \"named\" service will not be started\r\nc910f03c11k16: 2018-08-28 23:26:19,769 - WARNING - \"domain\" entry is not in \"site\" table. \"dhcpd\" service will not be started\r\nc910f03c11k16: 2018-08-28 23:26:19,830 - DEBUG - systemctl start ntpd [Passed]\r\nc910f03c11k16: 2018-08-28 23:26:19,831 - INFO - This machine is set to primary management node successfully...\r\nc910f03c11k16: postscript: cfghamn exited with code 0\r\nc910f03c11k16: Running of postscripts has completed.\r\nCHECK:rc == 0   [Pass]\r\n\r\n... ...\r\n\r\nRUN:xdsh c910f03c11k16 \"rinstall c910f03c11k18 osimage=__GETNODEATTR(c910f03c11k16,os)__-__GETNODEATTR(c910f03c11k16,arch)__-netboot-compute\" [Tue Aug 28 23:26:42 2018]\r\nElapsedTime:5 sec\r\nRETURN rc = 0\r\nOUTPUT:\r\nc910f03c11k16: Provision node(s): c910f03c11k18\r\nCHECK:rc == 0   [Pass]\r\n\r\nRUN:sleep 300 [Tue Aug 28 23:26:47 2018]\r\nElapsedTime:300 sec\r\nRETURN rc = 0\r\nOUTPUT:\r\n\r\nRUN:xdsh c910f03c11k16 \"chmod 755 /xcatpost/check_node_state\" [Tue Aug 28 23:31:47 2018]\r\nElapsedTime:1 sec\r\nRETURN rc = 0\r\nOUTPUT:\r\n\r\nRUN:xdsh c910f03c11k16 \"/xcatpost/check_node_state c910f03c11k18\" [Tue Aug 28 23:31:48 2018]\r\nElapsedTime:1 sec\r\nRETURN rc = 0\r\nOUTPUT:\r\n... ...\r\n\r\nRUN:xdsh c910f03c11k16 \"lsdef c910f03c11k18 -i status\" [Tue Aug 28 23:31:49 2018]\r\nElapsedTime:1 sec\r\nRETURN rc = 0\r\nOUTPUT:\r\nc910f03c11k16: Object name: c910f03c11k18\r\nc910f03c11k16:     status=booted\r\nCHECK:output =~ booted  [Pass]\r\nCHECK:rc == 0   [Pass]\r\n\r\nRUN:updatenode c910f03c11k16 -P \"cfghamn -l $mnip:/install/HA -i 10.3.17.233 -x d\" [Tue Aug 28 23:31:50 2018]\r\nElapsedTime:5 sec\r\nRETURN rc = 0\r\nOUTPUT:\r\nc910f03c11k16: vpdupdate is not supported on the pSeries KVM Guest platform\r\nc910f03c11k16: updating VPD database\r\n... ...\r\nc910f03c11k16: 2018-08-28 23:31:55,214 - INFO - This machine is set to standby management node successfully...\r\nc910f03c11k16: postscript: cfghamn exited with code 0\r\nc910f03c11k16: Running of postscripts has completed.\r\nCHECK:rc == 0   [Pass]\r\n\r\nRUN:updatenode c910f03c11k17 -P \"cfghamn -l $mnip:/install/HA -i 10.3.17.233 -x a\" [Tue Aug 28 23:31:55 2018]\r\nElapsedTime:13 sec\r\nRETURN rc = 0\r\nOUTPUT:\r\nc910f03c11k17: vpdupdate is not supported on the pSeries KVM Guest platform\r\nc910f03c11k17: updating VPD database\r\n... ...\r\nc910f03c11k17: postscripts downloaded successfully\r\nc910f03c11k17: trying to get mypostscript from 10.3.11.15...\r\nc910f03c11k17: Running postscript: cfghamn\r\nc910f03c11k17: The shared data directory is :/install/HA\r\nc910f03c11k17: The VIP is 10.3.17.233\r\nc910f03c11k17: VIP NIC is : eth2:0\r\nc910f03c11k17: Loaded plugins: product-id, search-disabled-repos, subscription-manager\r\nc910f03c11k17: This system is not registered with an entitlement server. You can use subscription-manager to register.\r\nc910f03c11k17: Package yum-utils-1.1.31-45.el7.noarch already installed and latest version\r\nc910f03c11k17: Nothing to do\r\nc910f03c11k17: NETMASK is : 255.0.0.0\r\nc910f03c11k17: VIP hostname is : autotesthamn\r\nc910f03c11k17: There is no xcat-inventory data\r\nc910f03c11k17: Start to activate autotesthamn\r\nc910f03c11k17: 2018-08-28 23:31:57,167 - INFO - Activating this node as xCAT primary MN\r\nc910f03c11k17: 2018-08-28 23:31:57,169 - INFO - ########## Activate stage ##########\r\nc910f03c11k17: 2018-08-28 23:31:57,169 - INFO - ===> Check virtual ip stage <===\r\n... ...\r\nc910f03c11k17: 2018-08-28 23:32:08,751 - INFO - This machine is set to primary management node successfully...\r\nc910f03c11k17: postscript: cfghamn exited with code 0\r\nc910f03c11k17: Running of postscripts has completed.\r\nCHECK:rc == 0   [Pass]\r\n\r\nRUN:xdsh c910f03c11k17 \"rinstall c910f03c11k18 osimage=__GETNODEATTR(c910f03c11k16,os)__-__GETNODEATTR(c910f03c11k16,arch)__-netboot-compute\" [Tue Aug 28 23:32:08 2018]\r\nElapsedTime:6 sec\r\nRETURN rc = 0\r\nOUTPUT:\r\nc910f03c11k17: Provision node(s): c910f03c11k18\r\nCHECK:rc == 0   [Pass]\r\n... ...\r\nRUN:xdsh c910f03c11k17 \"lsdef c910f03c11k18 -i status\" [Tue Aug 28 23:37:15 2018]\r\nElapsedTime:1 sec\r\nRETURN rc = 0\r\nOUTPUT:\r\nc910f03c11k17: Object name: c910f03c11k18\r\nc910f03c11k17:     status=booted\r\nCHECK:output =~ booted  [Pass]\r\n\r\nRUN:updatenode c910f03c11k17 -P \"cfghamn -l $mnip:/install/HA -i 10.3.17.233 -x d\" [Tue Aug 28 23:37:16 2018]\r\nElapsedTime:5 sec\r\nRETURN rc = 0\r\nOUTPUT:\r\n... ...\r\n------END::setup_2_new_HA_MN::Passed::Time:Tue Aug 28 23:37:23 2018 ::Duration::2917 sec------\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/xcat2/xcat-core/issues/comments/418280892","html_url":"https://github.com/xcat2/xcat-core/pull/5583#issuecomment-418280892","issue_url":"https://api.github.com/repos/xcat2/xcat-core/issues/5583","id":418280892,"node_id":"MDEyOklzc3VlQ29tbWVudDQxODI4MDg5Mg==","user":{"login":"bybai","id":6743951,"node_id":"MDQ6VXNlcjY3NDM5NTE=","avatar_url":"https://avatars2.githubusercontent.com/u/6743951?v=4","gravatar_id":"","url":"https://api.github.com/users/bybai","html_url":"https://github.com/bybai","followers_url":"https://api.github.com/users/bybai/followers","following_url":"https://api.github.com/users/bybai/following{/other_user}","gists_url":"https://api.github.com/users/bybai/gists{/gist_id}","starred_url":"https://api.github.com/users/bybai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bybai/subscriptions","organizations_url":"https://api.github.com/users/bybai/orgs","repos_url":"https://api.github.com/users/bybai/repos","events_url":"https://api.github.com/users/bybai/events{/privacy}","received_events_url":"https://api.github.com/users/bybai/received_events","type":"User","site_admin":false},"created_at":"2018-09-04T08:14:55Z","updated_at":"2018-09-04T08:14:55Z","author_association":"CONTRIBUTOR","body":"@neo954, I added UT in comments part above. Thanks "}}
{"actor":{"display_login":"bybai"}}