ClusterHQ / flocker

Container data volume manager for your Dockerized application
https://clusterhq.com
Apache License 2.0
3.39k stars 290 forks source link

how to install and use flocker cluster without TLS (certificates) #2798

Open gufranmmu opened 8 years ago

gufranmmu commented 8 years ago

I executed this command:

docker run -ti -v volumename:/data --volume-driver=flocker busybox sh

I am getting error like this:

Error response from daemon: Cannot start container 79fc048ddc3efb0fab1c32f2af5a8e7cf7e298b061ce895f3ea74535e204b16d: TimeoutError: User timeout caused connection failure.

and from the logs:

May 24 10:00:41 mesos-slave-1 flocker-docker-plugin: {"exception": "twisted.internet.error.TimeoutError", "reason": "User timeout caused connection failure.", "timestamp": 1464073241.398488, "traceback": "Traceback (failure with no frames): <class 'twisted.internet.error.TimeoutError'>: User timeout caused connection failure.\n", "message_type": "eliot:traceback", "task_uuid": "349e177e-f5b2-493f-a2f9-00da45720dd8", "task_level": [1]}
May 24 10:00:41 mesos-slave-1 flocker-docker-plugin: {"timestamp": 1464073241.398783, "task_uuid": "7bc5fd90-6bb4-45f8-9a19-2ce2ec42e374", "action_type": "api:request", "action_status": "succeeded", "task_level": [6]}
May 24 10:00:41 mesos-slave-1 flocker-docker-plugin: {"task_uuid": "a2693529-6f11-47c0-a5e8-ddac280550d8", "error": false, "timestamp": 1464073241.399254, "message": "\"-\" - - [24/May/2016:07:00:40 +0000] \"POST /VolumeDriver.Mount HTTP/1.1\" 200 64 \"-\" \"Go 1.1 package http\"", "message_type": "twisted:log", "task_level": [1]}
May 24 10:00:41 mesos-slave-1 flocker-docker-plugin: {"task_uuid": "714b66c4-73a1-4cf6-a974-37640ef002ba", "error": false, "timestamp": 1464073241.399615, "message": "Stopping factory <twisted.web.client._HTTP11ClientFactory instance at 0x468d638>", "message_type": "twisted:log", "task_level": [1]}
May 24 10:00:41 mesos-slave-1 flocker-docker-plugin: {"task_uuid": "e5fb25de-00cb-4a15-8a65-a0dde786c433", "task_level": [1], "action_type": "api:request", "timestamp": 1464073241.449983, "method": "POST", "action_status": "started", "request_path": "/VolumeDriver.Unmount"}
May 24 10:00:41 mesos-slave-1 flocker-docker-plugin: {"timestamp": 1464073241.450486, "task_uuid": "e5fb25de-00cb-4a15-8a65-a0dde786c433", "action_type": "api:request", "action_status": "succeeded", "task_level": [3]}
May 24 10:00:41 mesos-slave-1 flocker-docker-plugin: {"task_uuid": "68bb5265-2381-4025-84b1-4c4c64cce2bb", "error": false, "timestamp": 1464073241.451027, "message": "\"-\" - - [24/May/2016:07:00:40 +0000] \"POST /VolumeDriver.Unmount HTTP/1.1\" 200 11 \"-\" \"Go 1.1 package http\"", "message_type": "twisted:log", "task_level": [1]}

How to install flocker without the certificates?

wallnerryan commented 8 years ago

@gufranmmu right now you need to use TLS always, we dont support installing without them.

There doesnt seem to be anything pointing at TLS issue from the logs you provided so it may be a different configuration issue. Can you run flocker-diagnostics on the machine having issues and send them to support@clusterhq.com

gufranmmu commented 8 years ago

Thank you man! You are awesome!