{"action":"created","issue":{"url":"https://api.github.com/repos/openvstorage/framework-alba-plugin/issues/237","repository_url":"https://api.github.com/repos/openvstorage/framework-alba-plugin","labels_url":"https://api.github.com/repos/openvstorage/framework-alba-plugin/issues/237/labels{/name}","comments_url":"https://api.github.com/repos/openvstorage/framework-alba-plugin/issues/237/comments","events_url":"https://api.github.com/repos/openvstorage/framework-alba-plugin/issues/237/events","html_url":"https://github.com/openvstorage/framework-alba-plugin/issues/237","id":182258667,"number":237,"title":"Set fragment size to 16MB by default instead of 1MB","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":[{"url":"https://api.github.com/repos/openvstorage/framework-alba-plugin/labels/state_verification","name":"state_verification","color":"c2e0c6"},{"url":"https://api.github.com/repos/openvstorage/framework-alba-plugin/labels/type_enhancement","name":"type_enhancement","color":"fef2c0"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/openvstorage/framework-alba-plugin/milestones/1","html_url":"https://github.com/openvstorage/framework-alba-plugin/milestones/Fargo","labels_url":"https://api.github.com/repos/openvstorage/framework-alba-plugin/milestones/1/labels","id":1864886,"number":1,"title":"Fargo","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":14,"closed_issues":14,"state":"open","created_at":"2016-07-05T12:23:18Z","updated_at":"2016-10-17T12:00:50Z","due_on":"2016-10-31T00:00:00Z","closed_at":null},"comments":2,"created_at":"2016-10-11T13:05:41Z","updated_at":"2016-10-19T08:11:04Z","closed_at":null,"body":"Set fragment size to 16MB by default instead of 1MB."},"comment":{"url":"https://api.github.com/repos/openvstorage/framework-alba-plugin/issues/comments/254744054","html_url":"https://github.com/openvstorage/framework-alba-plugin/issues/237#issuecomment-254744054","issue_url":"https://api.github.com/repos/openvstorage/framework-alba-plugin/issues/237","id":254744054,"user":{"login":"JeffreyDevloo","id":17570109,"avatar_url":"https://avatars.githubusercontent.com/u/17570109?v=3","gravatar_id":"","url":"https://api.github.com/users/JeffreyDevloo","html_url":"https://github.com/JeffreyDevloo","followers_url":"https://api.github.com/users/JeffreyDevloo/followers","following_url":"https://api.github.com/users/JeffreyDevloo/following{/other_user}","gists_url":"https://api.github.com/users/JeffreyDevloo/gists{/gist_id}","starred_url":"https://api.github.com/users/JeffreyDevloo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JeffreyDevloo/subscriptions","organizations_url":"https://api.github.com/users/JeffreyDevloo/orgs","repos_url":"https://api.github.com/users/JeffreyDevloo/repos","events_url":"https://api.github.com/users/JeffreyDevloo/events{/privacy}","received_events_url":"https://api.github.com/users/JeffreyDevloo/received_events","type":"User","site_admin":false},"created_at":"2016-10-19T08:11:04Z","updated_at":"2016-10-19T08:11:04Z","body":"### Steps\r\n- Setup cluster\r\n- Added roles to disks\r\n- Added backend\r\n- Added a new preset\r\n- Verified the fragment size\r\n\r\nCode to verify:\r\n```\r\nfrom ovs.dal.lists.albabackendlist import AlbaBackendList\r\n\r\nfaulted_backends = {}\r\nexpected_value = 16 * 1024 ** 2\r\n\r\nfor albabackend in AlbaBackendList.get_albabackends():\r\n    for preset in albabackend.presets:\r\n\r\n        if preset['fragment_size'] != expected_value:\r\n            faulted_backends[albabackend.name] = {preset['name']:preset['fragment_size']}\r\n        else:\r\n            print 'Fragment size is right for preset {0} and albabackend {1}'.format(preset['name'], albabackend.name)\r\n\r\nif len(faulted_backends.keys()) > 0:\r\n    raise ValueError('Fragment sizes are not 16MB by default for presets {0} on backends {1}'.format(''.join(str(faulted_backends.values())), ''.join(faulted_backends.keys())))\r\n\r\n```\r\n\r\n### Output\r\n```\r\nFragment size is right for preset testpreset and albabackend mybackend\r\n---------------------------------------------------------------------------\r\nValueError                                Traceback (most recent call last)\r\n<ipython-input-3-116d80034f59> in <module>()\r\n     13 \r\n     14 if len(faulted_backends.keys()) > 0:\r\n---> 15     raise ValueError('Fragment sizes are not 16MB by default for presets {0} on backends {1}'.format(''.join(str(faulted_backends.values())), ''.join(faulted_backends.keys())))\r\n\r\nValueError: Fragment sizes are not 16MB by default for presets [{'default': 1048576}] on backends mybackend\r\n```\r\nThe fragmentsize for the default preset is still 1MB\r\n\r\n### Test result\r\nTest failed."}}
{"actor":{"display_login":"JeffreyDevloo"}}