Ask Your Question
0

kolla-ansible pull error

asked 2017-07-24 15:24:16 -0600

Hello, I'm trying to get started with kolla-ansible and following the directions in the 'Quick Start'. I'm to the point where I'm instructed to do:

$ kolla-ansible pull

  1. I assume that I should not use the -i << inventory file >> on this command.
  2. When I do this I get the error below.

Could you help me debug, please :)

Thank you!

root@ansible-host:~# kolla-ansible pull
Pulling Docker images : ansible-playbook -i /usr/local/share/kolla-ansible/ansible/inventory/all-in-one -e @/etc/kolla/globals.yml -e @/etc/kolla/passwords.yml -e CONFIG_DIR=/etc/kolla  -e action=pull /usr/local/share/kolla-ansible/ansible/site.yml
 [WARNING]: Found variable using reserved name: action



TASK [common : Pulling kolla-toolbox image] *******************************************************************************
 [WARNING]: Module did not set no_log for auth_password

fatal: [localhost]: FAILED! => {"changed": true, "failed": true, "msg": "'Traceback (most recent call last):
  File \"/tmp/ansible_C3JGBS/ansible_module_kolla_docker.py\", line 781, in main
    result = bool(getattr(dw, module.params.get(\\'action\\'))())
  File \"/tmp/ansible_C3JGBS/ansible_module_kolla_docker.py\", line 445, in pull_image
    repository=image, tag=tag, stream=True
  File \"/usr/local/lib/python2.7/dist-packages/docker/api/image.py\", line 175, in pull
    self._raise_for_status(response)
  File \"/usr/local/lib/python2.7/dist-packages/docker/client.py\", line 174, in _raise_for_status
    raise errors.APIError(e, response, explanation=explanation)
APIError: 500 Server Error: Internal Server Error (\"{\"message\":\"Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)\"}\")
'"}
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2017-07-25 03:03:00 -0600

Hi Mark,

For kolla-ansible pull inventory is required.

This command will pull/download docker images in remote nodes (where OpenStack is going to be deployed) and requires inventory file to know on which hosts download images.

If an inventory file is not provided by default will use all-in-one inventory pointing to localhost.

Regards

edit flag offensive delete link more

Comments

Thanks much for replying. Should somehow request the documentation be updated so the inventory file is included on the kolla-ansible pull command?

When I did the command with the inventory file, I got a different error. I'll get the logs if I can't figure that out. Thanks again for the reply!

markhargrove28 gravatar imagemarkhargrove28 ( 2017-07-25 06:00:50 -0600 )edit

๐Ÿ‘ - thank you

markhargrove28 gravatar imagemarkhargrove28 ( 2017-07-25 07:59:08 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2017-07-24 15:24:16 -0600

Seen: 992 times

Last updated: Jul 25 '17