{"action":"created","issue":{"url":"https://api.github.com/repos/chef-cookbooks/lvm/issues/45","labels_url":"https://api.github.com/repos/chef-cookbooks/lvm/issues/45/labels{/name}","comments_url":"https://api.github.com/repos/chef-cookbooks/lvm/issues/45/comments","events_url":"https://api.github.com/repos/chef-cookbooks/lvm/issues/45/events","html_url":"https://github.com/chef-cookbooks/lvm/issues/45","id":52702738,"number":45,"title":"lvm_volume_group hangs forever reading [y/n] if signature detected on disk","user":{"login":"irvingpop","id":1616328,"avatar_url":"https://avatars.githubusercontent.com/u/1616328?v=3","gravatar_id":"","url":"https://api.github.com/users/irvingpop","html_url":"https://github.com/irvingpop","followers_url":"https://api.github.com/users/irvingpop/followers","following_url":"https://api.github.com/users/irvingpop/following{/other_user}","gists_url":"https://api.github.com/users/irvingpop/gists{/gist_id}","starred_url":"https://api.github.com/users/irvingpop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/irvingpop/subscriptions","organizations_url":"https://api.github.com/users/irvingpop/orgs","repos_url":"https://api.github.com/users/irvingpop/repos","events_url":"https://api.github.com/users/irvingpop/events{/privacy}","received_events_url":"https://api.github.com/users/irvingpop/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/chef-cookbooks/lvm/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2014-12-23T00:17:16Z","updated_at":"2015-11-10T17:17:06Z","closed_at":null,"body":"Testing lvm on RHEL7, it has become pickier:\r\n\r\n```\r\n[root@ip-rh-backend1 ~]# vgcreate opscode  /dev/xvdb\r\nWARNING: ext3 signature detected on /dev/xvdb at offset 1080. Wipe it? [y/n]\r\n```\r\n\r\nUnfortunately in chef-client runs this seems to just hang indefinitely waiting on the input.   I hadn't experienced this previously in RHEL5 or 6, nor Ubuntu 12.04 or 14.04. \r\n\r\nSome possible solutions:\r\n1.  Add a \"force\" method which appends -y to vgcreate\r\n2. Attempt to detect a signature the same way lvm does, and bomb proactively\r\n3. the di-ruby-lvm gem uses passes `raw` along to Open4 without a timeout.   Maybe use shell_out directly instead of lvm.raw?"},"comment":{"url":"https://api.github.com/repos/chef-cookbooks/lvm/issues/comments/155493800","html_url":"https://github.com/chef-cookbooks/lvm/issues/45#issuecomment-155493800","issue_url":"https://api.github.com/repos/chef-cookbooks/lvm/issues/45","id":155493800,"user":{"login":"max-lobur","id":5246026,"avatar_url":"https://avatars.githubusercontent.com/u/5246026?v=3","gravatar_id":"","url":"https://api.github.com/users/max-lobur","html_url":"https://github.com/max-lobur","followers_url":"https://api.github.com/users/max-lobur/followers","following_url":"https://api.github.com/users/max-lobur/following{/other_user}","gists_url":"https://api.github.com/users/max-lobur/gists{/gist_id}","starred_url":"https://api.github.com/users/max-lobur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/max-lobur/subscriptions","organizations_url":"https://api.github.com/users/max-lobur/orgs","repos_url":"https://api.github.com/users/max-lobur/repos","events_url":"https://api.github.com/users/max-lobur/events{/privacy}","received_events_url":"https://api.github.com/users/max-lobur/received_events","type":"User","site_admin":false},"created_at":"2015-11-10T17:17:06Z","updated_at":"2015-11-10T17:17:06Z","body":"@jplinux having same problem on CentOS 7. \" -y -Wy -Zy\" works for me.\r\nI do find -Wy and -Zy meaning, but what is -y? Appreciate the feedback"}}