{"action":"created","issue":{"url":"https://api.github.com/repos/openvstorage/framework/issues/1114","repository_url":"https://api.github.com/repos/openvstorage/framework","labels_url":"https://api.github.com/repos/openvstorage/framework/issues/1114/labels{/name}","comments_url":"https://api.github.com/repos/openvstorage/framework/issues/1114/comments","events_url":"https://api.github.com/repos/openvstorage/framework/issues/1114/events","html_url":"https://github.com/openvstorage/framework/issues/1114","id":186827956,"number":1114,"title":"Fast create & delete of vdisk via api causes leftover data","user":{"login":"kinvaris","id":4190375,"avatar_url":"https://avatars.githubusercontent.com/u/4190375?v=3","gravatar_id":"","url":"https://api.github.com/users/kinvaris","html_url":"https://github.com/kinvaris","followers_url":"https://api.github.com/users/kinvaris/followers","following_url":"https://api.github.com/users/kinvaris/following{/other_user}","gists_url":"https://api.github.com/users/kinvaris/gists{/gist_id}","starred_url":"https://api.github.com/users/kinvaris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kinvaris/subscriptions","organizations_url":"https://api.github.com/users/kinvaris/orgs","repos_url":"https://api.github.com/users/kinvaris/repos","events_url":"https://api.github.com/users/kinvaris/events{/privacy}","received_events_url":"https://api.github.com/users/kinvaris/received_events","type":"User","site_admin":false},"labels":[{"id":361467367,"url":"https://api.github.com/repos/openvstorage/framework/labels/priority_normal","name":"priority_normal","color":"f9d0c4","default":false},{"id":339407574,"url":"https://api.github.com/repos/openvstorage/framework/labels/state_inprogress","name":"state_inprogress","color":"c2e0c6","default":false},{"id":239189394,"url":"https://api.github.com/repos/openvstorage/framework/labels/type_bug","name":"type_bug","color":"fef2c0","default":false}],"state":"open","locked":false,"assignee":{"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},"assignees":[{"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}],"milestone":{"url":"https://api.github.com/repos/openvstorage/framework/milestones/3","html_url":"https://github.com/openvstorage/framework/milestones/Fargo%20RC1","labels_url":"https://api.github.com/repos/openvstorage/framework/milestones/3/labels","id":1817566,"number":3,"title":"Fargo RC1","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":63,"closed_issues":137,"state":"open","created_at":"2016-06-09T12:20:32Z","updated_at":"2016-11-03T13:52:54Z","due_on":"2016-11-04T00:00:00Z","closed_at":null},"comments":2,"created_at":"2016-11-02T15:09:12Z","updated_at":"2016-11-03T14:40:47Z","closed_at":null,"body":"When we looked at the CI tests this morning we saw that although `VDiskController.delete` had not given an error, there was still leftover data in the model of a vdisk.\r\n\r\nYou can easily reproduce it via this piece of code (on a environment where CI is installed):\r\n```\r\nfrom ci.remove.vdisk import VDiskRemover\r\nfrom ci.setup.vdisk import VDiskSetup\r\nfrom ci.helpers.api import OVSClient\r\nimport json\r\n\r\nVDISK_SIZE = 1073741824\r\nCONFIG_LOC = \"/opt/OpenvStorage/ci/config/setup.json\"\r\n\r\nwith open(CONFIG_LOC, \"r\") as JSON_CONFIG:\r\n    config = json.load(JSON_CONFIG)\r\napi = OVSClient(\r\n    config['ci']['grid_ip'],\r\n    config['ci']['user']['api']['username'],\r\n    config['ci']['user']['api']['password']\r\n)\r\n\r\nfor nr in xrange(1000):\r\n    print VDiskSetup.create_vdisk(vdisk_name=\"jonas-testc{0}.raw\".format(nr), vpool_name=\"myvpool01\", size=VDISK_SIZE, storagerouter_ip=\"10.100.199.191\", api=api)\r\n    print VDiskRemover.remove_vdisk_by_name(\"jonas-testc{0}.raw\".format(nr), \"myvpool01\")\r\n```\r\n\r\nAs seen here: \r\n![](https://i.imagebanana.com/img/4sqi66aa/Selection_008.png)"},"comment":{"url":"https://api.github.com/repos/openvstorage/framework/issues/comments/258161382","html_url":"https://github.com/openvstorage/framework/issues/1114#issuecomment-258161382","issue_url":"https://api.github.com/repos/openvstorage/framework/issues/1114","id":258161382,"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-11-03T14:40:47Z","updated_at":"2016-11-03T14:40:47Z","body":"Fixed by #1117, packaged in openvstorage-2.7.4-rev.4258.c9df8b4"}}
{"actor":{"display_login":"khenderick"}}