{"action":"created","issue":{"url":"https://api.github.com/repos/apache/incubator-openwhisk/issues/3605","repository_url":"https://api.github.com/repos/apache/incubator-openwhisk","labels_url":"https://api.github.com/repos/apache/incubator-openwhisk/issues/3605/labels{/name}","comments_url":"https://api.github.com/repos/apache/incubator-openwhisk/issues/3605/comments","events_url":"https://api.github.com/repos/apache/incubator-openwhisk/issues/3605/events","html_url":"https://github.com/apache/incubator-openwhisk/issues/3605","id":319711292,"number":3605,"title":"Ubuntu setup fails on Ansible/Docker 2.2.1 setup with \"Cannot uninstall 'urllib3'\"","user":{"login":"nerdguru","id":374976,"avatar_url":"https://avatars0.githubusercontent.com/u/374976?v=4","gravatar_id":"","url":"https://api.github.com/users/nerdguru","html_url":"https://github.com/nerdguru","followers_url":"https://api.github.com/users/nerdguru/followers","following_url":"https://api.github.com/users/nerdguru/following{/other_user}","gists_url":"https://api.github.com/users/nerdguru/gists{/gist_id}","starred_url":"https://api.github.com/users/nerdguru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nerdguru/subscriptions","organizations_url":"https://api.github.com/users/nerdguru/orgs","repos_url":"https://api.github.com/users/nerdguru/repos","events_url":"https://api.github.com/users/nerdguru/events{/privacy}","received_events_url":"https://api.github.com/users/nerdguru/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-05-02T21:02:59Z","updated_at":"2018-05-02T23:46:22Z","closed_at":null,"author_association":"NONE","body":"<!--\r\nDo NOT share passwords, credentials or other confidential information.\r\n\r\nBefore creating a new issue, please check if there is one already open that\r\nfits the defect you are reporting.\r\nIf you open an issue and realize later it is a duplicate of a pre-existing\r\nopen issue, please close yours and add a comment to the other.\r\n\r\nIssues can be created for either defects or enhancement requests. If you are a committer than please add the labels \"bug\" or \"feature\". If you are not a committer please make clear in the comments which one it is, so that committers can add these labels later.\r\n\r\nIf you are reporting a defect, please edit the issue description to include the\r\ninformation shown below.\r\n\r\nIf you are reporting an enhancement request, please include information on what you are trying to achieve and why that enhancement would help you.\r\n\r\nFor more information about reporting issues, see\r\nhttps://github.com/apache/incubator-openwhisk/blob/master/CONTRIBUTING.md#raising-issues\r\n\r\nUse the commands below to provide key information from your environment:\r\nYou do not have to include this information if this is a feature request.\r\n-->\r\n\r\n## Environment details:\r\n\r\nUsed Vagrant to launch an AMI in AWS (both ami-af868e9f in US West 2 and ami-019abc64 in US East 2 reproduce the error).  \r\n\r\n## Steps to reproduce the issue:\r\n\r\n1.   Used vagrant to create a VM in AWS\r\n2.   'vagrant ssh' into VM\r\n3.  Installed git with:\r\nsudo add-apt-repository ppa:git-core/ppa\r\n  sudo apt-get update\r\n  sudo apt-get install git -y\r\n\r\n3.   Followed instructions here, after the git install line: https://github.com/apache/incubator-openwhisk/blob/master/tools/ubuntu-setup/README.md\r\n\r\n## Provide the expected results and outputs:\r\n\r\nExpected installation to proceed cleanly.\r\n\r\n\r\n## Provide the actual results and outputs:\r\nWithin the ansible.sh installation of Docker 2.2.1, the following occurs:\r\n```\r\n+ sudo pip install docker==2.2.1\r\nThe directory '/home/ubuntu/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.\r\nThe directory '/home/ubuntu/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.\r\nCollecting docker==2.2.1\r\n/usr/local/lib/python2.7/dist-packages/pip/_vendor/urllib3/util/ssl_.py:339: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\r\n  SNIMissingWarning\r\n/usr/local/lib/python2.7/dist-packages/pip/_vendor/urllib3/util/ssl_.py:137: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\r\n  InsecurePlatformWarning\r\n/usr/local/lib/python2.7/dist-packages/pip/_vendor/urllib3/util/ssl_.py:137: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\r\n  InsecurePlatformWarning\r\n  Downloading https://files.pythonhosted.org/packages/d9/af/a02ebab0c9791f66addb7e460dc3085240c4ec2c8f33c146fddc18156968/docker-2.2.1-py2.py3-none-any.whl (107kB)\r\n    100% |████████████████████████████████| 112kB 3.8MB/s \r\nCollecting backports.ssl-match-hostname>=3.5; python_version < \"3.5\" (from docker==2.2.1)\r\n  Downloading https://files.pythonhosted.org/packages/76/21/2dc61178a2038a5cb35d14b61467c6ac632791ed05131dda72c20e7b9e23/backports.ssl_match_hostname-3.5.0.1.tar.gz\r\nRequirement already satisfied: six>=1.4.0 in /usr/lib/python2.7/dist-packages (from docker==2.2.1) (1.5.2)\r\nCollecting websocket-client>=0.32.0 (from docker==2.2.1)\r\n  Downloading https://files.pythonhosted.org/packages/9d/fb/f51a03e232e00d6c504dfe815aed090c894ba3f8d3f7fd9612f3e227bf24/websocket_client-0.47.0-py2.py3-none-any.whl (200kB)\r\n    100% |████████████████████████████████| 204kB 7.2MB/s \r\nRequirement already satisfied: ipaddress>=1.0.16; python_version < \"3.3\" in /usr/local/lib/python2.7/dist-packages (from docker==2.2.1) (1.0.22)\r\nCollecting docker-pycreds>=0.2.1 (from docker==2.2.1)\r\n  Downloading https://files.pythonhosted.org/packages/5c/b6/3a4ca03225f6e9a25cb47cd3c695d19b88df5928ab9310e64dec1eb3b4d1/docker_pycreds-0.2.3-py2.py3-none-any.whl\r\nCollecting requests!=2.11.0,!=2.12.2,>=2.5.2 (from docker==2.2.1)\r\n  Downloading https://files.pythonhosted.org/packages/49/df/50aa1999ab9bde74656c2919d9c0c085fd2b3775fd3eca826012bef76d8c/requests-2.18.4-py2.py3-none-any.whl (88kB)\r\n    100% |████████████████████████████████| 92kB 9.1MB/s \r\nCollecting urllib3<1.23,>=1.21.1 (from requests!=2.11.0,!=2.12.2,>=2.5.2->docker==2.2.1)\r\n  Downloading https://files.pythonhosted.org/packages/63/cb/6965947c13a94236f6d4b8223e21beb4d576dc72e8130bd7880f600839b8/urllib3-1.22-py2.py3-none-any.whl (132kB)\r\n    100% |████████████████████████████████| 133kB 7.6MB/s \r\nRequirement already satisfied: idna<2.7,>=2.5 in /usr/local/lib/python2.7/dist-packages (from requests!=2.11.0,!=2.12.2,>=2.5.2->docker==2.2.1) (2.6)\r\nCollecting chardet<3.1.0,>=3.0.2 (from requests!=2.11.0,!=2.12.2,>=2.5.2->docker==2.2.1)\r\n  Downloading https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl (133kB)\r\n    100% |████████████████████████████████| 143kB 9.1MB/s \r\nCollecting certifi>=2017.4.17 (from requests!=2.11.0,!=2.12.2,>=2.5.2->docker==2.2.1)\r\n  Downloading https://files.pythonhosted.org/packages/7c/e6/92ad559b7192d846975fc916b65f667c7b8c3a32bea7372340bfe9a15fa5/certifi-2018.4.16-py2.py3-none-any.whl (150kB)\r\n    100% |████████████████████████████████| 153kB 9.8MB/s \r\ncheetah 2.4.4 requires Markdown>=2.0.1, which is not installed.\r\nInstalling collected packages: backports.ssl-match-hostname, websocket-client, docker-pycreds, urllib3, chardet, certifi, requests, docker\r\n  Running setup.py install for backports.ssl-match-hostname ... done\r\n  Found existing installation: urllib3 1.7.1\r\nCannot uninstall 'urllib3'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.\r\n/usr/local/lib/python2.7/dist-packages/pip/_vendor/urllib3/util/ssl_.py:137: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\r\n  InsecurePlatformWarning\r\n```\r\n\r\n## Additional information you deem important:\r\n* Might this be an AMI issue I'm having or some Python version conflict as the error indicates or something else?\r\n"},"comment":{"url":"https://api.github.com/repos/apache/incubator-openwhisk/issues/comments/386154868","html_url":"https://github.com/apache/incubator-openwhisk/issues/3605#issuecomment-386154868","issue_url":"https://api.github.com/repos/apache/incubator-openwhisk/issues/3605","id":386154868,"user":{"login":"nerdguru","id":374976,"avatar_url":"https://avatars0.githubusercontent.com/u/374976?v=4","gravatar_id":"","url":"https://api.github.com/users/nerdguru","html_url":"https://github.com/nerdguru","followers_url":"https://api.github.com/users/nerdguru/followers","following_url":"https://api.github.com/users/nerdguru/following{/other_user}","gists_url":"https://api.github.com/users/nerdguru/gists{/gist_id}","starred_url":"https://api.github.com/users/nerdguru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nerdguru/subscriptions","organizations_url":"https://api.github.com/users/nerdguru/orgs","repos_url":"https://api.github.com/users/nerdguru/repos","events_url":"https://api.github.com/users/nerdguru/events{/privacy}","received_events_url":"https://api.github.com/users/nerdguru/received_events","type":"User","site_admin":false},"created_at":"2018-05-02T23:46:22Z","updated_at":"2018-05-02T23:46:22Z","author_association":"NONE","body":"Amazon Machine Image.\r\n\r\nami-af868e9f in US West 2 can be found here, as an example:\r\nhttp://cloud-images.ubuntu.com/releases/14.04.3/14.04.3/\r\n\r\nThe 64-bit HVM.\r\n\r\n"}}
{"actor":{"display_login":"nerdguru"}}