{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/44235","repository_url":"https://api.github.com/repos/ansible/ansible","labels_url":"https://api.github.com/repos/ansible/ansible/issues/44235/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/44235/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/44235/events","html_url":"https://github.com/ansible/ansible/pull/44235","id":351016393,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA4NzE4MzQ3","number":44235,"title":"vg_exim.py","user":{"login":"cocampbe","id":2211329,"node_id":"MDQ6VXNlcjIyMTEzMjk=","avatar_url":"https://avatars1.githubusercontent.com/u/2211329?v=4","gravatar_id":"","url":"https://api.github.com/users/cocampbe","html_url":"https://github.com/cocampbe","followers_url":"https://api.github.com/users/cocampbe/followers","following_url":"https://api.github.com/users/cocampbe/following{/other_user}","gists_url":"https://api.github.com/users/cocampbe/gists{/gist_id}","starred_url":"https://api.github.com/users/cocampbe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cocampbe/subscriptions","organizations_url":"https://api.github.com/users/cocampbe/orgs","repos_url":"https://api.github.com/users/cocampbe/repos","events_url":"https://api.github.com/users/cocampbe/events{/privacy}","received_events_url":"https://api.github.com/users/cocampbe/received_events","type":"User","site_admin":false},"labels":[{"id":947190508,"node_id":"MDU6TGFiZWw5NDcxOTA1MDg=","url":"https://api.github.com/repos/ansible/ansible/labels/affects_2.7","name":"affects_2.7","color":"ededed","default":false},{"id":501518759,"node_id":"MDU6TGFiZWw1MDE1MTg3NTk=","url":"https://api.github.com/repos/ansible/ansible/labels/community_review","name":"community_review","color":"f9d0c4","default":false},{"id":852590921,"node_id":"MDU6TGFiZWw4NTI1OTA5MjE=","url":"https://api.github.com/repos/ansible/ansible/labels/feature","name":"feature","color":"006b75","default":false},{"id":496359346,"node_id":"MDU6TGFiZWw0OTYzNTkzNDY=","url":"https://api.github.com/repos/ansible/ansible/labels/module","name":"module","color":"1d76db","default":false},{"id":723150340,"node_id":"MDU6TGFiZWw3MjMxNTAzNDA=","url":"https://api.github.com/repos/ansible/ansible/labels/new_contributor","name":"new_contributor","color":"c2e0c6","default":false},{"id":473225334,"node_id":"MDU6TGFiZWw0NzMyMjUzMzQ=","url":"https://api.github.com/repos/ansible/ansible/labels/new_module","name":"new_module","color":"c2e0c6","default":false},{"id":153577825,"node_id":"MDU6TGFiZWwxNTM1Nzc4MjU=","url":"https://api.github.com/repos/ansible/ansible/labels/new_plugin","name":"new_plugin","color":"bfe5bf","default":false},{"id":636327968,"node_id":"MDU6TGFiZWw2MzYzMjc5Njg=","url":"https://api.github.com/repos/ansible/ansible/labels/support:community","name":"support:community","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":16,"created_at":"2018-08-16T00:46:14Z","updated_at":"2018-08-31T01:10:09Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/ansible/ansible/pulls/44235","html_url":"https://github.com/ansible/ansible/pull/44235","diff_url":"https://github.com/ansible/ansible/pull/44235.diff","patch_url":"https://github.com/ansible/ansible/pull/44235.patch"},"body":"module to export/import LVM Volume Groups. Tested on EL7 and EL6.\r\n\r\n##### SUMMARY\r\nI really needed a module to import and export volume groups. I do this pretty regularly. Using the shell module to run vgimport and vgexport and trying to make it idempotent is not feasible. This module allows you to import/export a vg. It is idompotent. It will also fail if the vg does not exist. \r\n\r\n##### ISSUE TYPE\r\n - Feature Pull Request\r\n - Enhancement\r\n\r\n##### COMPONENT NAME\r\nvg_exim.py\r\n\r\n##### ANSIBLE VERSION\r\n<!--- Paste verbatim output from \"ansible --version\" between quotes below -->\r\n```\r\nansible 2.5.2\r\n  config file = /etc/ansible/ansible.cfg\r\n  configured module search path = [u'/etc/ansible/library']\r\n  ansible python module location = /usr/lib/python2.7/site-packages/ansible\r\n  executable location = /usr/bin/ansible\r\n  python version = 2.7.5 (default, Jul  3 2018, 06:28:28) [GCC 4.8.5 20150623 (Red Hat 4.8.5-28.0.1)]\r\n\r\n```\r\n\r\n\r\n##### ADDITIONAL INFORMATION\r\nThis is an enhancement. The module is useful for having a VG in the desired import/export state. \r\n\r\n<!--- Paste verbatim command output below, e.g. before and after your change -->\r\n```\r\nTASK [export vg] *********************************************************************************************************************************************\r\nchanged: [server1]\r\n\r\nTASK [import vg] *********************************************************************************************************************************************\r\nchanged: [server1]\r\n\r\nTASK [export vg -  this should fail] *************************************************************************************************************************\r\nfatal: [server1]: FAILED! => {\"changed\": false, \"err\": \"  Volume group \\\"vgtest\\\" not found\\n  Cannot process volume group vgtest\\n\", \"msg\": \"Failed executing vgs command.\", \"rc\": 5}\r\n\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/ansible/ansible/issues/comments/417517255","html_url":"https://github.com/ansible/ansible/pull/44235#issuecomment-417517255","issue_url":"https://api.github.com/repos/ansible/ansible/issues/44235","id":417517255,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNzUxNzI1NQ==","user":{"login":"cocampbe","id":2211329,"node_id":"MDQ6VXNlcjIyMTEzMjk=","avatar_url":"https://avatars1.githubusercontent.com/u/2211329?v=4","gravatar_id":"","url":"https://api.github.com/users/cocampbe","html_url":"https://github.com/cocampbe","followers_url":"https://api.github.com/users/cocampbe/followers","following_url":"https://api.github.com/users/cocampbe/following{/other_user}","gists_url":"https://api.github.com/users/cocampbe/gists{/gist_id}","starred_url":"https://api.github.com/users/cocampbe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cocampbe/subscriptions","organizations_url":"https://api.github.com/users/cocampbe/orgs","repos_url":"https://api.github.com/users/cocampbe/repos","events_url":"https://api.github.com/users/cocampbe/events{/privacy}","received_events_url":"https://api.github.com/users/cocampbe/received_events","type":"User","site_admin":false},"created_at":"2018-08-31T01:10:09Z","updated_at":"2018-08-31T01:10:09Z","author_association":"NONE","body":"I thought on it for a while before I named it. I was hoping the vg before exim, would suffice. I can reame it to vg_expimp, or vg_exp_imp if that works.  "}}
{"actor":{"display_login":"cocampbe"}}