{"action":"created","issue":{"url":"https://api.github.com/repos/cockpit-project/cockpit/issues/7471","repository_url":"https://api.github.com/repos/cockpit-project/cockpit","labels_url":"https://api.github.com/repos/cockpit-project/cockpit/issues/7471/labels{/name}","comments_url":"https://api.github.com/repos/cockpit-project/cockpit/issues/7471/comments","events_url":"https://api.github.com/repos/cockpit-project/cockpit/issues/7471/events","html_url":"https://github.com/cockpit-project/cockpit/pull/7471","id":248995213,"number":7471,"title":"WIP: debug non-working inject-nmi","user":{"login":"mareklibra","id":17194943,"avatar_url":"https://avatars2.githubusercontent.com/u/17194943?v=4","gravatar_id":"","url":"https://api.github.com/users/mareklibra","html_url":"https://github.com/mareklibra","followers_url":"https://api.github.com/users/mareklibra/followers","following_url":"https://api.github.com/users/mareklibra/following{/other_user}","gists_url":"https://api.github.com/users/mareklibra/gists{/gist_id}","starred_url":"https://api.github.com/users/mareklibra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mareklibra/subscriptions","organizations_url":"https://api.github.com/users/mareklibra/orgs","repos_url":"https://api.github.com/users/mareklibra/repos","events_url":"https://api.github.com/users/mareklibra/events{/privacy}","received_events_url":"https://api.github.com/users/mareklibra/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-08-09T11:07:33Z","updated_at":"2017-08-09T11:09:21Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/cockpit-project/cockpit/pulls/7471","html_url":"https://github.com/cockpit-project/cockpit/pull/7471","diff_url":"https://github.com/cockpit-project/cockpit/pull/7471.diff","patch_url":"https://github.com/cockpit-project/cockpit/pull/7471.patch"},"body":"Debugging in progress, trying to find root cause of the issue mentioned in [1].\r\n    \r\nFindings:\r\n    \r\n  - `virsh inject-nmi` called directly on machine from `check-machines` (bypasing javascript) **works fine**\r\n  - with recent changes, the flow reaches cockpit.spawn() reliably (logging proves that)\r\n    \r\nTo simplify debugging, following temporar changes are made:\r\n    \r\n  - the `onSendNMI()` on-click handler calls LIBVIRT_PROVIDER.SENDNMI_VM() directly - to bypass redux middleware\r\n  - to demonstrate the issue, I replaced `virsh` call by simple `touch` command (see SENDNMI_VM() in libvirt.es6)\r\n  - cockpit.spawn() call is reached (based on logging)\r\n  - the `touch` is not actually executed. **Why??**\r\n    \r\n`window.debugging='all'` is set (config.es6), showing that cockpit.spawn() hangs\r\n  - `send control` is passed\r\n  - no `recv control` is received\r\n    \r\nIn addition to the hardcoded call simplification made just for debugging, I've further simplified middleware code around getVirtProvider() - no need for such complexity after avoiding external provider API.\r\n    \r\n[1] https://github.com/cockpit-project/cockpit/pull/6722\r\n"},"comment":{"url":"https://api.github.com/repos/cockpit-project/cockpit/issues/comments/321224809","html_url":"https://github.com/cockpit-project/cockpit/pull/7471#issuecomment-321224809","issue_url":"https://api.github.com/repos/cockpit-project/cockpit/issues/7471","id":321224809,"user":{"login":"mareklibra","id":17194943,"avatar_url":"https://avatars2.githubusercontent.com/u/17194943?v=4","gravatar_id":"","url":"https://api.github.com/users/mareklibra","html_url":"https://github.com/mareklibra","followers_url":"https://api.github.com/users/mareklibra/followers","following_url":"https://api.github.com/users/mareklibra/following{/other_user}","gists_url":"https://api.github.com/users/mareklibra/gists{/gist_id}","starred_url":"https://api.github.com/users/mareklibra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mareklibra/subscriptions","organizations_url":"https://api.github.com/users/mareklibra/orgs","repos_url":"https://api.github.com/users/mareklibra/repos","events_url":"https://api.github.com/users/mareklibra/events{/privacy}","received_events_url":"https://api.github.com/users/mareklibra/received_events","type":"User","site_admin":false},"created_at":"2017-08-09T11:09:21Z","updated_at":"2017-08-09T11:09:21Z","body":"TL/DR; Even simple cockpit.spawn(['touch', '/tmp/touch_succeeded'], ...) hangs up\r\n\r\nAny idea why?"}}
{"actor":{"display_login":"mareklibra"}}