docker-py problem

Bug #1704569 reported by Juise
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
kolla-ansible
Invalid
Undecided
Unassigned

Bug Description

TASK [common : Pulling common images] ********************************************************************************************************************************************
 [WARNING]: Module did not set no_log for auth_password

failed: [localhost] (item={'key': u'cron', 'value': {u'environment': {u'DUMMY_ENVIRONMENT': u'kolla_useless_env'}, u'image': u'operator.local:4000/lokolla/centos-binary-cron:4.0.0', u'volumes': [u'/etc/kolla//cron/:/var/lib/kolla/config_files/:ro', u'/etc/localtime:/etc/localtime:ro', u'kolla_logs:/var/log/kolla/'], u'container_name': u'cron'}}) => {"changed": true, "failed": true, "item": {"key": "cron", "value": {"container_name": "cron", "environment": {"DUMMY_ENVIRONMENT": "kolla_useless_env"}, "image": "operator.local:4000/lokolla/centos-binary-cron:4.0.0", "volumes": ["/etc/kolla//cron/:/var/lib/kolla/config_files/:ro", "/etc/localtime:/etc/localtime:ro", "kolla_logs:/var/log/kolla/"]}}, "msg": "'Traceback (most recent call last):\\n File \"/tmp/ansible_BvcV8G/ansible_module_kolla_docker.py\", line 793, in main\\n result = bool(getattr(dw, module.params.get(\\'action\\'))())\\n File \"/tmp/ansible_BvcV8G/ansible_module_kolla_docker.py\", line 459, in pull_image\\n repository=image, tag=tag, stream=True\\n File \"/usr/lib/python2.7/site-packages/docker/api/image.py\", line 358, in pull\\n header = auth.get_config_header(self, registry)\\nAttributeError: \\'module\\' object has no attribute \\'get_config_header\\'\\n'"}
failed: [localhost] (item={'key': u'fluentd', 'value': {u'environment': {u'KOLLA_CONFIG_STRATEGY': u'COPY_ALWAYS'}, u'image': u'operator.local:4000/lokolla/centos-binary-fluentd:4.0.0', u'volumes': [u'/etc/kolla//fluentd/:/var/lib/kolla/config_files/:ro', u'/etc/localtime:/etc/localtime:ro', u'kolla_logs:/var/log/kolla/'], u'container_name': u'fluentd'}}) => {"changed": true, "failed": true, "item": {"key": "fluentd", "value": {"container_name": "fluentd", "environment": {"KOLLA_CONFIG_STRATEGY": "COPY_ALWAYS"}, "image": "operator.local:4000/lokolla/centos-binary-fluentd:4.0.0", "volumes": ["/etc/kolla//fluentd/:/var/lib/kolla/config_files/:ro", "/etc/localtime:/etc/localtime:ro", "kolla_logs:/var/log/kolla/"]}}, "msg": "'Traceback (most recent call last):\\n File \"/tmp/ansible_7TKuOP/ansible_module_kolla_docker.py\", line 793, in main\\n result = bool(getattr(dw, module.params.get(\\'action\\'))())\\n File \"/tmp/ansible_7TKuOP/ansible_module_kolla_docker.py\", line 459, in pull_image\\n repository=image, tag=tag, stream=True\\n File \"/usr/lib/python2.7/site-packages/docker/api/image.py\", line 358, in pull\\n header = auth.get_config_header(self, registry)\\nAttributeError: \\'module\\' object has no attribute \\'get_config_header\\'\\n'"}
failed: [localhost] (item={'key': u'kolla-toolbox', 'value': {u'environment': {u'ANSIBLE_LIBRARY': u'/usr/share/ansible', u'ANSIBLE_NOCOLOR': u'1'}, u'image': u'operator.local:4000/lokolla/centos-binary-kolla-toolbox:4.0.0', u'privileged': True, u'volumes': [u'/etc/kolla//kolla-toolbox/:/var/lib/kolla/config_files/:ro', u'/etc/localtime:/etc/localtime:ro', u'/dev/:/dev/', u'/run/:/run/:shared', u'kolla_logs:/var/log/kolla/'], u'container_name': u'kolla_toolbox'}}) => {"changed": true, "failed": true, "item": {"key": "kolla-toolbox", "value": {"container_name": "kolla_toolbox", "environment": {"ANSIBLE_LIBRARY": "/usr/share/ansible", "ANSIBLE_NOCOLOR": "1"}, "image": "operator.local:4000/lokolla/centos-binary-kolla-toolbox:4.0.0", "privileged": true, "volumes": ["/etc/kolla//kolla-toolbox/:/var/lib/kolla/config_files/:ro", "/etc/localtime:/etc/localtime:ro", "/dev/:/dev/", "/run/:/run/:shared", "kolla_logs:/var/log/kolla/"]}}, "msg": "'Traceback (most recent call last):\\n File \"/tmp/ansible_H34e_h/ansible_module_kolla_docker.py\", line 793, in main\\n result = bool(getattr(dw, module.params.get(\\'action\\'))())\\n File \"/tmp/ansible_H34e_h/ansible_module_kolla_docker.py\", line 459, in pull_image\\n repository=image, tag=tag, stream=True\\n File \"/usr/lib/python2.7/site-packages/docker/api/image.py\", line 358, in pull\\n header = auth.get_config_header(self, registry)\\nAttributeError: \\'module\\' object has no attribute \\'get_config_header\\'\\n'"}

There is created pull request for that - https://github.com/openstack/kolla-ansible/pull/6

Revision history for this message
Eduardo Gonzalez (egonzalez90) wrote :

Hi, new releases will need docker instead of docker-py.

Only one docker library can be installed, both will cause conflict between them while authenticating.

Install docker or docker-py depends of your version. docker-py in ocata and before and docker from pike(current master)

Regards

Revision history for this message
Eduardo Gonzalez (egonzalez90) wrote :

By the way, OpenStack does not allow pull request to GitHub, need to use gerrit for this.

Revision history for this message
Juise (askjuise) wrote :

Hi!

> Install docker or docker-py depends of your version. docker-py in ocata and before and docker from pike(current master)

Got it!

> By the way, OpenStack does not allow pull request to GitHub, need to use gerrit for this.
I know. But, please, don't misunderstand me, I don't want to bother myself with you workflow, I don't want to be part of openstack dev community. I found the bug, I know how to fix it, I made PR. And other people will don't hurt with this bug anymore. But! Your gerrit workflow force me to spent my time. I don't want it. So, I'm just create this bug report.

Revision history for this message
Eduardo Gonzalez (egonzalez90) wrote :

Yeah, I know current workflow with thousands of different accounts is not good for newcomers of eventually contributors, hopefully will change in the future. However, PR directly to github are automatically rejected by a bot and cannot be reviewed/merged or anything.

Migration to docker from docker-py currently is being worked as a massive openstack community goal.

https://review.openstack.org/#/c/475941/

Revision history for this message
Juise (askjuise) wrote :

Cool, thanks!

Changed in kolla-ansible:
status: New → Incomplete
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.