{"action":"created","issue":{"url":"https://api.github.com/repos/lxc/lxd/issues/2709","repository_url":"https://api.github.com/repos/lxc/lxd","labels_url":"https://api.github.com/repos/lxc/lxd/issues/2709/labels{/name}","comments_url":"https://api.github.com/repos/lxc/lxd/issues/2709/comments","events_url":"https://api.github.com/repos/lxc/lxd/issues/2709/events","html_url":"https://github.com/lxc/lxd/issues/2709","id":194543768,"number":2709,"title":"Ceph RBD map denied in container","user":{"login":"nlienard","id":13884545,"avatar_url":"https://avatars.githubusercontent.com/u/13884545?v=3","gravatar_id":"","url":"https://api.github.com/users/nlienard","html_url":"https://github.com/nlienard","followers_url":"https://api.github.com/users/nlienard/followers","following_url":"https://api.github.com/users/nlienard/following{/other_user}","gists_url":"https://api.github.com/users/nlienard/gists{/gist_id}","starred_url":"https://api.github.com/users/nlienard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nlienard/subscriptions","organizations_url":"https://api.github.com/users/nlienard/orgs","repos_url":"https://api.github.com/users/nlienard/repos","events_url":"https://api.github.com/users/nlienard/events{/privacy}","received_events_url":"https://api.github.com/users/nlienard/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":15,"created_at":"2016-12-09T08:56:51Z","updated_at":"2016-12-09T10:52:30Z","closed_at":null,"body":"Same env as described in #2670\r\n\r\nWhen trying to map a rbd device inside container; it is denied.\r\n\r\n\r\n    root@inxovh-nfs001:~# rbd --cluster cephA map libvirt-pool/nfs001 --keyring  /    etc/ceph/cephA.client.admin.keyring      \r\n    rbd: sysfs write failed\r\n    In some cases useful info is found in syslog - try \"dmesg | tail\" or so.\r\n    rbd: map failed: (30) Read-only file system\r\n    root@inxovh-nfs001:~#\r\n\r\nAccess to ceph is ok:\r\n\r\n    root@inxovh-nfs001:~# ceph --cluster cephA -s\r\n        cluster 2c1e0b44-b76b-4283-b0cb-0b002698c0b6\r\n         health HEALTH_OK\r\n         monmap e2: 3 mons at {cephA-001=192.168.10.243:6789/0,cephA-002=192.168.10.244:6789/0,cephA-003=192.168.10.245:6789/0}\r\n                election epoch 346, quorum 0,1,2 cephA-001,cephA-002,cephA-003\r\n         osdmap e260: 6 osds: 6 up, 6 in\r\n                 flags sortbitwise\r\n           pgmap v314792: 400 pgs, 2 pools, 3026 MB data, 764 objects\r\n                 45190 MB used, 1557 GB / 1601 GB avail\r\n                      400 active+clean\r\n       client io 1331 B/s rd, 1 op/s rd, 0 op/s wr\r\n\r\n\r\ni can access  to rbd and create device:\r\n\r\n    root@inxovh-nfs001:~# rbd --cluster cephA create -p libvirt-pool test --size 1G\r\n    root@inxovh-nfs001:~#\r\n\r\n    root@inxovh-nfs001:~# rbd --cluster cephA list -p libvirt-pool\r\n    nfs001\r\n    nliovh-vm001\r\n    test\r\n\r\n    root@inxovh-nfs001:~# rbd --cluster cephA rm -p libvirt-pool test\r\n    Removing image: 100% complete...done.\r\n    root@inxovh-nfs001:~#\r\n\r\n\r\nAny clue is welcome.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/lxc/lxd/issues/comments/265986638","html_url":"https://github.com/lxc/lxd/issues/2709#issuecomment-265986638","issue_url":"https://api.github.com/repos/lxc/lxd/issues/2709","id":265986638,"user":{"login":"nlienard","id":13884545,"avatar_url":"https://avatars.githubusercontent.com/u/13884545?v=3","gravatar_id":"","url":"https://api.github.com/users/nlienard","html_url":"https://github.com/nlienard","followers_url":"https://api.github.com/users/nlienard/followers","following_url":"https://api.github.com/users/nlienard/following{/other_user}","gists_url":"https://api.github.com/users/nlienard/gists{/gist_id}","starred_url":"https://api.github.com/users/nlienard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nlienard/subscriptions","organizations_url":"https://api.github.com/users/nlienard/orgs","repos_url":"https://api.github.com/users/nlienard/repos","events_url":"https://api.github.com/users/nlienard/events{/privacy}","received_events_url":"https://api.github.com/users/nlienard/received_events","type":"User","site_admin":false},"created_at":"2016-12-09T10:52:30Z","updated_at":"2016-12-09T10:52:30Z","body":"Ok it works now the issue is on rbd side according to \r\n\r\nhttps://www.mail-archive.com/ceph-users@lists.ceph.com/msg29334.html\r\n\r\nhere a new test successfullly mapped inside container:\r\n\r\n     root@inxovh-nfs001:~# rbd --cluster cephA create -p libvirt-pool test --size 1G  --image-feature layering\r\n    root@inxovh-nfs001:~# rbd --cluster cephA map libvirt-pool/test --keyring  /etc/ceph/cephA.client.admin.keyring\r\n    /dev/rbd0\r\n\r\n"}}
{"actor":{"display_login":"nlienard"}}