Hey guys,

Good news!! Ilya investigated the ticket and gave me a hint as to the issue
- we need to use `--net host` on the consuming container so that the
network context is what Ceph expects. I am now running my test container
like so:

docker run -i -v /sys:/sys --net host
172.21.12.100:5000/deis/store-base:git-3d4ca8f /bin/bash

Note that we also had to bind-mount /sys so that it's not read-only
within the container. And I can confirm that it works!



*Chris Armstrong*Head of Services
OpDemand / Deis.io

GitHub: https://github.com/deis/deis -- Docs: http://docs.deis.io/


On Tue, Oct 7, 2014 at 11:06 AM, Christopher Armstrong <[email protected]>
wrote:

> Thank you Ilya! Please let me know if I can help. To give you some
> background, I'm one of the core maintainers of Deis, an open-source PaaS
> built on Docker and CoreOS. We have Ceph running quite successfully as
> implemented in https://github.com/deis/deis/pull/1910 based on Seán
> McCord's containerized Ceph work: https://github.com/ulexus/docker-ceph
>
> We are currently only using radosgw. We really need shared volume support,
> which is why we're interested in getting RBD mapping working.
>
> Thanks for helping with this!
>
>
> *Chris Armstrong*Head of Services
> OpDemand / Deis.io
>
> GitHub: https://github.com/deis/deis -- Docs: http://docs.deis.io/
>
>
> On Tue, Oct 7, 2014 at 4:05 AM, Ilya Dryomov <[email protected]>
> wrote:
>
>> On Tue, Oct 7, 2014 at 9:46 AM, Christopher Armstrong
>> <[email protected]> wrote:
>> > Hi folks,
>> >
>> > I'm trying to gather additional information surrounding
>> > http://tracker.ceph.com/issues/9355 so we can hopefully find the root
>> of
>> > what's preventing us from successfully mapping RBD volumes inside a
>> Linux
>> > container.
>> >
>> > With the RBD kernel module debugging enabled (and cephx authentication
>> > disabled so I can echo to the RBD bus) as instructed by joshd, I notice
>> this
>> > error in my dmesg:
>> >
>> > [ 1005.143340] libceph: error -22 on auth protocol 2 init
>> >
>> > Not sure this is the root of the issues, but it's certainly a lead.
>> This may
>> > just be caused by the fact that we've disabled authentication in
>> ceph.conf
>> > so we can debug this, but was hoping someone from the list could shed
>> some
>> > light.
>>
>> Hi Christopher,
>>
>> I'll try to setup docker and have a look.
>>
>> Thanks,
>>
>>                 Ilya
>>
>
>
_______________________________________________
ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Reply via email to