-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issues with docker-py and Ubuntu 14.04 #34065
Comments
@sdemura I believe the pip issue is an upstream issue. For the docker 1.8.1 issue I am able to replicate this issue and I'm seeing this error in the minion debug logs:
Are you seeing the same error? |
docker-py is more or less always out of date and half the time not working, i switched to docker-compose as a wrapper and that's working |
I confirm, having the same issue on ubuntu 14.04 But on debian 8 is working without any problem. I have two minions, one Debian8 and one Ubntu 14.04, the same sls it's working fine on Debian but it failed on Ubuntu |
Updating python-urllib3 package to 1.15.1 on Ubuntu 14.04 helped me to overcome this issue. |
I have updated python-urllib3 package to 1.15.1 but unfortunately couldn't fix the issue, I'm still getting the following error:
My simple redis image state :
pip packages installed on minion:
salt version:
|
it's working for me after using this formula https://github.com/saltstack-formulas/docker-formula to install docker. but I'm not sure what is the root cause of the issue |
@adilr00t I did deb package update not npm. |
+1 to this issue. I have docker-py installed. ssh-ing into the minion I can run the following:
versions:
versions-report
and I am using Docker CS engine 1.12
When I run
|
Note: when i manually ran SO to clarify using
is not sufficent. it MUST be the pip installed version of pip, not the apt version Also the error message coming back to the master when running |
Also note that running, from the minion, when running edit: also running |
update: restarting the salt-minion is also required. After installing pip from pip and installing docker-py the minion needs to be restarted then my salt-states work as expected. this seems like broken behavior. |
Agree with @fxdgear. Having to restart the salt-minion is required, and that's definitely not desirable. |
Are there any news on that ? |
Also would like some news. Running Ubuntu 16.04.2 and Salt 2016.11.3 and still getting this error when trying to run:
And yet...
Docker-compose 1.6.2 is installed and there in /usr/local/bin |
+1
Debian jessie |
Has anyone tired the most recent salt version? |
@Ch3LL just ran into this. Latest Salt (2017.7.2) on master and minion. Minion is Ubuntu 14.04. Here is the output:
On the minion:
|
I'm able to reproduce this error reliably with the following:
States
Result
Reset WithRemoving
|
This error:
is telling me the version of requests you have installed does not have the exceptions attribute. What happens if you run |
@Ch3LL without
I updated the test state:
and got this (truncated):
|
is there any other information in the debug log output as to why its not loading? |
Here is the trace log for
I tried adding
|
and if you run this: |
I'm not sure what state you want the machine in. After the failed attempt to install
Which is to be expected since the docker install wasn't attempted (
|
thanks for clarifying. i only focused on the docker error not the yaml one. This error:
I am guessing you are using pip 10 and I believe this is a pip and other packaging issue as you can see here: pypa/pip#5247 |
Hi @Ch3LL , the minion has this version:
I have a specific state for all my Debian minions to upgrade PIP because of issues. Edit: I just re-read the issue you linked to. Is it every PIP version over 9 that has the issue? Of course, this error is only when trying to install |
yes any pip versions >9 as they changed the behavior to not handle uninstalling disutils packages since there was risk of not uninstalling everything and would cause issues. Essentially you will need to uninstall the disutils package as pip will not handle that anymore. |
I thought sticking to PIP 9.0.0 had helped (seems to work on current minions) but on a brand new minion it just brought me back to #45292 |
since this issue is resolved are you okay to close this issue and continue investigating your other issue in #45292 ? |
I'm not sure if this issue is resolved. I seem to get bounced between the two issues. @sdemura was the original reporter. |
thanks for clarifying @sdemura are you still seeing this issue? |
Ran into this issue again I believe, with two out of four minions reporting: I removed the
I then did Perhaps the issue is with certain versions (3.5.1?) of the New minion with |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue. |
Description of Issue/Question
I have been trying to get
docker-py
in order to usedockerng
modules and states, but I have run into many issues. This is a summary of what I have found.Setup
Steps to Reproduce Issue
The salt minion requires
docker-py
python module in order to manage docker containers. This should be as simple as running:This works on CentOS 7 and Debian Jessie without problem. On Ubuntu 14.04, the state is successful, but once I go to spin up a container with
dockerng
, I get module import errors.Based on suggetion here: #28036 and #26115 (comment)
I have created a workaround for Ubuntu 14.04 like so:
It is also worth noting that docker-py 1.8.1 does not work on Ubuntu 14.04 using my workaround:
Using 1.8.1:
Versions Report
Minions + master:
The text was updated successfully, but these errors were encountered: