{"action":"opened","issue":{"url":"https://api.github.com/repos/QubesOS/qubes-issues/issues/1074","labels_url":"https://api.github.com/repos/QubesOS/qubes-issues/issues/1074/labels{/name}","comments_url":"https://api.github.com/repos/QubesOS/qubes-issues/issues/1074/comments","events_url":"https://api.github.com/repos/QubesOS/qubes-issues/issues/1074/events","html_url":"https://github.com/QubesOS/qubes-issues/issues/1074","id":96225301,"number":1074,"title":"qvm-block not recognizing that a certain VM is running","user":{"login":"fowlslegs","id":3538418,"avatar_url":"https://avatars.githubusercontent.com/u/3538418?v=3","gravatar_id":"","url":"https://api.github.com/users/fowlslegs","html_url":"https://github.com/fowlslegs","followers_url":"https://api.github.com/users/fowlslegs/followers","following_url":"https://api.github.com/users/fowlslegs/following{/other_user}","gists_url":"https://api.github.com/users/fowlslegs/gists{/gist_id}","starred_url":"https://api.github.com/users/fowlslegs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fowlslegs/subscriptions","organizations_url":"https://api.github.com/users/fowlslegs/orgs","repos_url":"https://api.github.com/users/fowlslegs/repos","events_url":"https://api.github.com/users/fowlslegs/events{/privacy}","received_events_url":"https://api.github.com/users/fowlslegs/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-21T04:43:24Z","updated_at":"2015-07-21T04:43:24Z","closed_at":null,"body":"I'm sometimes unable to attach block devices, at the end of this traceback it's being reported that the research VM is not running, however, it is and is being recognized as being started by qvm-ls as well.\r\n\r\n    [ringminusone@dom0 ~]$ qvm-block -a research dom0:sdb1\r\n    Traceback (most recent call last):\r\n      File \"/usr/bin/qvm-block\", line 151, in <module>\r\n        main()\r\n      File \"/usr/bin/qvm-block\", line 105, in main\r\n        block_attach(qvm_collection, vm, dev, **kwargs)\r\n      File \"/usr/lib64/python2.7/site-packages/qubes/qubesutils.py\", line 408, in block_attach\r\n        block_detach(attached_vm['vm'], attached_vm['frontend'])\r\n      File \"/usr/lib64/python2.7/site-packages/qubes/qubesutils.py\", line 446, in block_detach\r\n        vm.libvirt_domain.detachDevice(etree.tostring(disk, encoding='utf-8'))\r\n      File \"/usr/lib64/python2.7/site-packages/libvirt.py\", line 1095, in detachDevice\r\n        if ret == -1: raise libvirtError ('virDomainDetachDevice() failed', dom=self)\r\n    libvirt.libvirtError: Requested operation is not valid: Domain is not running"}}