{"action":"created","issue":{"url":"https://api.github.com/repos/xcat2/xcat-core/issues/1146","repository_url":"https://api.github.com/repos/xcat2/xcat-core","labels_url":"https://api.github.com/repos/xcat2/xcat-core/issues/1146/labels{/name}","comments_url":"https://api.github.com/repos/xcat2/xcat-core/issues/1146/comments","events_url":"https://api.github.com/repos/xcat2/xcat-core/issues/1146/events","html_url":"https://github.com/xcat2/xcat-core/issues/1146","id":155647626,"number":1146,"title":"Format of hosts is wrong when add input in /etc/hosts","user":{"login":"xyzcaoli","id":13778572,"avatar_url":"https://avatars.githubusercontent.com/u/13778572?v=3","gravatar_id":"","url":"https://api.github.com/users/xyzcaoli","html_url":"https://github.com/xyzcaoli","followers_url":"https://api.github.com/users/xyzcaoli/followers","following_url":"https://api.github.com/users/xyzcaoli/following{/other_user}","gists_url":"https://api.github.com/users/xyzcaoli/gists{/gist_id}","starred_url":"https://api.github.com/users/xyzcaoli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xyzcaoli/subscriptions","organizations_url":"https://api.github.com/users/xyzcaoli/orgs","repos_url":"https://api.github.com/users/xyzcaoli/repos","events_url":"https://api.github.com/users/xyzcaoli/events{/privacy}","received_events_url":"https://api.github.com/users/xyzcaoli/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/xcat2/xcat-core/labels/component:dns","name":"component:dns","color":"fbca04"},{"url":"https://api.github.com/repos/xcat2/xcat-core/labels/status:pending","name":"status:pending","color":"006b75"}],"state":"closed","locked":false,"assignee":{"login":"zet809","id":8222144,"avatar_url":"https://avatars.githubusercontent.com/u/8222144?v=3","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},"milestone":{"url":"https://api.github.com/repos/xcat2/xcat-core/milestones/6","html_url":"https://github.com/xcat2/xcat-core/milestones/2.12","labels_url":"https://api.github.com/repos/xcat2/xcat-core/milestones/6/labels","id":1369794,"number":6,"title":"2.12","description":"","creator":{"login":"zet809","id":8222144,"avatar_url":"https://avatars.githubusercontent.com/u/8222144?v=3","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":10,"closed_issues":440,"state":"open","created_at":"2015-10-22T07:51:37Z","updated_at":"2016-05-20T15:13:52Z","due_on":"2016-05-20T04:00:00Z","closed_at":null},"comments":1,"created_at":"2016-05-19T03:32:51Z","updated_at":"2016-05-20T15:13:52Z","closed_at":"2016-05-20T15:13:51Z","body":"Platform: VM\r\nOS:redhat 7.2\r\nSteps in Converge:\r\nStep 1: Install Converge\r\nStep 2: Enable HA\r\nStep 3: Create a cs cluster with 3 mn and 1 cn\r\nAfter that, check /etc/hosts, the format is wrong\r\n\r\nLooks this is makehosts issue, following step to re-produce in our env.\r\n[root@cnv1m1 ~]# cat /etc/hosts\r\n12.12.12.2 cnv1m1-eno50338560\r\n12.12.12.3 cnv1m2-eno50338560\r\n12.12.12.4 cnv1m3-eno50338560\r\n\r\n[root@cnv1m1 ~]# makehosts\r\n\r\n[root@cnv1m1 ~]# cat /etc/hosts\r\n12.12.12.2 cnv1m1-eno50338560\r\ncnv1m1-eno50338560\r\n.private.zone cnv1m1-eno50338560\r\n12.12.12.3 cnv1m2-eno50338560\r\ncnv1m2-eno50338560\r\n.private.zone cnv1m2-eno50338560\r\n12.12.12.4 cnv1m3-eno50338560\r\ncnv1m3-eno50338560\r\n.private.zone cnv1m3-eno50338560\r\n11.11.11.2 cnv1m1 cnv1m1.private.zone cnv1m1-eno33559296\r\n11.11.11.3 cnv1m2 cnv1m2.private.zone cnv1m2-eno33559296\r\n11.11.11.19 cnv1 cnv1.private.zone cnv1-eno33559296\r\n11.11.11.4 cnv1m3 cnv1m3.private.zone cnv1m3-eno33559296\r\n11.11.11.6 cnv1c1 cnv1c1.private.zone cnv1c1-eno33559296\r\n11.11.11.8 cnv1c2 cnv1c2.private.zone cnv1c2-eno33559296\r\n172.29.5.11 cnv1m1-eno16780032 cnv1m1-eno16780032.ma.platformlab.ibm.com\r\n172.29.5.12 cnv1m2-eno16780032 cnv1m2-eno16780032.ma.platformlab.ibm.com\r\n172.29.5.19 cnv1-eno16780032 cnv1-eno16780032.ma.platformlab.ibm.com\r\n172.29.5.13 cnv1m3-eno16780032 cnv1m3-eno16780032.ma.platformlab.ibm.com\r\n172.29.5.14 cnv1c1-eno16780032 cnv1c1-eno16780032.ma.platformlab.ibm.com\r\n11.11.11.5 cnv1c1-bmc cnv1c1-bmc.private.zone\r\n12.12.12.5 cnv1c1-eno50338560 cnv1c1-eno50338560.private.zone\r\n172.29.5.15 cnv1c2-eno16780032 cnv1c2-eno16780032.ma.platformlab.ibm.com\r\n11.11.11.7 cnv1c2-bmc cnv1c2-bmc.private.zone\r\n12.12.12.6 cnv1c2-eno50338560 cnv1c2-eno50338560.private.zone\r\n\r\nIf /etc/hosts is empty or it doesn't exist, everything works fine."},"comment":{"url":"https://api.github.com/repos/xcat2/xcat-core/issues/comments/220633633","html_url":"https://github.com/xcat2/xcat-core/issues/1146#issuecomment-220633633","issue_url":"https://api.github.com/repos/xcat2/xcat-core/issues/1146","id":220633633,"user":{"login":"daniceexi","id":10385985,"avatar_url":"https://avatars.githubusercontent.com/u/10385985?v=3","gravatar_id":"","url":"https://api.github.com/users/daniceexi","html_url":"https://github.com/daniceexi","followers_url":"https://api.github.com/users/daniceexi/followers","following_url":"https://api.github.com/users/daniceexi/following{/other_user}","gists_url":"https://api.github.com/users/daniceexi/gists{/gist_id}","starred_url":"https://api.github.com/users/daniceexi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daniceexi/subscriptions","organizations_url":"https://api.github.com/users/daniceexi/orgs","repos_url":"https://api.github.com/users/daniceexi/repos","events_url":"https://api.github.com/users/daniceexi/events{/privacy}","received_events_url":"https://api.github.com/users/daniceexi/received_events","type":"User","site_admin":false},"created_at":"2016-05-20T15:13:51Z","updated_at":"2016-05-20T15:13:51Z","body":"Has been fixed, if you can recreate this issue, please reopen it again."}}
{"actor":{"display_login":"daniceexi"}}