{"action":"created","issue":{"url":"https://api.github.com/repos/openvstorage/framework/issues/1233","repository_url":"https://api.github.com/repos/openvstorage/framework","labels_url":"https://api.github.com/repos/openvstorage/framework/issues/1233/labels{/name}","comments_url":"https://api.github.com/repos/openvstorage/framework/issues/1233/comments","events_url":"https://api.github.com/repos/openvstorage/framework/issues/1233/events","html_url":"https://github.com/openvstorage/framework/issues/1233","id":192891684,"number":1233,"title":"Regular sync of volumes on StorageDriver and in model","user":{"login":"khenderick","id":1453214,"avatar_url":"https://avatars.githubusercontent.com/u/1453214?v=3","gravatar_id":"","url":"https://api.github.com/users/khenderick","html_url":"https://github.com/khenderick","followers_url":"https://api.github.com/users/khenderick/followers","following_url":"https://api.github.com/users/khenderick/following{/other_user}","gists_url":"https://api.github.com/users/khenderick/gists{/gist_id}","starred_url":"https://api.github.com/users/khenderick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/khenderick/subscriptions","organizations_url":"https://api.github.com/users/khenderick/orgs","repos_url":"https://api.github.com/users/khenderick/repos","events_url":"https://api.github.com/users/khenderick/events{/privacy}","received_events_url":"https://api.github.com/users/khenderick/received_events","type":"User","site_admin":false},"labels":[{"id":422431201,"url":"https://api.github.com/repos/openvstorage/framework/labels/type_enhancement","name":"type_enhancement","color":"fef2c0","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/openvstorage/framework/milestones/7","html_url":"https://github.com/openvstorage/framework/milestones/Gilbert","labels_url":"https://api.github.com/repos/openvstorage/framework/milestones/7/labels","id":1969369,"number":7,"title":"Gilbert","description":"","creator":{"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},"open_issues":19,"closed_issues":0,"state":"open","created_at":"2016-08-29T11:25:40Z","updated_at":"2016-12-05T12:55:58Z","due_on":"2017-01-15T00:00:00Z","closed_at":null},"comments":3,"created_at":"2016-12-01T16:17:59Z","updated_at":"2016-12-05T13:04:14Z","closed_at":null,"body":"For some reasons (e.g. missed events due to RabbitMQ glitches) can cause the framework's model to be out of sync with reality. It shouldn't be too hard to write a small scripts that syncs both and runs every hour or so."},"comment":{"url":"https://api.github.com/repos/openvstorage/framework/issues/comments/264848840","html_url":"https://github.com/openvstorage/framework/issues/1233#issuecomment-264848840","issue_url":"https://api.github.com/repos/openvstorage/framework/issues/1233","id":264848840,"user":{"login":"khenderick","id":1453214,"avatar_url":"https://avatars.githubusercontent.com/u/1453214?v=3","gravatar_id":"","url":"https://api.github.com/users/khenderick","html_url":"https://github.com/khenderick","followers_url":"https://api.github.com/users/khenderick/followers","following_url":"https://api.github.com/users/khenderick/following{/other_user}","gists_url":"https://api.github.com/users/khenderick/gists{/gist_id}","starred_url":"https://api.github.com/users/khenderick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/khenderick/subscriptions","organizations_url":"https://api.github.com/users/khenderick/orgs","repos_url":"https://api.github.com/users/khenderick/repos","events_url":"https://api.github.com/users/khenderick/events{/privacy}","received_events_url":"https://api.github.com/users/khenderick/received_events","type":"User","site_admin":false},"created_at":"2016-12-05T13:04:14Z","updated_at":"2016-12-05T13:04:14Z","body":"@wimpers, why would we not want to do this automatically? The reality is source of truth, so we just make sure that the model is in sync with reality. It does not make sense to not add a volume to the model if it exists in reality (in volumedriver), and it does not make sense to keep a volume in the model if it doesn't exist in reality. The \"check\" would run locked so we don't introduce sync issues (it's not much different than processing volumedriver events), and even if somehow we got some race condition, it will be fixed at next run. Syncing the model doesn't do anything, just makes sure that the framework knows what is reality.\r\n\r\nI don't know, but I don't think Ops would like to be called in the middle of the night to press a button manually because some volume didn't end up in the model for whatever reason while the framework could do this automatically."}}
{"actor":{"display_login":"khenderick"}}