{"action":"created","issue":{"url":"https://api.github.com/repos/openvstorage/framework/issues/1048","repository_url":"https://api.github.com/repos/openvstorage/framework","labels_url":"https://api.github.com/repos/openvstorage/framework/issues/1048/labels{/name}","comments_url":"https://api.github.com/repos/openvstorage/framework/issues/1048/comments","events_url":"https://api.github.com/repos/openvstorage/framework/issues/1048/events","html_url":"https://github.com/openvstorage/framework/issues/1048","id":183402669,"number":1048,"title":"Evacuate storage router per vpool","user":{"login":"wimpers","id":8392927,"avatar_url":"https://avatars.githubusercontent.com/u/8392927?v=3","gravatar_id":"","url":"https://api.github.com/users/wimpers","html_url":"https://github.com/wimpers","followers_url":"https://api.github.com/users/wimpers/followers","following_url":"https://api.github.com/users/wimpers/following{/other_user}","gists_url":"https://api.github.com/users/wimpers/gists{/gist_id}","starred_url":"https://api.github.com/users/wimpers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wimpers/subscriptions","organizations_url":"https://api.github.com/users/wimpers/orgs","repos_url":"https://api.github.com/users/wimpers/repos","events_url":"https://api.github.com/users/wimpers/events{/privacy}","received_events_url":"https://api.github.com/users/wimpers/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-17T12:28:21Z","updated_at":"2016-10-24T07:23:52Z","closed_at":null,"body":"As part of Fargo we added the option to move volumes away from a node/storagedriver to another node.\r\n\r\nIf you want to update or remove a node with a storagedriver it can be quite a task to move all volumes. hence let's introduce a maintenance mode\r\n\r\n- API \r\n - vdisksMoveAway()\r\n   - on storagedriver, moves the vDisks away to other storage drivers\r\n    - parameters\r\n      - dict of storage drivers where to move the volumes to (default all storagedrivers serving the vpool)\r\n      - how to move the volumes (currently 1 option: roundrobin)\r\n    - returns taskid\r\n  - vdisksMoveBack()\r\n    - on storagedriver, moves the vDisks back the storage driver \r\n    - parameters\r\n      - Dict of vDisks\r\n    - returns taskid\r\n - setMaintance()\r\n    - Moves all vDisks away, moves as DTL targets away, moves all MDS away. Set a flag so you can't create new vDisks on the storagedriver. Once everything is moved set the status of the storage driver to maintenance  (while moving all away status is \"going into maintenance\")\r\n    - parameters\r\n      - state: boolean\r\n - checkState()\r\n   - to check if a storagedriver is in maintenance\r\n\r\n- GUI \r\n - on the the storage router detail page, add an action Maintenance (call the setmaintenance api for each vpool exposed on the storage router). Icon: http://fontawesome.io/icon/cogs/ .\r\n - When in maintenance mode status of storage router should be in orange and clearly labelled on the detail page.\r\n \r\nQuestion:\r\n- maybe add domain as parameter to limit the selected storage drivers to a certain domain?\r\n- Should we introduce something on the voldrv?\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/openvstorage/framework/issues/comments/255666336","html_url":"https://github.com/openvstorage/framework/issues/1048#issuecomment-255666336","issue_url":"https://api.github.com/repos/openvstorage/framework/issues/1048","id":255666336,"user":{"login":"saelbrec","id":12733895,"avatar_url":"https://avatars.githubusercontent.com/u/12733895?v=3","gravatar_id":"","url":"https://api.github.com/users/saelbrec","html_url":"https://github.com/saelbrec","followers_url":"https://api.github.com/users/saelbrec/followers","following_url":"https://api.github.com/users/saelbrec/following{/other_user}","gists_url":"https://api.github.com/users/saelbrec/gists{/gist_id}","starred_url":"https://api.github.com/users/saelbrec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saelbrec/subscriptions","organizations_url":"https://api.github.com/users/saelbrec/orgs","repos_url":"https://api.github.com/users/saelbrec/repos","events_url":"https://api.github.com/users/saelbrec/events{/privacy}","received_events_url":"https://api.github.com/users/saelbrec/received_events","type":"User","site_admin":false},"created_at":"2016-10-24T07:23:52Z","updated_at":"2016-10-24T07:23:52Z","body":"Volumedriver indeed needs to know the maintenance state as well, as actions coming in via the Edge client(create of empty disk, qemu import image, HA, ...)  are not controlled by the FWK and these need to be blocked also."}}
{"actor":{"display_login":"saelbrec"}}