[python docker-py/docker package conflict]Contrail-command provisioning is failing
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Juniper Openstack |
Won't Fix
|
Critical
|
manishkn | ||
R5.0 |
Won't Fix
|
Critical
|
manishkn | ||
Trunk |
Won't Fix
|
Critical
|
manishkn |
Bug Description
Attaching the email thread
Hi Bharath,
After removing docker-py
Could you pls take a look at 10.87.74.151
TASK [launch_containers : remove contrail mysql container] *******
fatal: [10.87.74.151]: FAILED! => {"changed": false, "msg": "Failed to import docker-py - No module named docker. Try `pip install docker-py`"}
to retry, use: --limit @/var/tmp/
PLAY RECAP *******
10.87.74.151 : ok=37 changed=9 unreachable=0 failed=1
localhost : ok=4 changed=2 unreachable=0 failed=0
Thanks
Manish Krishnan
From: Leela Bharath Kumar Kassetti <email address hidden>
Date: Saturday, October 13, 2018 at 12:02 PM
To: Ignatious Johnson <email address hidden>, Nitish Krishna Kaveri Poompatnam <email address hidden>
Cc: Ramprakash Ram Mohan <email address hidden>, Manish Krishnan <email address hidden>, Abhay Joshi <email address hidden>
Subject: Re: mysql container bring-up failure
Hi Manish/Ignatious,
We have removed installation of “docker-py” which is an obsolete python package. Please uninstall “docker-py” on the setup before running any playbooks.
This has been clearly mentioned as a pre-requisite in the Wiki link below.
Wiki:
https:/
“We are not installing docker-py anymore as it is obsolete. Remove docker-py from all the nodes where Contrail-Command (UI) is being installed as it conflicts with other packages.”
pip uninstall docker-py
Regards,
Bharath Kassetti.
From: Ignatious Johnson <email address hidden>
Date: Friday, October 12, 2018 at 8:25 PM
To: Leela Bharath Kumar Kassetti <email address hidden>, Nitish Krishna Kaveri Poompatnam <email address hidden>
Cc: Ramprakash Ram Mohan <email address hidden>, Manish Krishnan <email address hidden>
Subject: mysql container bring-up failure
Hi Team,
Manish is facing issue with latest contrail-
Setup 10.87.74.151 root/c0ntrail123
Can one of you take a look, following is the verbose failure logs, while executing (ansible-playbook playbooks/
TASK [launch_containers : debug] *******
task path: /root/contrail-
ok: [10.87.74.151] => {
"database_
}
Read vars_file '{{ hostvars[
TASK [launch_containers : remove contrail mysql container] *******
task path: /root/contrail-
Using module file /usr/lib/
<10.87.74.151> ESTABLISH SSH CONNECTION FOR USER: root
<10.87.74.151> SSH: EXEC sshpass -d13 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyCh
<10.87.74.151> (0, '/root\n', '')
<10.87.74.151> ESTABLISH SSH CONNECTION FOR USER: root
<10.87.74.151> SSH: EXEC sshpass -d13 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyCh
<10.87.74.151> (0, 'ansible-
<10.87.74.151> PUT /tmp/tmpLiuYyq TO /root/.
<10.87.74.151> SSH: EXEC sshpass -d13 sftp -o BatchMode=no -b - -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyCh
<10.87.74.151> (0, 'sftp> put /tmp/tmpLiuYyq /root/.
<10.87.74.151> ESTABLISH SSH CONNECTION FOR USER: root
<10.87.74.151> SSH: EXEC sshpass -d13 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyCh
<10.87.74.151> (0, '', '')
<10.87.74.151> ESTABLISH SSH CONNECTION FOR USER: root
<10.87.74.151> SSH: EXEC sshpass -d13 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyCh
<10.87.74.151> (0, '\r\n{"msg": "Error connecting: load_config() got an unexpected keyword argument \'config_dict\'", "failed": true, "exception": " File \\"/tmp/
The full traceback is:
File "/tmp/ansible_
super(
File "/usr/lib/
config_
fatal: [10.87.74.151]: FAILED! => {
"changed": false,
"invocation": {
"env": null,
"name": "contrail_mysql",
"pull": false,
"tls": null,
"tty": false,
"user": null,
"uts": null,
}
},
"msg": "Error connecting: load_config() got an unexpected keyword argument 'config_dict'"
}
to retry, use: --limit @/var/tmp/
PLAY RECAP *******
10.87.74.151 : ok=37 changed=8 unreachable=0 failed=1
localhost : ok=4 changed=2 unreachable=0 failed=0
[root@5c3s29-2-vm2 contrail-
tags: | added: blocker |
summary: |
- Contrail-command provisioning is failing + [python docker-py/docker package conflict]Contrail-command provisioning + is failing |
tags: | removed: blocker |
Changed in juniperopenstack: | |
status: | New → Won't Fix |
information type: | Proprietary → Public |
We are not installing "docker-py" python package anymore as it is obsolete now instead we are installing "docker" python package. Installation of both “docker-py” and “docker” python packages will write to the same location (/usr/lib/ python< VERSION> /docker) .
To avoid package conflict, remove "docker-py" and "docker" python packages from all the nodes where Contrail-Command (UI) is being installed before deployment.
Run below command (pre-requisite):
pip uninstall docker-py docker