Problem in gnocchi with devstack behind proxy when executing the pip install command

Bug #1662303 reported by Marcus Floriano
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Gnocchi
Triaged
Undecided
Unassigned

Bug Description

When installing devstack with gnocchi behind a proxy displays error below.

To fix this problem you need to add the option "--proxy http://user:password@proxyserver:port" in the line "++/opt/stack/gnocchi/devstack/plugin.sh:install_gnocchi:391"

++/opt/stack/gnocchi/devstack/plugin.sh:install_gnocchi:388 '[' True == True ']'
++/opt/stack/gnocchi/devstack/plugin.sh:install_gnocchi:388 EXTRA_FLAVOR=,keystone
++/opt/stack/gnocchi/devstack/plugin.sh:install_gnocchi:391 sudo -H pip install -e '/opt/stack/gnocchi[test,file,mysql,keystone]'
Obtaining file:///opt/stack/gnocchi
Requirement already satisfied: pbr in /usr/local/lib/python2.7/dist-packages (from gnocchi==3.1.1.dev2)
Requirement already satisfied: numpy>=1.9.0 in /usr/local/lib/python2.7/dist-packages (from gnocchi==3.1.1.dev2)
Requirement already satisfied: iso8601 in /usr/local/lib/python2.7/dist-packages (from gnocchi==3.1.1.dev2)
Requirement already satisfied: oslo.config>=2.6.0 in /usr/local/lib/python2.7/dist-packages (from gnocchi==3.1.1.dev2)
Requirement already satisfied: oslo.log>=2.3.0 in /usr/local/lib/python2.7/dist-packages (from gnocchi==3.1.1.dev2)
Requirement already satisfied: oslo.policy>=0.3.0 in /usr/local/lib/python2.7/dist-packages (from gnocchi==3.1.1.dev2)
Requirement already satisfied: oslo.serialization>=1.4.0 in /usr/local/lib/python2.7/dist-packages (from gnocchi==3.1.1.dev2)
Requirement already satisfied: oslo.utils>=3.18.0 in /usr/local/lib/python2.7/dist-packages (from gnocchi==3.1.1.dev2)
Requirement already satisfied: oslo.middleware>=3.22.0 in /usr/local/lib/python2.7/dist-packages (from gnocchi==3.1.1.dev2)
Collecting pandas>=0.18.0 (from gnocchi==3.1.1.dev2)
  Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7fa41d43dad0>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/pandas/
  Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7fa41d43de90>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/pandas/
  Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7fa41d43d310>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/pandas/
  Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7fa41d596e50>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/pandas/
  Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7fa41d596c50>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/pandas/
  Could not find a version that satisfies the requirement pandas>=0.18.0 (from gnocchi==3.1.1.dev2) (from versions: )
No matching distribution found for pandas>=0.18.0 (from gnocchi==3.1.1.dev2)

Revision history for this message
Julien Danjou (jdanjou) wrote :

devstack has a function that re-export HTTP_PROXY variables when calling sudo pip install. Unfortunately it can't be used by Gnocchi since the upper-constraint might break it at any point.

So we should probably copy the same mechanism.

Changed in gnocchi:
status: New → Triaged
Revision history for this message
Marcus Floriano (marcus-floriano) wrote :

Ok, thanks, this is better solution.

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.