Re: 'rbd map' inside a docker container

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jun 25, 2015 at 5:11 PM, Jan Safranek <jsafrane@xxxxxxxxxx> wrote:
> I need to map an existing RBD into a docker container. I'm running
> Fedora 21 both as the host and inside the container (i.e. the kernel
> matches ceph user space tools) and I get this error:
>
> $ rbd map foo
> rbd: add failed: (22) Invalid argument
>
> $ strace rbd map foo
> ...
> stat("/sys/bus/rbd", {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
> open("/sys/bus/rbd/add_single_major", O_WRONLY) = 3
> write(3, "172.17.0.11:6789 name=admin,key=client.admin rbd foo", 52) =
> -1 EINVAL (Invalid argument)
>
> Any idea what can be wrong? Note that I run ceph server in a container
> too, but I guess it should not matter. I can map the same volume outside
> of the container with the same settings without any problems.

Network namespaces, I think.  ceph kernel client currently requires
init_ns namespace, which means you need to pass --net=host (or whatever
it is) to docker.

Thanks,

                Ilya
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com



[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux