{"action":"created","issue":{"url":"https://api.github.com/repos/kata-containers/runtime/issues/606","repository_url":"https://api.github.com/repos/kata-containers/runtime","labels_url":"https://api.github.com/repos/kata-containers/runtime/issues/606/labels{/name}","comments_url":"https://api.github.com/repos/kata-containers/runtime/issues/606/comments","events_url":"https://api.github.com/repos/kata-containers/runtime/issues/606/events","html_url":"https://github.com/kata-containers/runtime/issues/606","id":351747434,"node_id":"MDU6SXNzdWUzNTE3NDc0MzQ=","number":606,"title":"Running a privileged container with devicemapper fails","user":{"login":"amshinde","id":7132811,"node_id":"MDQ6VXNlcjcxMzI4MTE=","avatar_url":"https://avatars0.githubusercontent.com/u/7132811?v=4","gravatar_id":"","url":"https://api.github.com/users/amshinde","html_url":"https://github.com/amshinde","followers_url":"https://api.github.com/users/amshinde/followers","following_url":"https://api.github.com/users/amshinde/following{/other_user}","gists_url":"https://api.github.com/users/amshinde/gists{/gist_id}","starred_url":"https://api.github.com/users/amshinde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amshinde/subscriptions","organizations_url":"https://api.github.com/users/amshinde/orgs","repos_url":"https://api.github.com/users/amshinde/repos","events_url":"https://api.github.com/users/amshinde/events{/privacy}","received_events_url":"https://api.github.com/users/amshinde/received_events","type":"User","site_admin":false},"labels":[{"id":837054292,"node_id":"MDU6TGFiZWw4MzcwNTQyOTI=","url":"https://api.github.com/repos/kata-containers/runtime/labels/review","name":"review","color":"ededed","default":false}],"state":"open","locked":false,"assignee":{"login":"amshinde","id":7132811,"node_id":"MDQ6VXNlcjcxMzI4MTE=","avatar_url":"https://avatars0.githubusercontent.com/u/7132811?v=4","gravatar_id":"","url":"https://api.github.com/users/amshinde","html_url":"https://github.com/amshinde","followers_url":"https://api.github.com/users/amshinde/followers","following_url":"https://api.github.com/users/amshinde/following{/other_user}","gists_url":"https://api.github.com/users/amshinde/gists{/gist_id}","starred_url":"https://api.github.com/users/amshinde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amshinde/subscriptions","organizations_url":"https://api.github.com/users/amshinde/orgs","repos_url":"https://api.github.com/users/amshinde/repos","events_url":"https://api.github.com/users/amshinde/events{/privacy}","received_events_url":"https://api.github.com/users/amshinde/received_events","type":"User","site_admin":false},"assignees":[{"login":"amshinde","id":7132811,"node_id":"MDQ6VXNlcjcxMzI4MTE=","avatar_url":"https://avatars0.githubusercontent.com/u/7132811?v=4","gravatar_id":"","url":"https://api.github.com/users/amshinde","html_url":"https://github.com/amshinde","followers_url":"https://api.github.com/users/amshinde/followers","following_url":"https://api.github.com/users/amshinde/following{/other_user}","gists_url":"https://api.github.com/users/amshinde/gists{/gist_id}","starred_url":"https://api.github.com/users/amshinde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amshinde/subscriptions","organizations_url":"https://api.github.com/users/amshinde/orgs","repos_url":"https://api.github.com/users/amshinde/repos","events_url":"https://api.github.com/users/amshinde/events{/privacy}","received_events_url":"https://api.github.com/users/amshinde/received_events","type":"User","site_admin":false}],"milestone":null,"comments":4,"created_at":"2018-08-17T21:42:07Z","updated_at":"2018-08-21T16:26:40Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"This is because the rootfs device node is passed twice and a change in qemu 2.10 prevents this.\r\nWith qemu 2.10, a write lock was added for qcow images that prevents the same image to be passed more than once.\r\nThis can be over-ridden using the --share-rw option which is desired for raw images.\r\n"},"comment":{"url":"https://api.github.com/repos/kata-containers/runtime/issues/comments/414736035","html_url":"https://github.com/kata-containers/runtime/issues/606#issuecomment-414736035","issue_url":"https://api.github.com/repos/kata-containers/runtime/issues/606","id":414736035,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNDczNjAzNQ==","user":{"login":"amshinde","id":7132811,"node_id":"MDQ6VXNlcjcxMzI4MTE=","avatar_url":"https://avatars0.githubusercontent.com/u/7132811?v=4","gravatar_id":"","url":"https://api.github.com/users/amshinde","html_url":"https://github.com/amshinde","followers_url":"https://api.github.com/users/amshinde/followers","following_url":"https://api.github.com/users/amshinde/following{/other_user}","gists_url":"https://api.github.com/users/amshinde/gists{/gist_id}","starred_url":"https://api.github.com/users/amshinde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amshinde/subscriptions","organizations_url":"https://api.github.com/users/amshinde/orgs","repos_url":"https://api.github.com/users/amshinde/repos","events_url":"https://api.github.com/users/amshinde/events{/privacy}","received_events_url":"https://api.github.com/users/amshinde/received_events","type":"User","site_admin":false},"created_at":"2018-08-21T16:26:40Z","updated_at":"2018-08-21T16:26:40Z","author_association":"CONTRIBUTOR","body":"@bergwolf @WeiZhang555 Yes, I agree that the right way to handle this is to pass the rootfs just once with the use of reference counting.\r\nHowever with qemu 2.10, a lock was introduced to ensure that qcow images are not corrupted with share-rw=on. Since we pass raw images, I dont think we need the locking from qemu. \r\nThis PR addresses that : https://github.com/kata-containers/runtime/pull/607\r\nWhat do you think?\r\n"}}
{"actor":{"display_login":"amshinde"}}