Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

docker endpoint

Hi,

I installed docker as a plugin on devstack following this: https://github.com/openstack/heat/tree/master/contrib/docker/docker. I had to make some changes though, instead of: ln -sf $(cd heat/contrib/docker-plugin/plugin; pwd) /usr/lib/heat/docker, I did this: ln -sf $(cd docker/resources; pwd) /usr/lib/heat/docker and then I manually added this: /opt/stack/heat/contrib/docker/docker/resources into etc/heat/heat.conf.

After that I'm trying to deploy this template https://github.com/mackeyzheng/heat-templates/blob/master/simple-stack.yml

Then I get the following error.

| stack_status_reason | Resource CREATE failed: ConnectionError: | | | HTTPConnectionPool(host='10.0.0.2', port=80): Max | | | retries exceeded with url: /v1.12/containers/create | | | (Caused by <class 'socket.error'="">: [Errno 113] | | | EHOSTUNREACH) |

I think the error is about the "docker_endpoint". Thus I delete this item from the template. Then I get the following error.

| stack_status_reason | Resource CREATE failed: ConnectionError: | | | UnixHTTPConnectionPool(host='localhost', port=None): | | | Max retries exceeded with url: | | | /run/docker.sock/v1.12/containers/create (Caused by | | | <class 'socket.error'="">: [Errno 13] EACCES) |

Dose anyone have any idea about how to configure "docker_endpoint"? Thank you!

Chris

click to hide/show revision 2
No.2 Revision

docker endpoint

Hi,

I installed docker as a plugin on devstack following this: https://github.com/openstack/heat/tree/master/contrib/docker/docker. I had to make some changes though, instead of: ln -sf $(cd heat/contrib/docker-plugin/plugin; pwd) /usr/lib/heat/docker, /usr/lib/heat/docker, I did this: ln -sf $(cd docker/resources; pwd) /usr/lib/heat/docker /usr/lib/heat/docker and then I manually added this: /opt/stack/heat/contrib/docker/docker/resources /opt/stack/heat/contrib/docker/docker/resources into etc/heat/heat.conf.etc/heat/heat.conf.

After that I'm trying to deploy this template https://github.com/mackeyzheng/heat-templates/blob/master/simple-stack.yml

Then I get the following error.

| stack_status_reason  | Resource CREATE failed: ConnectionError:                                                                             |
|                                 | HTTPConnectionPool(host='10.0.0.2', port=80): Max                                                                    |
|                                 | retries exceeded with url: /v1.12/containers/create                                                                  |
|                                 | (Caused by <class 'socket.error'="">: 'socket.error'>: [Errno 113]                                                                       |
|                                 | EHOSTUNREACH)                                                                                                        |

|

I think the error is about the "docker_endpoint". Thus I delete this item from the template. Then I get the following error.

| stack_status_reason  | Resource CREATE failed: ConnectionError:                                                                              |
|                                 | UnixHTTPConnectionPool(host='localhost', port=None):                                                                  |
|                                 | Max retries exceeded with url:                                                                                        |
|                                 | /run/docker.sock/v1.12/containers/create (Caused by                                                                   |
|                                 | <class 'socket.error'="">: 'socket.error'>: [Errno 13] EACCES)                                                                            |

|

Dose anyone have any idea about how to configure "docker_endpoint"? Thank you!

Chris

docker endpoint

Hi,

I installed docker as a plugin on devstack following this: https://github.com/openstack/heat/tree/master/contrib/docker/docker. I had to make some changes though, instead of: ln -sf $(cd heat/contrib/docker-plugin/plugin; pwd) /usr/lib/heat/docker, I did this: ln -sf $(cd docker/resources; pwd) /usr/lib/heat/docker and then I manually added this: /opt/stack/heat/contrib/docker/docker/resources into etc/heat/heat.conf.

After that I'm trying to deploy this template https://github.com/mackeyzheng/heat-templates/blob/master/simple-stack.yml

Then I get the following error.

| stack_status_reason | Resource CREATE failed: ConnectionError: | | | HTTPConnectionPool(host='10.0.0.2', port=80): Max | Max | | retries exceeded with url: /v1.12/containers/create | /v1.12/containers/create | | (Caused by <class 'socket.error'>: 'socket.error'="">: [Errno 113] |
| | EHOSTUNREACH) |

I think the error is about the "docker_endpoint". Thus I delete this item from the template. Then I get the following error.

| stack_status_reason | Resource CREATE failed: ConnectionError: | ConnectionError: | | UnixHTTPConnectionPool(host='localhost', port=None): |
| | Max retries exceeded with url: |
| | /run/docker.sock/v1.12/containers/create (Caused by |
| | <class 'socket.error'>: 'socket.error'="">: [Errno 13] EACCES) |

Dose anyone have any idea about how to configure "docker_endpoint"? Thank you!

Chris

How to configure docker endpointendpoint?

Hi,

I installed docker as a plugin on devstack following this: https://github.com/openstack/heat/tree/master/contrib/docker/docker. I had to make some changes though, instead of: ln -sf $(cd heat/contrib/docker-plugin/plugin; pwd) /usr/lib/heat/docker, I did this: ln -sf $(cd docker/resources; pwd) /usr/lib/heat/docker and then I manually added this: /opt/stack/heat/contrib/docker/docker/resources into etc/heat/heat.conf.

After that I'm trying to deploy this template https://github.com/mackeyzheng/heat-templates/blob/master/simple-stack.yml

Then I get the following error.

| stack_status_reason  | Resource CREATE failed: ConnectionError: 
|                                 | HTTPConnectionPool(host='10.0.0.2', port=80): Max
|                                 | retries exceeded with url: /v1.12/containers/create
|                                 | (Caused by <class 'socket.error'="">: 'socket.error'>: [Errno 113] 
| | EHOSTUNREACH)

I think the error is about the "docker_endpoint". Thus I delete this item from the template. Then I get the following error.

error. | stack_status_reason | Resource CREATE failed: ConnectionError: | | UnixHTTPConnectionPool(host='localhost', port=None):
| | Max retries exceeded with url:
| | /run/docker.sock/v1.12/containers/create (Caused by
| | <class 'socket.error'="">: 'socket.error'>: [Errno 13] EACCES)

EACCES)

Dose anyone have any idea about how to configure "docker_endpoint"? Thank you!"docker_endpoint"?

Chris