{"action":"created","issue":{"url":"https://api.github.com/repos/lxc/lxc/issues/406","labels_url":"https://api.github.com/repos/lxc/lxc/issues/406/labels{/name}","comments_url":"https://api.github.com/repos/lxc/lxc/issues/406/comments","events_url":"https://api.github.com/repos/lxc/lxc/issues/406/events","html_url":"https://github.com/lxc/lxc/issues/406","id":54992042,"number":406,"title":"cannot create a centos container on lvm","user":{"login":"ruffianhy","id":10628241,"avatar_url":"https://avatars.githubusercontent.com/u/10628241?v=3","gravatar_id":"","url":"https://api.github.com/users/ruffianhy","html_url":"https://github.com/ruffianhy","followers_url":"https://api.github.com/users/ruffianhy/followers","following_url":"https://api.github.com/users/ruffianhy/following{/other_user}","gists_url":"https://api.github.com/users/ruffianhy/gists{/gist_id}","starred_url":"https://api.github.com/users/ruffianhy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ruffianhy/subscriptions","organizations_url":"https://api.github.com/users/ruffianhy/orgs","repos_url":"https://api.github.com/users/ruffianhy/repos","events_url":"https://api.github.com/users/ruffianhy/events{/privacy}","received_events_url":"https://api.github.com/users/ruffianhy/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/lxc/lxc/labels/Bug","name":"Bug","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-21T08:47:36Z","updated_at":"2015-01-27T20:51:33Z","closed_at":null,"body":"lxc version:1.0.7\r\nI tried to create a lxc on lvm with command:\r\nlxc-create -n mylxc2 -t centos -B lvm\r\nand i got the errors:\r\n\r\nCopy /usr/local/var/cache/lxc/centos/x86_64/6/rootfs to /dev/lxc/mylxc2 ... \r\nCopying rootfs to /dev/lxc/mylxc2 ...mkdir: cannot create directory ‘/dev/lxc/mylxc2’: File exists\r\nrsync: writefd_unbuffered failed to write 4 bytes to socket [sender]: Broken pipe (32)\r\nrsync: ERROR: cannot stat destination \"/dev/lxc/mylxc2/\": Not a directory (20)\r\nrsync error: errors selecting input/output files, dirs (code 3) at main.c(565) [Receiver=3.0.9]\r\nrsync: connection unexpectedly closed (9 bytes received so far) [sender]\r\nrsync error: error in rsync protocol data stream (code 12) at io.c(605) [sender=3.0.9]\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/lxc/lxc/issues/comments/71725304","html_url":"https://github.com/lxc/lxc/issues/406#issuecomment-71725304","issue_url":"https://api.github.com/repos/lxc/lxc/issues/406","id":71725304,"user":{"login":"hallyn","id":1359441,"avatar_url":"https://avatars.githubusercontent.com/u/1359441?v=3","gravatar_id":"","url":"https://api.github.com/users/hallyn","html_url":"https://github.com/hallyn","followers_url":"https://api.github.com/users/hallyn/followers","following_url":"https://api.github.com/users/hallyn/following{/other_user}","gists_url":"https://api.github.com/users/hallyn/gists{/gist_id}","starred_url":"https://api.github.com/users/hallyn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hallyn/subscriptions","organizations_url":"https://api.github.com/users/hallyn/orgs","repos_url":"https://api.github.com/users/hallyn/repos","events_url":"https://api.github.com/users/hallyn/events{/privacy}","received_events_url":"https://api.github.com/users/hallyn/received_events","type":"User","site_admin":false},"created_at":"2015-01-27T20:51:33Z","updated_at":"2015-01-27T20:51:33Z","body":"I think this was discusse don the mailing list.  The problem is the centos template was buggy.  It needs to take the --rootfs passed by lxc-create to the template, NOT the lxc.rootfs from the container configuration file."}}