{"action":"closed","issue":{"url":"https://api.github.com/repos/leo-project/leofs/issues/468","repository_url":"https://api.github.com/repos/leo-project/leofs","labels_url":"https://api.github.com/repos/leo-project/leofs/issues/468/labels{/name}","comments_url":"https://api.github.com/repos/leo-project/leofs/issues/468/comments","events_url":"https://api.github.com/repos/leo-project/leofs/issues/468/events","html_url":"https://github.com/leo-project/leofs/issues/468","id":141528936,"number":468,"title":"[leo_storage][leo_redundant_manager] Incorrect ring after executing the takeover","user":{"login":"yosukehara","id":148770,"avatar_url":"https://avatars.githubusercontent.com/u/148770?v=3","gravatar_id":"","url":"https://api.github.com/users/yosukehara","html_url":"https://github.com/yosukehara","followers_url":"https://api.github.com/users/yosukehara/followers","following_url":"https://api.github.com/users/yosukehara/following{/other_user}","gists_url":"https://api.github.com/users/yosukehara/gists{/gist_id}","starred_url":"https://api.github.com/users/yosukehara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yosukehara/subscriptions","organizations_url":"https://api.github.com/users/yosukehara/orgs","repos_url":"https://api.github.com/users/yosukehara/repos","events_url":"https://api.github.com/users/yosukehara/events{/privacy}","received_events_url":"https://api.github.com/users/yosukehara/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/leo-project/leofs/labels/Bug","name":"Bug","color":"fc2929"},{"url":"https://api.github.com/repos/leo-project/leofs/labels/Priority-MIDDLE","name":"Priority-MIDDLE","color":"fef2c0"},{"url":"https://api.github.com/repos/leo-project/leofs/labels/_leo_redundant_manager","name":"_leo_redundant_manager","color":"ededed"},{"url":"https://api.github.com/repos/leo-project/leofs/labels/_leo_storage","name":"_leo_storage","color":"ededed"}],"state":"closed","locked":false,"assignee":{"login":"yosukehara","id":148770,"avatar_url":"https://avatars.githubusercontent.com/u/148770?v=3","gravatar_id":"","url":"https://api.github.com/users/yosukehara","html_url":"https://github.com/yosukehara","followers_url":"https://api.github.com/users/yosukehara/followers","following_url":"https://api.github.com/users/yosukehara/following{/other_user}","gists_url":"https://api.github.com/users/yosukehara/gists{/gist_id}","starred_url":"https://api.github.com/users/yosukehara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yosukehara/subscriptions","organizations_url":"https://api.github.com/users/yosukehara/orgs","repos_url":"https://api.github.com/users/yosukehara/repos","events_url":"https://api.github.com/users/yosukehara/events{/privacy}","received_events_url":"https://api.github.com/users/yosukehara/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/leo-project/leofs/milestones/51","html_url":"https://github.com/leo-project/leofs/milestones/1.2.20","labels_url":"https://api.github.com/repos/leo-project/leofs/milestones/51/labels","id":1548513,"number":51,"title":"1.2.20","description":"* Maintenance","creator":{"login":"yosukehara","id":148770,"avatar_url":"https://avatars.githubusercontent.com/u/148770?v=3","gravatar_id":"","url":"https://api.github.com/users/yosukehara","html_url":"https://github.com/yosukehara","followers_url":"https://api.github.com/users/yosukehara/followers","following_url":"https://api.github.com/users/yosukehara/following{/other_user}","gists_url":"https://api.github.com/users/yosukehara/gists{/gist_id}","starred_url":"https://api.github.com/users/yosukehara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yosukehara/subscriptions","organizations_url":"https://api.github.com/users/yosukehara/orgs","repos_url":"https://api.github.com/users/yosukehara/repos","events_url":"https://api.github.com/users/yosukehara/events{/privacy}","received_events_url":"https://api.github.com/users/yosukehara/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":17,"state":"open","created_at":"2016-01-28T08:07:41Z","updated_at":"2016-03-18T06:53:49Z","due_on":"2016-03-16T15:00:00Z","closed_at":null},"comments":0,"created_at":"2016-03-17T09:37:10Z","updated_at":"2016-03-18T06:53:49Z","closed_at":"2016-03-18T06:53:49Z","body":"I've found an incorrect ring via ``leofs-adm`` after executing the takeover, state of which is that a new node, ``storage_3@127.0.0.1`` did not include a ring and only detached ``storage_0@127.0.0.1``.\r\n\r\n```bash\r\n### Before doing takeover node\r\n$ ./leofs-adm status\r\n [System Confiuration]\r\n-----------------------------------+----------\r\n Item                              | Value\r\n-----------------------------------+----------\r\n Basic/Consistency level\r\n-----------------------------------+----------\r\n                    system version | 1.2.20\r\n                        cluster Id | leofs_1\r\n                             DC Id | dc_1\r\n                    Total replicas | 2\r\n          number of successes of R | 1\r\n          number of successes of W | 1\r\n          number of successes of D | 1\r\n number of rack-awareness replicas | 0\r\n                         ring size | 2^128\r\n-----------------------------------+----------\r\n Multi DC replication settings\r\n-----------------------------------+----------\r\n        max number of joinable DCs | 2\r\n           number of replicas a DC | 1\r\n-----------------------------------+----------\r\n Manager RING hash\r\n-----------------------------------+----------\r\n                 current ring-hash | d5d667a6\r\n                previous ring-hash | d5d667a6\r\n-----------------------------------+----------\r\n\r\n [State of Node(s)]\r\n-------+--------------------------+--------------+----------------+----------------+----------------------------\r\n type  |           node           |    state     |  current ring  |   prev ring    |          updated at\r\n-------+--------------------------+--------------+----------------+----------------+----------------------------\r\n  S    | storage_0@127.0.0.1      | detached     | d5d667a6       | d5d667a6       | 2016-03-17 18:26:04 +0900\r\n  S    | storage_1@127.0.0.1      | running      | d5d667a6       | d5d667a6       | 2016-03-17 18:24:57 +0900\r\n  S    | storage_2@127.0.0.1      | running      | d5d667a6       | d5d667a6       | 2016-03-17 18:24:56 +0900\r\n  S    | storage_3@127.0.0.1      | attached     |                |                | 2016-03-17 18:26:31 +0900\r\n  G    | gateway_0@127.0.0.1      | running      | d5d667a6       | d5d667a6       | 2016-03-17 18:25:11 +0900\r\n-------+--------------------------+--------------+----------------+----------------+----------------------------\r\n\r\n\r\n$ ./leofs-adm rebalance\r\nGenerating rebalance-list...\r\nGenerated rebalance-list\r\nDistributing rebalance-list to the storage nodes\r\nOK  50% - storage_1@127.0.0.1\r\nOK 100% - storage_2@127.0.0.1\r\nOK\r\n\r\n\r\n### After doing takeover node\r\n$ ./leofs-adm status\r\n [System Confiuration]\r\n-----------------------------------+----------\r\n Item                              | Value\r\n-----------------------------------+----------\r\n Basic/Consistency level\r\n-----------------------------------+----------\r\n                    system version | 1.2.20\r\n                        cluster Id | leofs_1\r\n                             DC Id | dc_1\r\n                    Total replicas | 2\r\n          number of successes of R | 1\r\n          number of successes of W | 1\r\n          number of successes of D | 1\r\n number of rack-awareness replicas | 0\r\n                         ring size | 2^128\r\n-----------------------------------+----------\r\n Multi DC replication settings\r\n-----------------------------------+----------\r\n        max number of joinable DCs | 2\r\n           number of replicas a DC | 1\r\n-----------------------------------+----------\r\n Manager RING hash\r\n-----------------------------------+----------\r\n                 current ring-hash | 4f66201d\r\n                previous ring-hash | 0364701d\r\n-----------------------------------+----------\r\n\r\n [State of Node(s)]\r\n-------+--------------------------+--------------+----------------+----------------+----------------------------\r\n type  |           node           |    state     |  current ring  |   prev ring    |          updated at\r\n-------+--------------------------+--------------+----------------+----------------+----------------------------\r\n  S    | storage_1@127.0.0.1      | running      | 2a6ffd2d       | 60a975d6       | 2016-03-17 18:24:57 +0900\r\n  S    | storage_2@127.0.0.1      | running      | 2a6ffd2d       | 60a975d6       | 2016-03-17 18:24:56 +0900\r\n  S    | storage_3@127.0.0.1      | running      | 2a6ffd2d       | 60a975d6       | 2016-03-17 18:26:43 +0900\r\n  G    | gateway_0@127.0.0.1      | running      | 2a6ffd2d       | 60a975d6       | 2016-03-17 18:25:11 +0900\r\n-------+--------------------------+--------------+----------------+----------------+----------------------------\r\n```"}}