{"action":"closed","number":153,"pull_request":{"url":"https://api.github.com/repos/openSUSE/libstorage/pulls/153","id":48979991,"html_url":"https://github.com/openSUSE/libstorage/pull/153","diff_url":"https://github.com/openSUSE/libstorage/pull/153.diff","patch_url":"https://github.com/openSUSE/libstorage/pull/153.patch","issue_url":"https://api.github.com/repos/openSUSE/libstorage/issues/153","number":153,"state":"closed","locked":false,"title":"Repeat btrfs detection when a race condition is detected (bsc#948247)","user":{"login":"lslezak","id":907998,"avatar_url":"https://avatars.githubusercontent.com/u/907998?v=3","gravatar_id":"","url":"https://api.github.com/users/lslezak","html_url":"https://github.com/lslezak","followers_url":"https://api.github.com/users/lslezak/followers","following_url":"https://api.github.com/users/lslezak/following{/other_user}","gists_url":"https://api.github.com/users/lslezak/gists{/gist_id}","starred_url":"https://api.github.com/users/lslezak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lslezak/subscriptions","organizations_url":"https://api.github.com/users/lslezak/orgs","repos_url":"https://api.github.com/users/lslezak/repos","events_url":"https://api.github.com/users/lslezak/events{/privacy}","received_events_url":"https://api.github.com/users/lslezak/received_events","type":"User","site_admin":false},"body":"- 2.25.35\r\n\r\nTested with a fake `btrfs` command which simulates the race condition in [bsc#948247](https://bugzilla.suse.com/show_bug.cgi?id=948247) and then succeeds:\r\n\r\n    #! /usr/bin/env ruby\r\n\r\n    require \"yaml\"\r\n\r\n    FILE = \"attempt.yml\"\r\n    SUCCESS = 3\r\n    a = YAML.load_file(FILE) rescue 0\r\n\r\n    exit 0 if a == SUCCESS\r\n\r\n    a += 1\r\n    File.write FILE, a.to_yaml\r\n\r\n    $stderr.puts \"No such file or directory\"\r\n    exit 1\r\n\r\nA GMC fix is preferred, [see this comment](https://bugzilla.suse.com/show_bug.cgi?id=948247#c16).\r\n\r\n### Note\r\nFeel free to improve the PR...","created_at":"2015-10-28T09:13:42Z","updated_at":"2015-10-28T09:27:18Z","closed_at":"2015-10-28T09:27:18Z","merged_at":"2015-10-28T09:27:18Z","merge_commit_sha":"bd3a500a5ac58d545a654c398c62fdbfd546b5d1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/openSUSE/libstorage/pulls/153/commits","review_comments_url":"https://api.github.com/repos/openSUSE/libstorage/pulls/153/comments","review_comment_url":"https://api.github.com/repos/openSUSE/libstorage/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openSUSE/libstorage/issues/153/comments","statuses_url":"https://api.github.com/repos/openSUSE/libstorage/statuses/6199865b7ecbba56e76fd3cd0a517c070347371b","head":{"label":"openSUSE:btrfs_race_condition_bsc948247","ref":"btrfs_race_condition_bsc948247","sha":"6199865b7ecbba56e76fd3cd0a517c070347371b","user":{"login":"openSUSE","id":623819,"avatar_url":"https://avatars.githubusercontent.com/u/623819?v=3","gravatar_id":"","url":"https://api.github.com/users/openSUSE","html_url":"https://github.com/openSUSE","followers_url":"https://api.github.com/users/openSUSE/followers","following_url":"https://api.github.com/users/openSUSE/following{/other_user}","gists_url":"https://api.github.com/users/openSUSE/gists{/gist_id}","starred_url":"https://api.github.com/users/openSUSE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openSUSE/subscriptions","organizations_url":"https://api.github.com/users/openSUSE/orgs","repos_url":"https://api.github.com/users/openSUSE/repos","events_url":"https://api.github.com/users/openSUSE/events{/privacy}","received_events_url":"https://api.github.com/users/openSUSE/received_events","type":"Organization","site_admin":false},"repo":{"id":4134851,"name":"libstorage","full_name":"openSUSE/libstorage","owner":{"login":"openSUSE","id":623819,"avatar_url":"https://avatars.githubusercontent.com/u/623819?v=3","gravatar_id":"","url":"https://api.github.com/users/openSUSE","html_url":"https://github.com/openSUSE","followers_url":"https://api.github.com/users/openSUSE/followers","following_url":"https://api.github.com/users/openSUSE/following{/other_user}","gists_url":"https://api.github.com/users/openSUSE/gists{/gist_id}","starred_url":"https://api.github.com/users/openSUSE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openSUSE/subscriptions","organizations_url":"https://api.github.com/users/openSUSE/orgs","repos_url":"https://api.github.com/users/openSUSE/repos","events_url":"https://api.github.com/users/openSUSE/events{/privacy}","received_events_url":"https://api.github.com/users/openSUSE/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openSUSE/libstorage","description":"Linux storage management library","fork":false,"url":"https://api.github.com/repos/openSUSE/libstorage","forks_url":"https://api.github.com/repos/openSUSE/libstorage/forks","keys_url":"https://api.github.com/repos/openSUSE/libstorage/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openSUSE/libstorage/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openSUSE/libstorage/teams","hooks_url":"https://api.github.com/repos/openSUSE/libstorage/hooks","issue_events_url":"https://api.github.com/repos/openSUSE/libstorage/issues/events{/number}","events_url":"https://api.github.com/repos/openSUSE/libstorage/events","assignees_url":"https://api.github.com/repos/openSUSE/libstorage/assignees{/user}","branches_url":"https://api.github.com/repos/openSUSE/libstorage/branches{/branch}","tags_url":"https://api.github.com/repos/openSUSE/libstorage/tags","blobs_url":"https://api.github.com/repos/openSUSE/libstorage/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openSUSE/libstorage/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openSUSE/libstorage/git/refs{/sha}","trees_url":"https://api.github.com/repos/openSUSE/libstorage/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openSUSE/libstorage/statuses/{sha}","languages_url":"https://api.github.com/repos/openSUSE/libstorage/languages","stargazers_url":"https://api.github.com/repos/openSUSE/libstorage/stargazers","contributors_url":"https://api.github.com/repos/openSUSE/libstorage/contributors","subscribers_url":"https://api.github.com/repos/openSUSE/libstorage/subscribers","subscription_url":"https://api.github.com/repos/openSUSE/libstorage/subscription","commits_url":"https://api.github.com/repos/openSUSE/libstorage/commits{/sha}","git_commits_url":"https://api.github.com/repos/openSUSE/libstorage/git/commits{/sha}","comments_url":"https://api.github.com/repos/openSUSE/libstorage/comments{/number}","issue_comment_url":"https://api.github.com/repos/openSUSE/libstorage/issues/comments{/number}","contents_url":"https://api.github.com/repos/openSUSE/libstorage/contents/{+path}","compare_url":"https://api.github.com/repos/openSUSE/libstorage/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openSUSE/libstorage/merges","archive_url":"https://api.github.com/repos/openSUSE/libstorage/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openSUSE/libstorage/downloads","issues_url":"https://api.github.com/repos/openSUSE/libstorage/issues{/number}","pulls_url":"https://api.github.com/repos/openSUSE/libstorage/pulls{/number}","milestones_url":"https://api.github.com/repos/openSUSE/libstorage/milestones{/number}","notifications_url":"https://api.github.com/repos/openSUSE/libstorage/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openSUSE/libstorage/labels{/name}","releases_url":"https://api.github.com/repos/openSUSE/libstorage/releases{/id}","created_at":"2012-04-25T09:22:59Z","updated_at":"2015-05-07T13:55:06Z","pushed_at":"2015-10-28T09:27:18Z","git_url":"git://github.com/openSUSE/libstorage.git","ssh_url":"git@github.com:openSUSE/libstorage.git","clone_url":"https://github.com/openSUSE/libstorage.git","svn_url":"https://github.com/openSUSE/libstorage","homepage":null,"size":13257,"stargazers_count":5,"watchers_count":5,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":13,"mirror_url":null,"open_issues_count":6,"forks":13,"open_issues":6,"watchers":5,"default_branch":"master"}},"base":{"label":"openSUSE:master","ref":"master","sha":"8d6699150bf27a92964e981905c7e6142fc47eef","user":{"login":"openSUSE","id":623819,"avatar_url":"https://avatars.githubusercontent.com/u/623819?v=3","gravatar_id":"","url":"https://api.github.com/users/openSUSE","html_url":"https://github.com/openSUSE","followers_url":"https://api.github.com/users/openSUSE/followers","following_url":"https://api.github.com/users/openSUSE/following{/other_user}","gists_url":"https://api.github.com/users/openSUSE/gists{/gist_id}","starred_url":"https://api.github.com/users/openSUSE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openSUSE/subscriptions","organizations_url":"https://api.github.com/users/openSUSE/orgs","repos_url":"https://api.github.com/users/openSUSE/repos","events_url":"https://api.github.com/users/openSUSE/events{/privacy}","received_events_url":"https://api.github.com/users/openSUSE/received_events","type":"Organization","site_admin":false},"repo":{"id":4134851,"name":"libstorage","full_name":"openSUSE/libstorage","owner":{"login":"openSUSE","id":623819,"avatar_url":"https://avatars.githubusercontent.com/u/623819?v=3","gravatar_id":"","url":"https://api.github.com/users/openSUSE","html_url":"https://github.com/openSUSE","followers_url":"https://api.github.com/users/openSUSE/followers","following_url":"https://api.github.com/users/openSUSE/following{/other_user}","gists_url":"https://api.github.com/users/openSUSE/gists{/gist_id}","starred_url":"https://api.github.com/users/openSUSE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openSUSE/subscriptions","organizations_url":"https://api.github.com/users/openSUSE/orgs","repos_url":"https://api.github.com/users/openSUSE/repos","events_url":"https://api.github.com/users/openSUSE/events{/privacy}","received_events_url":"https://api.github.com/users/openSUSE/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openSUSE/libstorage","description":"Linux storage management library","fork":false,"url":"https://api.github.com/repos/openSUSE/libstorage","forks_url":"https://api.github.com/repos/openSUSE/libstorage/forks","keys_url":"https://api.github.com/repos/openSUSE/libstorage/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openSUSE/libstorage/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openSUSE/libstorage/teams","hooks_url":"https://api.github.com/repos/openSUSE/libstorage/hooks","issue_events_url":"https://api.github.com/repos/openSUSE/libstorage/issues/events{/number}","events_url":"https://api.github.com/repos/openSUSE/libstorage/events","assignees_url":"https://api.github.com/repos/openSUSE/libstorage/assignees{/user}","branches_url":"https://api.github.com/repos/openSUSE/libstorage/branches{/branch}","tags_url":"https://api.github.com/repos/openSUSE/libstorage/tags","blobs_url":"https://api.github.com/repos/openSUSE/libstorage/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openSUSE/libstorage/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openSUSE/libstorage/git/refs{/sha}","trees_url":"https://api.github.com/repos/openSUSE/libstorage/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openSUSE/libstorage/statuses/{sha}","languages_url":"https://api.github.com/repos/openSUSE/libstorage/languages","stargazers_url":"https://api.github.com/repos/openSUSE/libstorage/stargazers","contributors_url":"https://api.github.com/repos/openSUSE/libstorage/contributors","subscribers_url":"https://api.github.com/repos/openSUSE/libstorage/subscribers","subscription_url":"https://api.github.com/repos/openSUSE/libstorage/subscription","commits_url":"https://api.github.com/repos/openSUSE/libstorage/commits{/sha}","git_commits_url":"https://api.github.com/repos/openSUSE/libstorage/git/commits{/sha}","comments_url":"https://api.github.com/repos/openSUSE/libstorage/comments{/number}","issue_comment_url":"https://api.github.com/repos/openSUSE/libstorage/issues/comments{/number}","contents_url":"https://api.github.com/repos/openSUSE/libstorage/contents/{+path}","compare_url":"https://api.github.com/repos/openSUSE/libstorage/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openSUSE/libstorage/merges","archive_url":"https://api.github.com/repos/openSUSE/libstorage/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openSUSE/libstorage/downloads","issues_url":"https://api.github.com/repos/openSUSE/libstorage/issues{/number}","pulls_url":"https://api.github.com/repos/openSUSE/libstorage/pulls{/number}","milestones_url":"https://api.github.com/repos/openSUSE/libstorage/milestones{/number}","notifications_url":"https://api.github.com/repos/openSUSE/libstorage/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openSUSE/libstorage/labels{/name}","releases_url":"https://api.github.com/repos/openSUSE/libstorage/releases{/id}","created_at":"2012-04-25T09:22:59Z","updated_at":"2015-05-07T13:55:06Z","pushed_at":"2015-10-28T09:27:18Z","git_url":"git://github.com/openSUSE/libstorage.git","ssh_url":"git@github.com:openSUSE/libstorage.git","clone_url":"https://github.com/openSUSE/libstorage.git","svn_url":"https://github.com/openSUSE/libstorage","homepage":null,"size":13257,"stargazers_count":5,"watchers_count":5,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":13,"mirror_url":null,"open_issues_count":6,"forks":13,"open_issues":6,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openSUSE/libstorage/pulls/153"},"html":{"href":"https://github.com/openSUSE/libstorage/pull/153"},"issue":{"href":"https://api.github.com/repos/openSUSE/libstorage/issues/153"},"comments":{"href":"https://api.github.com/repos/openSUSE/libstorage/issues/153/comments"},"review_comments":{"href":"https://api.github.com/repos/openSUSE/libstorage/pulls/153/comments"},"review_comment":{"href":"https://api.github.com/repos/openSUSE/libstorage/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openSUSE/libstorage/pulls/153/commits"},"statuses":{"href":"https://api.github.com/repos/openSUSE/libstorage/statuses/6199865b7ecbba56e76fd3cd0a517c070347371b"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"shundhammer","id":11538225,"avatar_url":"https://avatars.githubusercontent.com/u/11538225?v=3","gravatar_id":"","url":"https://api.github.com/users/shundhammer","html_url":"https://github.com/shundhammer","followers_url":"https://api.github.com/users/shundhammer/followers","following_url":"https://api.github.com/users/shundhammer/following{/other_user}","gists_url":"https://api.github.com/users/shundhammer/gists{/gist_id}","starred_url":"https://api.github.com/users/shundhammer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shundhammer/subscriptions","organizations_url":"https://api.github.com/users/shundhammer/orgs","repos_url":"https://api.github.com/users/shundhammer/repos","events_url":"https://api.github.com/users/shundhammer/events{/privacy}","received_events_url":"https://api.github.com/users/shundhammer/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":1,"additions":58,"deletions":20,"changed_files":4}}