New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 864804 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner: ----
Closed: Jul 19
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 1
Type: Bug



Sign in to add a comment

Chameleon: pip failed installing during to "remote-install"

Project Member Reported by waihong@chromium.org, Jul 17

Issue description

~/trunk/src/platform/chameleon $ make && make remote-install CHAMELEON_HOST=100.127.27.255
...
sync time with host...
Current chameleon time: Tue Jul 17 12:38:33 UTC 2018
Collecting pip
/tmp/tmpfInAaa/pip.zip/pip/_vendor/requests/packages/urllib3/util/ssl_.py:318: 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.org/en/latest/security.html#snimissingwarning.
/tmp/tmpfInAaa/pip.zip/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: 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.org/en/latest/security.html#insecureplatformwarning.
  Could not fetch URL https://pypi.python.org/simple/pip/: There was a problem confirming the ssl certificate: [Errno 1] _ssl.c:504: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version - skipping
  Could not find a version that satisfies the requirement pip (from versions: )
No matching distribution found for pip
deploy/deploy_pip: line 28: pip: command not found
deploy/deploy_pip: line 37: pip: command not found
PIP still has the old chameleond. Uninstall it...
deploy/deploy_pip: line 40: pip: command not found
Traceback (most recent call last):
  File "setup.py", line 8, in <module>
    from setuptools import setup
ImportError: No module named setuptools
make: *** [install] Error 1
make: *** [Makefile:80: remote-install] Error 2
 
This external dependency of installing the pip package is quite fragile. Errors happen on and off frequently. A robust way is to use a golden image which already has a stable pip tool installed. We can skip install it again every time.

Patch like:
  https://chromium-review.googlesource.com/1141211
Labels: OS-Chrome
Project Member

Comment 3 by bugdroid1@chromium.org, Jul 19

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/platform/chameleon/+/502d33f069064ea7d8d713920070505e92cadb9b

commit 502d33f069064ea7d8d713920070505e92cadb9b
Author: Wai-Hong Tam <waihong@google.com>
Date: Thu Jul 19 19:13:58 2018

deploy: Skip installing pip again if it is already installed

Installing the pip package, which is an external dependency, is
quite fragile. Errors happen on and off frequently. A robust way
is to use a golden image which already has a stable pip tool
installed. We can skip install it again every time.

BUG= chromium:864804 
TEST=make remote-install CHAMELEON_HOST=<IP>

Change-Id: Ic59944b40d33e59381051c56e22a4c4778a817c4
Reviewed-on: https://chromium-review.googlesource.com/1141211
Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com>
Tested-by: Wai-Hong Tam <waihong@google.com>
Reviewed-by: Kalin Stoyanov <kalin@chromium.org>

[modify] https://crrev.com/502d33f069064ea7d8d713920070505e92cadb9b/deploy/deploy_pip

Status: Fixed (was: Untriaged)

Sign in to add a comment