Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker run with flocker failed #7

Open
thbeh opened this issue May 26, 2016 · 2 comments
Open

docker run with flocker failed #7

thbeh opened this issue May 26, 2016 · 2 comments

Comments

@thbeh
Copy link

thbeh commented May 26, 2016

Hi, I have a similar issue with #6 but in my case i am able to create the volume but when I try to run it using this (I am using bare metal, with the same no. of nodes instead of Vagrant) -
ssh ceph3 "sudo docker run --volume-driver flocker
-v test:/data --name test-container -itd busybox"

docker: Error response from daemon: Timed out waiting for dataset to mount..

All apis returning results -
[thbeh@ceph3 ~]$ ssh ceph1 "sudo curl --cacert /etc/flocker/cluster.crt
--cert /etc/flocker/plugin.crt
--key /etc/flocker/plugin.key
--header 'Content-type: application/json'
https://ceph1:4523/v1/state/datasets | python -m json.tool"
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 170 0 170 0 0 982 0 --:--:-- --:--:-- --:--:-- 988
[
{
"dataset_id": "9a7e11c6-bcdd-48ad-8909-d6f3e06acd5f",
"maximum_size": 10737418240
},
{
"dataset_id": "031f903e-feee-46a7-94e6-156d6c650613",
"maximum_size": 10737418240
}
]

[thbeh@ceph3 ~]$ ssh ceph1 "sudo curl --cacert /etc/flocker/cluster.crt
--cert /etc/flocker/plugin.crt
--key /etc/flocker/plugin.key
--header 'Content-type: application/json'
https://ceph1:4523/v1/configuration/datasets | python -m json.tool"
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 431 0 431 0 0 3970 0 --:--:-- --:--:-- --:--:-- 3954
[
{
"dataset_id": "9a7e11c6-bcdd-48ad-8909-d6f3e06acd5f",
"deleted": false,
"maximum_size": 10737418240,
"metadata": {
"maximum_size": "10737418240",
"name": "test1"
},
"primary": "1333fb7a-7d92-4d52-a78e-1739acc34bd4"
},
{
"dataset_id": "031f903e-feee-46a7-94e6-156d6c650613",
"deleted": false,
"maximum_size": 10737418240,
"metadata": {
"maximum_size": "10737418240",
"name": "test"
},
"primary": "1333fb7a-7d92-4d52-a78e-1739acc34bd4"
}
]
[

[thbeh@ceph2 ceph-ansible]$ ssh ceph1 "sudo curl --cacert /etc/flocker/cluster.crt
--cert /etc/flocker/plugin.crt
--key /etc/flocker/plugin.key
--header 'Content-type: application/json'
https://ceph1:4523/v1/state/nodes | python -m json.tool"
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 225 0 225 0 0 710 0 --:--:-- --:--:-- --:--:-- 712
[
{
"host": "192.168.20.14",
"uuid": "1333fb7a-7d92-4d52-a78e-1739acc34bd4"
},
{
"host": "192.168.20.13",
"uuid": "db84d992-5c81-418a-8aa3-29ce0b6aefcf"
},
{
"host": "192.168.20.15",
"uuid": "25ba98c3-f4ed-4956-91b2-6ec2a3688b62"
}
]

@lhoss
Copy link

lhoss commented May 27, 2016

@thbeh I assume you also installed with the latest ceph release (jewel v10.2.0)
In that case datasets mounting fails latest in the 'rbd map' phase (like in my issue, see more at the bottom).
Check the logs in `/var/log/flocker/_dataset_´ if you also see following exception:

Command '['rbd', '-p', 'rbd', 'showmapped']' returned non-zero exit status 1

I wrote in my issue that the ceph_flocker_driver isn't ready yet for latest ceph, as some cmds have changed.
Best is to create a new issue, with a more clear title like 'ceph_flocker_driver not yet compatible with latest ceph version v10.2.x

@wallnerryan
Copy link
Contributor

Hi @thbeh thanks and yes this driver is very experimental still. We'll look into these issues at some point. Thank you for trying the ceph driver. PRs welcome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants