{"action":"created","issue":{"url":"https://api.github.com/repos/naver/nbase-arc/issues/77","repository_url":"https://api.github.com/repos/naver/nbase-arc","labels_url":"https://api.github.com/repos/naver/nbase-arc/issues/77/labels{/name}","comments_url":"https://api.github.com/repos/naver/nbase-arc/issues/77/comments","events_url":"https://api.github.com/repos/naver/nbase-arc/issues/77/events","html_url":"https://github.com/naver/nbase-arc/issues/77","id":164975306,"number":77,"title":"cluster create error","user":{"login":"drawhan","id":20238846,"avatar_url":"https://avatars.githubusercontent.com/u/20238846?v=3","gravatar_id":"","url":"https://api.github.com/users/drawhan","html_url":"https://github.com/drawhan","followers_url":"https://api.github.com/users/drawhan/followers","following_url":"https://api.github.com/users/drawhan/following{/other_user}","gists_url":"https://api.github.com/users/drawhan/gists{/gist_id}","starred_url":"https://api.github.com/users/drawhan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drawhan/subscriptions","organizations_url":"https://api.github.com/users/drawhan/orgs","repos_url":"https://api.github.com/users/drawhan/repos","events_url":"https://api.github.com/users/drawhan/events{/privacy}","received_events_url":"https://api.github.com/users/drawhan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-12T01:33:31Z","updated_at":"2016-07-12T05:34:24Z","closed_at":null,"body":"#system : centos 7.1 x64 / Linux redis1 3.10.0-327.22.2.el7.x86_64 #1 SMP Thu Jun 23 17:05:11 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux\r\n\r\n#fab main\r\n#4 cluster create\r\n\r\nCluster name :  cluster\r\nPG count :  4\r\nReplication number :  2\r\nPGS Physical Machine list([[\"PM_NAME PM_IP\", \"PM_NAME PM_IP\"], [\"PM_NAME PM_IP\", \"PM_NAME PM_IP\"], ...]) [[\"redis1 10.0.0.151\", \"redis2 10.0.0.152\"]]\r\nGateway Physical Machine list([PM_NAME PM_IP, PM_NAME PM_IP, ...]) [\"redis1 10.0.0.151\", \"redis2 10.0.0.152\"]\r\nCronsave number 2\r\n[user@10.0.0.151] Executing task 'get_ports'\r\n\r\n[user@10.0.0.151] Get using ports\r\n[user@10.0.0.151] Login password for 'user': \r\n[user@10.0.0.152] Executing task 'get_ports'\r\n\r\n[user@10.0.0.152] Get using ports\r\n[user@10.0.0.151] Executing task 'get_ports'\r\n\r\n[user@10.0.0.151] Get using ports\r\n[user@10.0.0.152] Executing task 'get_ports'\r\n\r\n[user@10.0.0.152] Get using ports\r\n\r\nPrint script? [Y/n] \r\n\r\n[SCRIPT]\r\nCLUSTER:\r\ncluster_add cluster 0:1\r\n\r\nGW:\r\ncluster 1 redis1 10.0.0.151 6000\r\ncluster 2 redis2 10.0.0.152 6000\r\n\r\nPG:\r\npg_add cluster 0\r\npg_add cluster 1\r\npg_add cluster 2\r\npg_add cluster 3\r\n\r\nPN PG MAP:\r\nslot_set_pg cluster 0:2047 0\r\nslot_set_pg cluster 2048:4095 1\r\nslot_set_pg cluster 4096:6143 2\r\nslot_set_pg cluster 6144:8191 3\r\n\r\nPGS:\r\ncluster 0 0 redis1 10.0.0.151 7000\r\ncluster 50 0 redis2 10.0.0.152 7000\r\ncluster 1 1 redis1 10.0.0.151 7010\r\ncluster 51 1 redis2 10.0.0.152 7010\r\ncluster 2 2 redis1 10.0.0.151 7020\r\ncluster 52 2 redis2 10.0.0.152 7020\r\ncluster 3 3 redis1 10.0.0.151 7030\r\ncluster 53 3 redis2 10.0.0.152 7030\r\n\r\n\r\nPrint configuration? [Y/n] \r\n\r\n[GW INFORMATION]\r\n+-------+------------------------------------------+--------+\r\n| GW_ID |                    PM                    |  PORT  |\r\n+-------+------------------------------------------+--------+\r\n|     1 |           ['redis1', '10.0.0.151'] |   6000 |\r\n|     2 |           ['redis2', '10.0.0.152'] |   6000 |\r\n+-------+------------------------------------------+--------+\r\n\r\n\r\n[PG INFORMATION]\r\n+-------+--------------+-----------+\r\n| PG_ID |     SLOT     | SLOT SIZE |\r\n+-------+--------------+-----------+\r\n|     0 |      0  2047 |      2048 |\r\n|     1 |   2048  4095 |      2048 |\r\n|     2 |   4096  6143 |      2048 |\r\n|     3 |   6144  8191 |      2048 |\r\n+-------+--------------+-----------+\r\n\r\n[PGS INFORMATION]\r\n+-------+--------+------------------------------------------+--------+\r\n| PG_ID | PGS_ID |                    PM                    |  PORT  |\r\n+-------+--------+------------------------------------------+--------+\r\n|     0 |      0 |           ['redis1', '10.0.0.151'] |   7000 |\r\n|     0 |     50 |           ['redis2', '10.0.0.152'] |   7000 |\r\n|     1 |      1 |           ['redis1', '10.0.0.151'] |   7010 |\r\n|     1 |     51 |           ['redis2', '10.0.0.152'] |   7010 |\r\n|     2 |      2 |           ['redis1', '10.0.0.151'] |   7020 |\r\n|     2 |     52 |           ['redis2', '10.0.0.152'] |   7020 |\r\n|     3 |      3 |           ['redis1', '10.0.0.151'] |   7030 |\r\n|     3 |     53 |           ['redis2', '10.0.0.152'] |   7030 |\r\n+-------+--------+------------------------------------------+--------+\r\n\r\n\r\n[PGS INFORMATION, After Arranging locations of masters]\r\n+-------+--------+------------------------------------------+--------+\r\n| PG_ID | PGS_ID |                    PM                    |  PORT  |\r\n+-------+--------+------------------------------------------+--------+\r\n|     0 |      0 |           ['redis1', '10.0.0.151'] |   7000 |\r\n|     0 |     50 |           ['redis2', '10.0.0.152'] |   7000 |\r\n|     1 |     51 |           ['redis2', '10.0.0.152'] |   7010 |\r\n|     2 |      2 |           ['redis1', '10.0.0.151'] |   7020 |\r\n|     2 |     52 |           ['redis2', '10.0.0.152'] |   7020 |\r\n|     3 |     53 |           ['redis2', '10.0.0.152'] |   7030 |\r\n|     1 |      1 |           ['redis1', '10.0.0.151'] |   7010 |\r\n|     3 |      3 |           ['redis1', '10.0.0.151'] |   7030 |\r\n+-------+--------+------------------------------------------+--------+\r\n\r\n[MASTER COUNT]\r\n10.0.0.152 : 2\r\n10.0.0.151 : 2\r\n\r\nCreate PGS, Continue? [Y/n] \r\nConfirm Mode? [Y/n] \r\n\r\nWarning: PM Add fail. cmd:pm_add redis1 10.0.0.151, ret:{\"state\":\"error\",\"msg\":\"-ERR required state is 2, but 1\"}\r\n\r\n\r\n#confmaster error\r\n2016/07/12 10:25:43.836 ERR 016 CM Exception occur while handle request. length: 30, message: \"pm_add redis1 10.0.0.151\"... com.navercorp.nbasearc.confmaster.ConfMasterException$MgmtStateNotSatisfiedException: -ERR required state is 2, but \r\n"},"comment":{"url":"https://api.github.com/repos/naver/nbase-arc/issues/comments/231941647","html_url":"https://github.com/naver/nbase-arc/issues/77#issuecomment-231941647","issue_url":"https://api.github.com/repos/naver/nbase-arc/issues/77","id":231941647,"user":{"login":"drawhan","id":20238846,"avatar_url":"https://avatars.githubusercontent.com/u/20238846?v=3","gravatar_id":"","url":"https://api.github.com/users/drawhan","html_url":"https://github.com/drawhan","followers_url":"https://api.github.com/users/drawhan/followers","following_url":"https://api.github.com/users/drawhan/following{/other_user}","gists_url":"https://api.github.com/users/drawhan/gists{/gist_id}","starred_url":"https://api.github.com/users/drawhan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drawhan/subscriptions","organizations_url":"https://api.github.com/users/drawhan/orgs","repos_url":"https://api.github.com/users/drawhan/repos","events_url":"https://api.github.com/users/drawhan/events{/privacy}","received_events_url":"https://api.github.com/users/drawhan/received_events","type":"User","site_admin":false},"created_at":"2016-07-12T05:34:24Z","updated_at":"2016-07-12T05:34:24Z","body":"thank you for your answer\r\n\r\nexecute cm_start and install is fine... but other error occur\r\n\r\nexecute batch log\r\n----------------------------------------------------------------------------------------------------------------\r\n[localhost] Check Local Binary\r\n[localhost] local: test -e ~/nbase-arc/bin/redis-arc-v1.3.0-6-gbe31eca\r\n[localhost] local: test -e ~/nbase-arc/bin/cluster-util-v1.3.0-6-gbe31eca\r\n[localhost] local: test -e ~/nbase-arc/bin/redis-gateway-v1.3.0-6-gbe31eca\r\n[localhost] local: test -e ~/nbase-arc/bin/smr-replicator-v1.3.0-6-gbe31eca\r\n[localhost] local: test -e ~/nbase-arc/bin/smr-logutil-v1.3.0-6-gbe31eca\r\n[localhost] Check Local Binary Success\r\n\r\n[ttp@localhost] copy_binary begin\r\n[ttp@localhost] Executing task 'copy_binary'\r\n[ttp@localhost] copy_binary end\r\n[ttp@localhost] Executing task 'path_exist'\r\n[ttp@localhost] Executing task 'path_exist'\r\n[ttp@localhost] Executing task 'make_remote_path'\r\n[ttp@localhost] Create directory, ~/nbase-arc/pgs/7020/smr/log. Continue? [Y/n] \r\n\r\n\r\n\r\n\r\nzookeeper log\r\n----------------------------------------------------------------------------------------------------------------\r\n2016/07/12 14:27:48.905 ERR 042 CM -ERR pgs does not exist. cluster_redis/pgs:50\r\n2016/07/12 14:27:48.905 ERR 042 CM Exception occur while handle request. length: 20, message: \"pgs_info cluster_redis 50\"... java.lang.reflect.InvocationTargetException\r\n\tat sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:606)\r\n\tat com.navercorp.nbasearc.confmaster.server.mapping.Caller.invoke(Caller.java:49)\r\n\tat com.navercorp.nbasearc.confmaster.server.command.CommandTemplate.lock(CommandTemplate.java:209)\r\n\tat com.navercorp.nbasearc.confmaster.server.command.CommandTemplate.call(CommandTemplate.java:87)\r\n\tat com.navercorp.nbasearc.confmaster.server.command.CommandTemplate.call(CommandTemplate.java:50)\r\n\tat com.navercorp.nbasearc.confmaster.context.ExecutionContext.call(ExecutionContext.java:47)\r\n\tat java.util.concurrent.FutureTask.run(FutureTask.java:262)\r\n\tat java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)\r\n\tat java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)\r\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)\r\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\nCaused by: java.lang.IllegalArgumentException: -ERR pgs does not exist. cluster_redis/pgs:50\r\n\tat com.navercorp.nbasearc.confmaster.repository.lock.HierarchicalLockPGS.<init>(HierarchicalLockPGS.java:53)\r\n\tat com.navercorp.nbasearc.confmaster.repository.lock.HierarchicalLockPG.pgs(HierarchicalLockPG.java:50)\r\n\tat com.navercorp.nbasearc.confmaster.server.command.PartitionGroupServerService.pggInfoLock(PartitionGroupServerService.java:351)\r\n\t... 14 more\r\n\r\n"}}
{"actor":{"display_login":"drawhan"}}