{"action":"created","comment":{"url":"https://api.github.com/repos/rhevm-qe-automation/python-rrmngmnt/pulls/comments/50082784","id":50082784,"diff_hunk":"@@ -0,0 +1,127 @@\n+import logging\n+import shlex\n+from rrmngmnt.service import Service\n+\n+logger = logging.getLogger(__name__)\n+\n+LV_CHANGE_CMD = 'lvchange -a %s %s/%s'\n+\n+\n+class NFSService(Service):\n+    \"\"\"\n+    Storage management class to maintain NFS services\n+    \"\"\"\n+\n+    def mount(self, source, target=None, opts=None):\n+        \"\"\"\n+        Mounts source to target mount point\n+\n+        __author__ = \"ratamir\"\n+        :param source: Full path to source\n+        :type source: str\n+        :param target: Path to target directory, if it is omitted then\n+        temporary folder is created and it is the responsible of the\n+        caller to remove it at the end\n+        :type target\n+        :param opts: List of options like: ['-t', 'nfs', '-o', 'vers=3']","path":"rrmngmnt/storage.py","position":26,"original_position":26,"commit_id":"6b0359979d5ccb5669af5a11afdb5cd7f2516dba","original_commit_id":"6b0359979d5ccb5669af5a11afdb5cd7f2516dba","user":{"login":"RazTamir","id":16681672,"avatar_url":"https://avatars.githubusercontent.com/u/16681672?v=3","gravatar_id":"","url":"https://api.github.com/users/RazTamir","html_url":"https://github.com/RazTamir","followers_url":"https://api.github.com/users/RazTamir/followers","following_url":"https://api.github.com/users/RazTamir/following{/other_user}","gists_url":"https://api.github.com/users/RazTamir/gists{/gist_id}","starred_url":"https://api.github.com/users/RazTamir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RazTamir/subscriptions","organizations_url":"https://api.github.com/users/RazTamir/orgs","repos_url":"https://api.github.com/users/RazTamir/repos","events_url":"https://api.github.com/users/RazTamir/events{/privacy}","received_events_url":"https://api.github.com/users/RazTamir/received_events","type":"User","site_admin":false},"body":"Done","created_at":"2016-01-19T08:16:47Z","updated_at":"2016-01-19T08:16:47Z","html_url":"https://github.com/rhevm-qe-automation/python-rrmngmnt/pull/6#discussion_r50082784","pull_request_url":"https://api.github.com/repos/rhevm-qe-automation/python-rrmngmnt/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/rhevm-qe-automation/python-rrmngmnt/pulls/comments/50082784"},"html":{"href":"https://github.com/rhevm-qe-automation/python-rrmngmnt/pull/6#discussion_r50082784"},"pull_request":{"href":"https://api.github.com/repos/rhevm-qe-automation/python-rrmngmnt/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/rhevm-qe-automation/python-rrmngmnt/pulls/6","id":56280964,"html_url":"https://github.com/rhevm-qe-automation/python-rrmngmnt/pull/6","diff_url":"https://github.com/rhevm-qe-automation/python-rrmngmnt/pull/6.diff","patch_url":"https://github.com/rhevm-qe-automation/python-rrmngmnt/pull/6.patch","issue_url":"https://api.github.com/repos/rhevm-qe-automation/python-rrmngmnt/issues/6","number":6,"state":"open","locked":false,"title":"Storage: Add storage service to rrmngmnt","user":{"login":"RazTamir","id":16681672,"avatar_url":"https://avatars.githubusercontent.com/u/16681672?v=3","gravatar_id":"","url":"https://api.github.com/users/RazTamir","html_url":"https://github.com/RazTamir","followers_url":"https://api.github.com/users/RazTamir/followers","following_url":"https://api.github.com/users/RazTamir/following{/other_user}","gists_url":"https://api.github.com/users/RazTamir/gists{/gist_id}","starred_url":"https://api.github.com/users/RazTamir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RazTamir/subscriptions","organizations_url":"https://api.github.com/users/RazTamir/orgs","repos_url":"https://api.github.com/users/RazTamir/repos","events_url":"https://api.github.com/users/RazTamir/events{/privacy}","received_events_url":"https://api.github.com/users/RazTamir/received_events","type":"User","site_admin":false},"body":" Add abbility to perform storage related operations","created_at":"2016-01-17T16:12:32Z","updated_at":"2016-01-19T08:16:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"397c171cc9a33821775c2f47f481d9c8820db763","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rhevm-qe-automation/python-rrmngmnt/pulls/6/commits","review_comments_url":"https://api.github.com/repos/rhevm-qe-automation/python-rrmngmnt/pulls/6/comments","review_comment_url":"https://api.github.com/repos/rhevm-qe-automation/python-rrmngmnt/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rhevm-qe-automation/python-rrmngmnt/issues/6/comments","statuses_url":"https://api.github.com/repos/rhevm-qe-automation/python-rrmngmnt/statuses/6b0359979d5ccb5669af5a11afdb5cd7f2516dba","head":{"label":"RazTamir:add_storage_resource_to_rrmngmnt","ref":"add_storage_resource_to_rrmngmnt","sha":"6b0359979d5ccb5669af5a11afdb5cd7f2516dba","user":{"login":"RazTamir","id":16681672,"avatar_url":"https://avatars.githubusercontent.com/u/16681672?v=3","gravatar_id":"","url":"https://api.github.com/users/RazTamir","html_url":"https://github.com/RazTamir","followers_url":"https://api.github.com/users/RazTamir/followers","following_url":"https://api.github.com/users/RazTamir/following{/other_user}","gists_url":"https://api.github.com/users/RazTamir/gists{/gist_id}","starred_url":"https://api.github.com/users/RazTamir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RazTamir/subscriptions","organizations_url":"https://api.github.com/users/RazTamir/orgs","repos_url":"https://api.github.com/users/RazTamir/repos","events_url":"https://api.github.com/users/RazTamir/events{/privacy}","received_events_url":"https://api.github.com/users/RazTamir/received_events","type":"User","site_admin":false},"repo":{"id":49565136,"name":"python-rrmngmnt","full_name":"RazTamir/python-rrmngmnt","owner":{"login":"RazTamir","id":16681672,"avatar_url":"https://avatars.githubusercontent.com/u/16681672?v=3","gravatar_id":"","url":"https://api.github.com/users/RazTamir","html_url":"https://github.com/RazTamir","followers_url":"https://api.github.com/users/RazTamir/followers","following_url":"https://api.github.com/users/RazTamir/following{/other_user}","gists_url":"https://api.github.com/users/RazTamir/gists{/gist_id}","starred_url":"https://api.github.com/users/RazTamir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RazTamir/subscriptions","organizations_url":"https://api.github.com/users/RazTamir/orgs","repos_url":"https://api.github.com/users/RazTamir/repos","events_url":"https://api.github.com/users/RazTamir/events{/privacy}","received_events_url":"https://api.github.com/users/RazTamir/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/RazTamir/python-rrmngmnt","description":"REmote REsources MaNaGeMeNT","fork":true,"url":"https://api.github.com/repos/RazTamir/python-rrmngmnt","forks_url":"https://api.github.com/repos/RazTamir/python-rrmngmnt/forks","keys_url":"https://api.github.com/repos/RazTamir/python-rrmngmnt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RazTamir/python-rrmngmnt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RazTamir/python-rrmngmnt/teams","hooks_url":"https://api.github.com/repos/RazTamir/python-rrmngmnt/hooks","issue_events_url":"https://api.github.com/repos/RazTamir/python-rrmngmnt/issues/events{/number}","events_url":"https://api.github.com/repos/RazTamir/python-rrmngmnt/events","assignees_url":"https://api.github.com/repos/RazTamir/python-rrmngmnt/assignees{/user}","branches_url":"https://api.github.com/repos/RazTamir/python-rrmngmnt/branches{/branch}","tags_url":"https://api.github.com/repos/RazTamir/python-rrmngmnt/tags","blobs_url":"https://api.github.com/repos/RazTamir/python-rrmngmnt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RazTamir/python-rrmngmnt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RazTamir/python-rrmngmnt/git/refs{/sha}","trees_url":"https://api.github.com/repos/RazTamir/python-rrmngmnt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RazTamir/python-rrmngmnt/statuses/{sha}","languages_url":"https://api.github.com/repos/RazTamir/python-rrmngmnt/languages","stargazers_url":"https://api.github.com/repos/RazTamir/python-rrmngmnt/stargazers","contributors_url":"https://api.github.com/repos/RazTamir/python-rrmngmnt/contributors","subscribers_url":"https://api.github.com/repos/RazTamir/python-rrmngmnt/subscribers","subscription_url":"https://api.github.com/repos/RazTamir/python-rrmngmnt/subscription","commits_url":"https://api.github.com/repos/RazTamir/python-rrmngmnt/commits{/sha}","git_commits_url":"https://api.github.com/repos/RazTamir/python-rrmngmnt/git/commits{/sha}","comments_url":"https://api.github.com/repos/RazTamir/python-rrmngmnt/comments{/number}","issue_comment_url":"https://api.github.com/repos/RazTamir/python-rrmngmnt/issues/comments{/number}","contents_url":"https://api.github.com/repos/RazTamir/python-rrmngmnt/contents/{+path}","compare_url":"https://api.github.com/repos/RazTamir/python-rrmngmnt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RazTamir/python-rrmngmnt/merges","archive_url":"https://api.github.com/repos/RazTamir/python-rrmngmnt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RazTamir/python-rrmngmnt/downloads","issues_url":"https://api.github.com/repos/RazTamir/python-rrmngmnt/issues{/number}","pulls_url":"https://api.github.com/repos/RazTamir/python-rrmngmnt/pulls{/number}","milestones_url":"https://api.github.com/repos/RazTamir/python-rrmngmnt/milestones{/number}","notifications_url":"https://api.github.com/repos/RazTamir/python-rrmngmnt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RazTamir/python-rrmngmnt/labels{/name}","releases_url":"https://api.github.com/repos/RazTamir/python-rrmngmnt/releases{/id}","created_at":"2016-01-13T09:54:32Z","updated_at":"2016-01-13T09:54:33Z","pushed_at":"2016-01-18T15:04:05Z","git_url":"git://github.com/RazTamir/python-rrmngmnt.git","ssh_url":"git@github.com:RazTamir/python-rrmngmnt.git","clone_url":"https://github.com/RazTamir/python-rrmngmnt.git","svn_url":"https://github.com/RazTamir/python-rrmngmnt","homepage":null,"size":30,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"rhevm-qe-automation:master","ref":"master","sha":"d969428e35bcdbfa6197ef0f4ad3c1246117033b","user":{"login":"rhevm-qe-automation","id":16609215,"avatar_url":"https://avatars.githubusercontent.com/u/16609215?v=3","gravatar_id":"","url":"https://api.github.com/users/rhevm-qe-automation","html_url":"https://github.com/rhevm-qe-automation","followers_url":"https://api.github.com/users/rhevm-qe-automation/followers","following_url":"https://api.github.com/users/rhevm-qe-automation/following{/other_user}","gists_url":"https://api.github.com/users/rhevm-qe-automation/gists{/gist_id}","starred_url":"https://api.github.com/users/rhevm-qe-automation/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhevm-qe-automation/subscriptions","organizations_url":"https://api.github.com/users/rhevm-qe-automation/orgs","repos_url":"https://api.github.com/users/rhevm-qe-automation/repos","events_url":"https://api.github.com/users/rhevm-qe-automation/events{/privacy}","received_events_url":"https://api.github.com/users/rhevm-qe-automation/received_events","type":"Organization","site_admin":false},"repo":{"id":49424455,"name":"python-rrmngmnt","full_name":"rhevm-qe-automation/python-rrmngmnt","owner":{"login":"rhevm-qe-automation","id":16609215,"avatar_url":"https://avatars.githubusercontent.com/u/16609215?v=3","gravatar_id":"","url":"https://api.github.com/users/rhevm-qe-automation","html_url":"https://github.com/rhevm-qe-automation","followers_url":"https://api.github.com/users/rhevm-qe-automation/followers","following_url":"https://api.github.com/users/rhevm-qe-automation/following{/other_user}","gists_url":"https://api.github.com/users/rhevm-qe-automation/gists{/gist_id}","starred_url":"https://api.github.com/users/rhevm-qe-automation/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhevm-qe-automation/subscriptions","organizations_url":"https://api.github.com/users/rhevm-qe-automation/orgs","repos_url":"https://api.github.com/users/rhevm-qe-automation/repos","events_url":"https://api.github.com/users/rhevm-qe-automation/events{/privacy}","received_events_url":"https://api.github.com/users/rhevm-qe-automation/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rhevm-qe-automation/python-rrmngmnt","description":"REmote REsources MaNaGeMeNT","fork":true,"url":"https://api.github.com/repos/rhevm-qe-automation/python-rrmngmnt","forks_url":"https://api.github.com/repos/rhevm-qe-automation/python-rrmngmnt/forks","keys_url":"https://api.github.com/repos/rhevm-qe-automation/python-rrmngmnt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rhevm-qe-automation/python-rrmngmnt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rhevm-qe-automation/python-rrmngmnt/teams","hooks_url":"https://api.github.com/repos/rhevm-qe-automation/python-rrmngmnt/hooks","issue_events_url":"https://api.github.com/repos/rhevm-qe-automation/python-rrmngmnt/issues/events{/number}","events_url":"https://api.github.com/repos/rhevm-qe-automation/python-rrmngmnt/events","assignees_url":"https://api.github.com/repos/rhevm-qe-automation/python-rrmngmnt/assignees{/user}","branches_url":"https://api.github.com/repos/rhevm-qe-automation/python-rrmngmnt/branches{/branch}","tags_url":"https://api.github.com/repos/rhevm-qe-automation/python-rrmngmnt/tags","blobs_url":"https://api.github.com/repos/rhevm-qe-automation/python-rrmngmnt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rhevm-qe-automation/python-rrmngmnt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rhevm-qe-automation/python-rrmngmnt/git/refs{/sha}","trees_url":"https://api.github.com/repos/rhevm-qe-automation/python-rrmngmnt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rhevm-qe-automation/python-rrmngmnt/statuses/{sha}","languages_url":"https://api.github.com/repos/rhevm-qe-automation/python-rrmngmnt/languages","stargazers_url":"https://api.github.com/repos/rhevm-qe-automation/python-rrmngmnt/stargazers","contributors_url":"https://api.github.com/repos/rhevm-qe-automation/python-rrmngmnt/contributors","subscribers_url":"https://api.github.com/repos/rhevm-qe-automation/python-rrmngmnt/subscribers","subscription_url":"https://api.github.com/repos/rhevm-qe-automation/python-rrmngmnt/subscription","commits_url":"https://api.github.com/repos/rhevm-qe-automation/python-rrmngmnt/commits{/sha}","git_commits_url":"https://api.github.com/repos/rhevm-qe-automation/python-rrmngmnt/git/commits{/sha}","comments_url":"https://api.github.com/repos/rhevm-qe-automation/python-rrmngmnt/comments{/number}","issue_comment_url":"https://api.github.com/repos/rhevm-qe-automation/python-rrmngmnt/issues/comments{/number}","contents_url":"https://api.github.com/repos/rhevm-qe-automation/python-rrmngmnt/contents/{+path}","compare_url":"https://api.github.com/repos/rhevm-qe-automation/python-rrmngmnt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rhevm-qe-automation/python-rrmngmnt/merges","archive_url":"https://api.github.com/repos/rhevm-qe-automation/python-rrmngmnt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rhevm-qe-automation/python-rrmngmnt/downloads","issues_url":"https://api.github.com/repos/rhevm-qe-automation/python-rrmngmnt/issues{/number}","pulls_url":"https://api.github.com/repos/rhevm-qe-automation/python-rrmngmnt/pulls{/number}","milestones_url":"https://api.github.com/repos/rhevm-qe-automation/python-rrmngmnt/milestones{/number}","notifications_url":"https://api.github.com/repos/rhevm-qe-automation/python-rrmngmnt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rhevm-qe-automation/python-rrmngmnt/labels{/name}","releases_url":"https://api.github.com/repos/rhevm-qe-automation/python-rrmngmnt/releases{/id}","created_at":"2016-01-11T12:17:37Z","updated_at":"2016-01-11T12:17:38Z","pushed_at":"2016-01-18T15:10:35Z","git_url":"git://github.com/rhevm-qe-automation/python-rrmngmnt.git","ssh_url":"git@github.com:rhevm-qe-automation/python-rrmngmnt.git","clone_url":"https://github.com/rhevm-qe-automation/python-rrmngmnt.git","svn_url":"https://github.com/rhevm-qe-automation/python-rrmngmnt","homepage":null,"size":39,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":1,"forks":5,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rhevm-qe-automation/python-rrmngmnt/pulls/6"},"html":{"href":"https://github.com/rhevm-qe-automation/python-rrmngmnt/pull/6"},"issue":{"href":"https://api.github.com/repos/rhevm-qe-automation/python-rrmngmnt/issues/6"},"comments":{"href":"https://api.github.com/repos/rhevm-qe-automation/python-rrmngmnt/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/rhevm-qe-automation/python-rrmngmnt/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/rhevm-qe-automation/python-rrmngmnt/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rhevm-qe-automation/python-rrmngmnt/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/rhevm-qe-automation/python-rrmngmnt/statuses/6b0359979d5ccb5669af5a11afdb5cd7f2516dba"}}}}