{"action":"created","issue":{"url":"https://api.github.com/repos/ceph/ceph-docker/issues/171","labels_url":"https://api.github.com/repos/ceph/ceph-docker/issues/171/labels{/name}","comments_url":"https://api.github.com/repos/ceph/ceph-docker/issues/171/comments","events_url":"https://api.github.com/repos/ceph/ceph-docker/issues/171/events","html_url":"https://github.com/ceph/ceph-docker/issues/171","id":120214050,"number":171,"title":"Permission denied when creating a journal in a new OSD container","user":{"login":"yellowiscool","id":45740,"avatar_url":"https://avatars.githubusercontent.com/u/45740?v=3","gravatar_id":"","url":"https://api.github.com/users/yellowiscool","html_url":"https://github.com/yellowiscool","followers_url":"https://api.github.com/users/yellowiscool/followers","following_url":"https://api.github.com/users/yellowiscool/following{/other_user}","gists_url":"https://api.github.com/users/yellowiscool/gists{/gist_id}","starred_url":"https://api.github.com/users/yellowiscool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yellowiscool/subscriptions","organizations_url":"https://api.github.com/users/yellowiscool/orgs","repos_url":"https://api.github.com/users/yellowiscool/repos","events_url":"https://api.github.com/users/yellowiscool/events{/privacy}","received_events_url":"https://api.github.com/users/yellowiscool/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":44,"created_at":"2015-12-03T16:28:02Z","updated_at":"2015-12-24T18:41:09Z","closed_at":null,"body":"Hi, thank you for your work on these containers. I am running on a small issue, and this is the output:\r\n\r\n```\r\nDEBUG:ceph-disk:OSD id is 0\r\nDEBUG:ceph-disk:Initializing OSD...\r\nINFO:ceph-disk:Running command: /usr/bin/ceph --cluster ceph --name client.bootstrap-osd --keyring /var/lib/ceph/bootstrap-osd/ceph.keyring mon getmap -o /var/lib/ceph/tmp/mnt.y_qXKn/activate.monmap\r\ngot monmap epoch 1\r\nINFO:ceph-disk:Running command: /usr/bin/ceph-osd --cluster ceph --mkfs --mkkey -i 0 --monmap /var/lib/ceph/tmp/mnt.y_qXKn/activate.monmap --osd-data /var/lib/ceph/tmp/mnt.y_qXKn --osd-journal /var/lib/ceph/tmp/mnt.y_qXKn/journal --osd-uuid 29cd5619-cb46-41da-be4e-05f86180b67c --keyring /var/lib/ceph/tmp/mnt.y_qXKn/keyring --setuser ceph --setgroup ceph\r\n2015-12-03 16:18:44.042200 7f8c7bbb1940 -1 filestore(/var/lib/ceph/tmp/mnt.y_qXKn) mkjournal error creating journal on /var/lib/ceph/tmp/mnt.y_qXKn/journal: (13) Permission denied\r\n2015-12-03 16:18:44.042222 7f8c7bbb1940 -1 OSD::mkfs: ObjectStore::mkfs failed with error -13\r\n2015-12-03 16:18:44.042257 7f8c7bbb1940 -1  ** ERROR: error creating empty object store in /var/lib/ceph/tmp/mnt.y_qXKn: (13) Permission denied\r\nERROR:ceph-disk:Failed to activate\r\nDEBUG:ceph-disk:Unmounting /var/lib/ceph/tmp/mnt.y_qXKn\r\nINFO:ceph-disk:Running command: /bin/umount -- /var/lib/ceph/tmp/mnt.y_qXKn\r\n```\r\n\r\nI start the OSD container using this command:\r\n\r\n```bash\r\nsudo docker run -d --net=host \\\r\n  --privileged=true \\\r\n  -v /var/lib/ceph/:/var/lib/ceph/ \\\r\n  -v /dev/:/dev/ \\\r\n  -e OSD_DEVICE=/dev/sda \\\r\n  -e OSD_TYPE=disk \\\r\n  -e MON_IP_AUTO_DETECT=4 \\\r\n  -e KV_TYPE=consul \\\r\n  -e KV_IP=192.168.1.6 \\\r\n  -e KV_PORT=8500 \\\r\n  -e ESD_FORCE_ZAP=1 \\\r\n  ceph/daemon osd\r\n```\r\n\r\nThe ceph monitor should be running, and it is started like this:\r\n\r\n```bash\r\nsudo docker run -d --net=host \\\r\n  -v /var/lib/ceph/:/var/lib/ceph/ \\\r\n  -e MON_NAME=ceph_node1 \\\r\n  -e MON_IP=192.168.1.41 \\\r\n  -e CEPH_PUBLIC_NETWORK=192.168.0.0/24 \\\r\n  -e CEPH_CLUSTER_NETWORK=192.168.0.0/24 \\\r\n  -e MON_IP_AUTO_DETECT=4 \\\r\n  -e KV_TYPE=consul \\\r\n  -e KV_IP=192.168.1.6 \\\r\n  -e KV_PORT=8500 \\\r\n  ceph/daemon mon\r\n```\r\n\r\nI have the default settings from populate.sh (on a side topic, kviator wasn't working on a goland container. I used curl instead).\r\n\r\nI also have 6 hard drive per node, how can I use multiple OSD_TYPE ? Should I start one OSD per hard drive?\r\n\r\nThank you"},"comment":{"url":"https://api.github.com/repos/ceph/ceph-docker/issues/comments/167148789","html_url":"https://github.com/ceph/ceph-docker/issues/171#issuecomment-167148789","issue_url":"https://api.github.com/repos/ceph/ceph-docker/issues/171","id":167148789,"user":{"login":"streamnsight","id":10981776,"avatar_url":"https://avatars.githubusercontent.com/u/10981776?v=3","gravatar_id":"","url":"https://api.github.com/users/streamnsight","html_url":"https://github.com/streamnsight","followers_url":"https://api.github.com/users/streamnsight/followers","following_url":"https://api.github.com/users/streamnsight/following{/other_user}","gists_url":"https://api.github.com/users/streamnsight/gists{/gist_id}","starred_url":"https://api.github.com/users/streamnsight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/streamnsight/subscriptions","organizations_url":"https://api.github.com/users/streamnsight/orgs","repos_url":"https://api.github.com/users/streamnsight/repos","events_url":"https://api.github.com/users/streamnsight/events{/privacy}","received_events_url":"https://api.github.com/users/streamnsight/received_events","type":"User","site_admin":false},"created_at":"2015-12-24T18:41:09Z","updated_at":"2015-12-24T18:41:09Z","body":"The patch is in the initial indeed so this is outside the scope of the container.\r\nJust chown the folder before the ceph-disk command \r\n"}}