Install PIP Failed

Bug #1782051 reported by Satish Patel
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack-Ansible
New
Undecided
Unassigned

Bug Description

I have openstack cluster (CentOS 7.5) running on 16.0.14 and today have planning to upgrade version 16.0.15 and stuck here, what is the way out from here?

TASK [pip_install : Install PIP] ****************************************************************************************************************************
Monday 16 July 2018 18:43:16 -0400 (0:00:00.301) 0:12:42.386 ***********
FAILED - RETRYING: Install PIP (3 retries left).
FAILED - RETRYING: Install PIP (3 retries left).
FAILED - RETRYING: Install PIP (3 retries left).
FAILED - RETRYING: Install PIP (3 retries left).
FAILED - RETRYING: Install PIP (2 retries left).
FAILED - RETRYING: Install PIP (2 retries left).
FAILED - RETRYING: Install PIP (2 retries left).
FAILED - RETRYING: Install PIP (2 retries left).
FAILED - RETRYING: Install PIP (1 retries left).
FAILED - RETRYING: Install PIP (1 retries left).
FAILED - RETRYING: Install PIP (1 retries left).
FAILED - RETRYING: Install PIP (1 retries left).
fatal: [ostack-infra-01]: FAILED! => {"attempts": 3, "changed": false, "cmd": ["python", "/opt/get-pip.py", "--constraint", "/opt/global-requirement-pins.txt", "--constraint", "http://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?id=60d840183f0665483e942649e5bc3e4f6ecbbad3", "pip", "setuptools", "wheel"], "delta": "0:00:01.458622", "end": "2018-07-16 18:43:29.752177", "failed": true, "rc": 2, "start": "2018-07-16 18:43:28.293555", "stderr": "Ignoring jsbeautifier: markers \"python_version=='3.4'\" don't match your environment\nIgnoring jsbeautifier: markers \"python_version=='3.5'\" don't match your environment\nIgnoring hyperframe: markers \"python_version=='3.4'\" don't match your environment\nIgnoring hyperframe: markers \"python_version=='3.5'\" don't match your environment\nIgnoring cssutils: markers \"python_version=='3.4'\" don't match your environment\nIgnoring cssutils: markers \"python_version=='3.5'\" don't match your environment\nIgnoring kaitaistruct: markers \"python_version=='3.4'\" don't match your environment\nIgnoring kaitaistruct: markers \"python_version=='3.5'\" don't match your environment\nIgnoring tornado: markers \"python_version=='3.4'\" don't match your environment\nIgnoring tornado: markers \"python_version=='3.5'\" don't match your environment\nException:\nTraceback (most recent call last):\n File \"/tmp/tmpf1p4So/pip.zip/pip/basecommand.py\", line 211, in main\n status = self.run(options, args)\n File \"/tmp/tmpf1p4So/pip.zip/pip/commands/install.py\", line 282, in run\n wheel_cache\n File \"/tmp/tmpf1p4So/pip.zip/pip/basecommand.py\", line 266, in populate_requirement_set\n requirement_set.add_requirement(req)\n File \"/tmp/tmpf1p4So/pip.zip/pip/req/req_set.py\", line 267, in add_requirement\n return result\nUnboundLocalError: local variable 'result' referenced before assignment", "stderr_lines": ["Ignoring jsbeautifier: markers \"python_version=='3.4'\" don't match your environment", "Ignoring jsbeautifier: markers \"python_version=='3.5'\" don't match your environment", "Ignoring hyperframe: markers \"python_version=='3.4'\" don't match your environment", "Ignoring hyperframe: markers \"python_version=='3.5'\" don't match your environment", "Ignoring cssutils: markers \"python_version=='3.4'\" don't match your environment", "Ignoring cssutils: markers \"python_version=='3.5'\" don't match your environment", "Ignoring kaitaistruct: markers \"python_version=='3.4'\" don't match your environment", "Ignoring kaitaistruct: markers \"python_version=='3.5'\" don't match your environment", "Ignoring tornado: markers \"python_version=='3.4'\" don't match your environment", "Ignoring tornado: markers \"python_version=='3.5'\" don't match your environment", "Exception:", "Traceback (most recent call last):", " File \"/tmp/tmpf1p4So/pip.zip/pip/basecommand.py\", line 211, in main", " status = self.run(options, args)", " File \"/tmp/tmpf1p4So/pip.zip/pip/commands/install.py\", line 282, in run", " wheel_cache", " File \"/tmp/tmpf1p4So/pip.zip/pip/basecommand.py\", line 266, in populate_requirement_set", " requirement_set.add_requirement(req)", " File \"/tmp/tmpf1p4So/pip.zip/pip/req/req_set.py\", line 267, in add_requirement", " return result", "UnboundLocalError: local variable 'result' referenced before assignment"], "stdout": "", "stdout_lines": []}
fatal: [ostack-log-01]: FAILED! => {"attempts": 3, "changed": false, "cmd": ["python", "/opt/get-pip.py", "--constraint", "/opt/global-requirement-pins.txt", "--constraint", "http://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?id=60d840183f0665483e942649e5bc3e4f6ecbbad3", "pip", "setuptools", "wheel"], "delta": "0:00:01.773825", "end": "2018-07-16 18:43:18.521041", "failed": true, "rc": 2, "start": "2018-07-16 18:43:16.747216", "stderr": "Ignoring jsbeautifier: markers \"python_version=='3.4'\" don't match your environment\nIgnoring jsbeautifier: markers \"python_version=='3.5'\" don't match your environment\nIgnoring hyperframe: markers \"python_version=='3.4'\" don't match your environment\nIgnoring hyperframe: markers \"python_version=='3.5'\" don't match your environment\nIgnoring cssutils: markers \"python_version=='3.4'\" don't match your environment\nIgnoring cssutils: markers \"python_version=='3.5'\" don't match your environment\nIgnoring kaitaistruct: markers \"python_version=='3.4'\" don't match your environment\nIgnoring kaitaistruct: markers \"python_version=='3.5'\" don't match your environment\nIgnoring tornado: markers \"python_version=='3.4'\" don't match your environment\nIgnoring tornado: markers \"python_version=='3.5'\" don't match your environment\nException:\nTraceback (most recent call last):\n File \"/tmp/tmpfYxb32/pip.zip/pip/basecommand.py\", line 211, in main\n status = self.run(options, args)\n File \"/tmp/tmpfYxb32/pip.zip/pip/commands/install.py\", line 282, in run\n wheel_cache\n File \"/tmp/tmpfYxb32/pip.zip/pip/basecommand.py\", line 266, in populate_requirement_set\n requirement_set.add_requirement(req)\n File \"/tmp/tmpfYxb32/pip.zip/pip/req/req_set.py\", line 267, in add_requirement\n return result\nUnboundLocalError: local variable 'result' referenced before assignment", "stderr_lines": ["Ignoring jsbeautifier: markers \"python_version=='3.4'\" don't match your environment", "Ignoring jsbeautifier: markers \"python_version=='3.5'\" don't match your environment", "Ignoring hyperframe: markers \"python_version=='3.4'\" don't match your environment", "Ignoring hyperframe: markers \"python_version=='3.5'\" don't match your environment", "Ignoring cssutils: markers \"python_version=='3.4'\" don't match your environment", "Ignoring cssutils: markers \"python_version=='3.5'\" don't match your environment", "Ignoring kaitaistruct: markers \"python_version=='3.4'\" don't match your environment", "Ignoring kaitaistruct: markers \"python_version=='3.5'\" don't match your environment", "Ignoring tornado: markers \"python_version=='3.4'\" don't match your environment", "Ignoring tornado: markers \"python_version=='3.5'\" don't match your environment", "Exception:", "Traceback (most recent call last):", " File \"/tmp/tmpfYxb32/pip.zip/pip/basecommand.py\", line 211, in main", " status = self.run(options, args)", " File \"/tmp/tmpfYxb32/pip.zip/pip/commands/install.py\", line 282, in run", " wheel_cache", " File \"/tmp/tmpfYxb32/pip.zip/pip/basecommand.py\", line 266, in populate_requirement_set", " requirement_set.add_requirement(req)", " File \"/tmp/tmpfYxb32/pip.zip/pip/req/req_set.py\", line 267, in add_requirement", " return result", "UnboundLocalError: local variable 'result' referenced before assignment"], "stdout": "", "stdout_lines": []}
fatal: [ostack-infra-02]: FAILED! => {"attempts": 3, "changed": false, "cmd": ["python", "/opt/get-pip.py", "--constraint", "/opt/global-requirement-pins.txt", "--constraint", "http://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?id=60d840183f0665483e942649e5bc3e4f6ecbbad3", "pip", "setuptools", "wheel"], "delta": "0:00:02.027863", "end": "2018-07-16 18:43:32.320784", "failed": true, "rc": 2, "start": "2018-07-16 18:43:30.292921", "stderr": "Ignoring jsbeautifier: markers \"python_version=='3.4'\" don't match your environment\nIgnoring jsbeautifier: markers \"python_version=='3.5'\" don't match your environment\nIgnoring hyperframe: markers \"python_version=='3.4'\" don't match your environment\nIgnoring hyperframe: markers \"python_version=='3.5'\" don't match your environment\nIgnoring cssutils: markers \"python_version=='3.4'\" don't match your environment\nIgnoring cssutils: markers \"python_version=='3.5'\" don't match your environment\nIgnoring kaitaistruct: markers \"python_version=='3.4'\" don't match your environment\nIgnoring kaitaistruct: markers \"python_version=='3.5'\" don't match your environment\nIgnoring tornado: markers \"python_version=='3.4'\" don't match your environment\nIgnoring tornado: markers \"python_version=='3.5'\" don't match your environment\nException:\nTraceback (most recent call last):\n File \"/tmp/tmpe7CVhW/pip.zip/pip/basecommand.py\", line 211, in main\n status = self.run(options, args)\n File \"/tmp/tmpe7CVhW/pip.zip/pip/commands/install.py\", line 282, in run\n wheel_cache\n File \"/tmp/tmpe7CVhW/pip.zip/pip/basecommand.py\", line 266, in populate_requirement_set\n requirement_set.add_requirement(req)\n File \"/tmp/tmpe7CVhW/pip.zip/pip/req/req_set.py\", line 267, in add_requirement\n return result\nUnboundLocalError: local variable 'result' referenced before assignment", "stderr_lines": ["Ignoring jsbeautifier: markers \"python_version=='3.4'\" don't match your environment", "Ignoring jsbeautifier: markers \"python_version=='3.5'\" don't match your environment", "Ignoring hyperframe: markers \"python_version=='3.4'\" don't match your environment", "Ignoring hyperframe: markers \"python_version=='3.5'\" don't match your environment", "Ignoring cssutils: markers \"python_version=='3.4'\" don't match your environment", "Ignoring cssutils: markers \"python_version=='3.5'\" don't match your environment", "Ignoring kaitaistruct: markers \"python_version=='3.4'\" don't match your environment", "Ignoring kaitaistruct: markers \"python_version=='3.5'\" don't match your environment", "Ignoring tornado: markers \"python_version=='3.4'\" don't match your environment", "Ignoring tornado: markers \"python_version=='3.5'\" don't match your environment", "Exception:", "Traceback (most recent call last):", " File \"/tmp/tmpe7CVhW/pip.zip/pip/basecommand.py\", line 211, in main", " status = self.run(options, args)", " File \"/tmp/tmpe7CVhW/pip.zip/pip/commands/install.py\", line 282, in run", " wheel_cache", " File \"/tmp/tmpe7CVhW/pip.zip/pip/basecommand.py\", line 266, in populate_requirement_set", " requirement_set.add_requirement(req)", " File \"/tmp/tmpe7CVhW/pip.zip/pip/req/req_set.py\", line 267, in add_requirement", " return result", "UnboundLocalError: local variable 'result' referenced before assignment"], "stdout": "", "stdout_lines": []}
fatal: [ostack-infra-03]: FAILED! => {"attempts": 3, "changed": false, "cmd": ["python", "/opt/get-pip.py", "--constraint", "/opt/global-requirement-pins.txt", "--constraint", "http://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?id=60d840183f0665483e942649e5bc3e4f6ecbbad3", "pip", "setuptools", "wheel"], "delta": "0:00:01.997164", "end": "2018-07-16 18:43:32.344634", "failed": true, "rc": 2, "start": "2018-07-16 18:43:30.347470", "stderr": "Ignoring jsbeautifier: markers \"python_version=='3.4'\" don't match your environment\nIgnoring jsbeautifier: markers \"python_version=='3.5'\" don't match your environment\nIgnoring hyperframe: markers \"python_version=='3.4'\" don't match your environment\nIgnoring hyperframe: markers \"python_version=='3.5'\" don't match your environment\nIgnoring cssutils: markers \"python_version=='3.4'\" don't match your environment\nIgnoring cssutils: markers \"python_version=='3.5'\" don't match your environment\nIgnoring kaitaistruct: markers \"python_version=='3.4'\" don't match your environment\nIgnoring kaitaistruct: markers \"python_version=='3.5'\" don't match your environment\nIgnoring tornado: markers \"python_version=='3.4'\" don't match your environment\nIgnoring tornado: markers \"python_version=='3.5'\" don't match your environment\nException:\nTraceback (most recent call last):\n File \"/tmp/tmphY1eLq/pip.zip/pip/basecommand.py\", line 211, in main\n status = self.run(options, args)\n File \"/tmp/tmphY1eLq/pip.zip/pip/commands/install.py\", line 282, in run\n wheel_cache\n File \"/tmp/tmphY1eLq/pip.zip/pip/basecommand.py\", line 266, in populate_requirement_set\n requirement_set.add_requirement(req)\n File \"/tmp/tmphY1eLq/pip.zip/pip/req/req_set.py\", line 267, in add_requirement\n return result\nUnboundLocalError: local variable 'result' referenced before assignment", "stderr_lines": ["Ignoring jsbeautifier: markers \"python_version=='3.4'\" don't match your environment", "Ignoring jsbeautifier: markers \"python_version=='3.5'\" don't match your environment", "Ignoring hyperframe: markers \"python_version=='3.4'\" don't match your environment", "Ignoring hyperframe: markers \"python_version=='3.5'\" don't match your environment", "Ignoring cssutils: markers \"python_version=='3.4'\" don't match your environment", "Ignoring cssutils: markers \"python_version=='3.5'\" don't match your environment", "Ignoring kaitaistruct: markers \"python_version=='3.4'\" don't match your environment", "Ignoring kaitaistruct: markers \"python_version=='3.5'\" don't match your environment", "Ignoring tornado: markers \"python_version=='3.4'\" don't match your environment", "Ignoring tornado: markers \"python_version=='3.5'\" don't match your environment", "Exception:", "Traceback (most recent call last):", " File \"/tmp/tmphY1eLq/pip.zip/pip/basecommand.py\", line 211, in main", " status = self.run(options, args)", " File \"/tmp/tmphY1eLq/pip.zip/pip/commands/install.py\", line 282, in run", " wheel_cache", " File \"/tmp/tmphY1eLq/pip.zip/pip/basecommand.py\", line 266, in populate_requirement_set", " requirement_set.add_requirement(req)", " File \"/tmp/tmphY1eLq/pip.zip/pip/req/req_set.py\", line 267, in add_requirement", " return result", "UnboundLocalError: local variable 'result' referenced before assignment"], "stdout": "", "stdout_lines": []}

TASK [pip_install : Install PIP (fall back mode)] ***********************************************************************************************************
Monday 16 July 2018 18:43:32 -0400 (0:00:16.156) 0:12:58.542 ***********
FAILED - RETRYING: Install PIP (fall back mode) (3 retries left).
FAILED - RETRYING: Install PIP (fall back mode) (3 retries left).
FAILED - RETRYING: Install PIP (fall back mode) (3 retries left).
FAILED - RETRYING: Install PIP (fall back mode) (3 retries left).
FAILED - RETRYING: Install PIP (fall back mode) (2 retries left).
FAILED - RETRYING: Install PIP (fall back mode) (2 retries left).
FAILED - RETRYING: Install PIP (fall back mode) (2 retries left).
FAILED - RETRYING: Install PIP (fall back mode) (2 retries left).
FAILED - RETRYING: Install PIP (fall back mode) (1 retries left).
FAILED - RETRYING: Install PIP (fall back mode) (1 retries left).
FAILED - RETRYING: Install PIP (fall back mode) (1 retries left).
FAILED - RETRYING: Install PIP (fall back mode) (1 retries left).
fatal: [ostack-log-01]: FAILED! => {"attempts": 3, "changed": false, "cmd": ["python", "/opt/get-pip.py", "--isolated", "--constraint", "/opt/global-requirement-pins.txt", "--constraint", "http://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?id=60d840183f0665483e942649e5bc3e4f6ecbbad3", "pip", "setuptools", "wheel"], "delta": "0:00:01.435794", "end": "2018-07-16 18:43:35.218671", "failed": true, "rc": 2, "start": "2018-07-16 18:43:33.782877", "stderr": "Ignoring jsbeautifier: markers \"python_version=='3.4'\" don't match your environment\nIgnoring jsbeautifier: markers \"python_version=='3.5'\" don't match your environment\nIgnoring hyperframe: markers \"python_version=='3.4'\" don't match your environment\nIgnoring hyperframe: markers \"python_version=='3.5'\" don't match your environment\nIgnoring cssutils: markers \"python_version=='3.4'\" don't match your environment\nIgnoring cssutils: markers \"python_version=='3.5'\" don't match your environment\nIgnoring kaitaistruct: markers \"python_version=='3.4'\" don't match your environment\nIgnoring kaitaistruct: markers \"python_version=='3.5'\" don't match your environment\nIgnoring tornado: markers \"python_version=='3.4'\" don't match your environment\nIgnoring tornado: markers \"python_version=='3.5'\" don't match your environment\nException:\nTraceback (most recent call last):\n File \"/tmp/tmpjZk2D7/pip.zip/pip/basecommand.py\", line 211, in main\n status = self.run(options, args)\n File \"/tmp/tmpjZk2D7/pip.zip/pip/commands/install.py\", line 282, in run\n wheel_cache\n File \"/tmp/tmpjZk2D7/pip.zip/pip/basecommand.py\", line 266, in populate_requirement_set\n requirement_set.add_requirement(req)\n File \"/tmp/tmpjZk2D7/pip.zip/pip/req/req_set.py\", line 267, in add_requirement\n return result\nUnboundLocalError: local variable 'result' referenced before assignment\nYou are using pip version 9.0.3, however version 10.0.1 is available.\nYou should consider upgrading via the 'pip install --upgrade pip' command.", "stderr_lines": ["Ignoring jsbeautifier: markers \"python_version=='3.4'\" don't match your environment", "Ignoring jsbeautifier: markers \"python_version=='3.5'\" don't match your environment", "Ignoring hyperframe: markers \"python_version=='3.4'\" don't match your environment", "Ignoring hyperframe: markers \"python_version=='3.5'\" don't match your environment", "Ignoring cssutils: markers \"python_version=='3.4'\" don't match your environment", "Ignoring cssutils: markers \"python_version=='3.5'\" don't match your environment", "Ignoring kaitaistruct: markers \"python_version=='3.4'\" don't match your environment", "Ignoring kaitaistruct: markers \"python_version=='3.5'\" don't match your environment", "Ignoring tornado: markers \"python_version=='3.4'\" don't match your environment", "Ignoring tornado: markers \"python_version=='3.5'\" don't match your environment", "Exception:", "Traceback (most recent call last):", " File \"/tmp/tmpjZk2D7/pip.zip/pip/basecommand.py\", line 211, in main", " status = self.run(options, args)", " File \"/tmp/tmpjZk2D7/pip.zip/pip/commands/install.py\", line 282, in run", " wheel_cache", " File \"/tmp/tmpjZk2D7/pip.zip/pip/basecommand.py\", line 266, in populate_requirement_set", " requirement_set.add_requirement(req)", " File \"/tmp/tmpjZk2D7/pip.zip/pip/req/req_set.py\", line 267, in add_requirement", " return result", "UnboundLocalError: local variable 'result' referenced before assignment", "You are using pip version 9.0.3, however version 10.0.1 is available.", "You should consider upgrading via the 'pip install --upgrade pip' command."], "stdout": "", "stdout_lines": []}
fatal: [ostack-infra-01]: FAILED! => {"attempts": 3, "changed": false, "cmd": ["python", "/opt/get-pip.py", "--isolated", "--constraint", "/opt/global-requirement-pins.txt", "--constraint", "http://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?id=60d840183f0665483e942649e5bc3e4f6ecbbad3", "pip", "setuptools", "wheel"], "delta": "0:00:01.464687", "end": "2018-07-16 18:43:46.813673", "failed": true, "rc": 2, "start": "2018-07-16 18:43:45.348986", "stderr": "Ignoring jsbeautifier: markers \"python_version=='3.4'\" don't match your environment\nIgnoring jsbeautifier: markers \"python_version=='3.5'\" don't match your environment\nIgnoring hyperframe: markers \"python_version=='3.4'\" don't match your environment\nIgnoring hyperframe: markers \"python_version=='3.5'\" don't match your environment\nIgnoring cssutils: markers \"python_version=='3.4'\" don't match your environment\nIgnoring cssutils: markers \"python_version=='3.5'\" don't match your environment\nIgnoring kaitaistruct: markers \"python_version=='3.4'\" don't match your environment\nIgnoring kaitaistruct: markers \"python_version=='3.5'\" don't match your environment\nIgnoring tornado: markers \"python_version=='3.4'\" don't match your environment\nIgnoring tornado: markers \"python_version=='3.5'\" don't match your environment\nException:\nTraceback (most recent call last):\n File \"/tmp/tmp_XPD7G/pip.zip/pip/basecommand.py\", line 211, in main\n status = self.run(options, args)\n File \"/tmp/tmp_XPD7G/pip.zip/pip/commands/install.py\", line 282, in run\n wheel_cache\n File \"/tmp/tmp_XPD7G/pip.zip/pip/basecommand.py\", line 266, in populate_requirement_set\n requirement_set.add_requirement(req)\n File \"/tmp/tmp_XPD7G/pip.zip/pip/req/req_set.py\", line 267, in add_requirement\n return result\nUnboundLocalError: local variable 'result' referenced before assignment\nYou are using pip version 9.0.3, however version 10.0.1 is available.\nYou should consider upgrading via the 'pip install --upgrade pip' command.", "stderr_lines": ["Ignoring jsbeautifier: markers \"python_version=='3.4'\" don't match your environment", "Ignoring jsbeautifier: markers \"python_version=='3.5'\" don't match your environment", "Ignoring hyperframe: markers \"python_version=='3.4'\" don't match your environment", "Ignoring hyperframe: markers \"python_version=='3.5'\" don't match your environment", "Ignoring cssutils: markers \"python_version=='3.4'\" don't match your environment", "Ignoring cssutils: markers \"python_version=='3.5'\" don't match your environment", "Ignoring kaitaistruct: markers \"python_version=='3.4'\" don't match your environment", "Ignoring kaitaistruct: markers \"python_version=='3.5'\" don't match your environment", "Ignoring tornado: markers \"python_version=='3.4'\" don't match your environment", "Ignoring tornado: markers \"python_version=='3.5'\" don't match your environment", "Exception:", "Traceback (most recent call last):", " File \"/tmp/tmp_XPD7G/pip.zip/pip/basecommand.py\", line 211, in main", " status = self.run(options, args)", " File \"/tmp/tmp_XPD7G/pip.zip/pip/commands/install.py\", line 282, in run", " wheel_cache", " File \"/tmp/tmp_XPD7G/pip.zip/pip/basecommand.py\", line 266, in populate_requirement_set", " requirement_set.add_requirement(req)", " File \"/tmp/tmp_XPD7G/pip.zip/pip/req/req_set.py\", line 267, in add_requirement", " return result", "UnboundLocalError: local variable 'result' referenced before assignment", "You are using pip version 9.0.3, however version 10.0.1 is available.", "You should consider upgrading via the 'pip install --upgrade pip' command."], "stdout": "", "stdout_lines": []}
fatal: [ostack-infra-03]: FAILED! => {"attempts": 3, "changed": false, "cmd": ["python", "/opt/get-pip.py", "--isolated", "--constraint", "/opt/global-requirement-pins.txt", "--constraint", "http://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?id=60d840183f0665483e942649e5bc3e4f6ecbbad3", "pip", "setuptools", "wheel"], "delta": "0:00:01.991880", "end": "2018-07-16 18:43:49.281232", "failed": true, "rc": 2, "start": "2018-07-16 18:43:47.289352", "stderr": "Ignoring jsbeautifier: markers \"python_version=='3.4'\" don't match your environment\nIgnoring jsbeautifier: markers \"python_version=='3.5'\" don't match your environment\nIgnoring hyperframe: markers \"python_version=='3.4'\" don't match your environment\nIgnoring hyperframe: markers \"python_version=='3.5'\" don't match your environment\nIgnoring cssutils: markers \"python_version=='3.4'\" don't match your environment\nIgnoring cssutils: markers \"python_version=='3.5'\" don't match your environment\nIgnoring kaitaistruct: markers \"python_version=='3.4'\" don't match your environment\nIgnoring kaitaistruct: markers \"python_version=='3.5'\" don't match your environment\nIgnoring tornado: markers \"python_version=='3.4'\" don't match your environment\nIgnoring tornado: markers \"python_version=='3.5'\" don't match your environment\nException:\nTraceback (most recent call last):\n File \"/tmp/tmpDKM4H6/pip.zip/pip/basecommand.py\", line 211, in main\n status = self.run(options, args)\n File \"/tmp/tmpDKM4H6/pip.zip/pip/commands/install.py\", line 282, in run\n wheel_cache\n File \"/tmp/tmpDKM4H6/pip.zip/pip/basecommand.py\", line 266, in populate_requirement_set\n requirement_set.add_requirement(req)\n File \"/tmp/tmpDKM4H6/pip.zip/pip/req/req_set.py\", line 267, in add_requirement\n return result\nUnboundLocalError: local variable 'result' referenced before assignment\nYou are using pip version 9.0.3, however version 10.0.1 is available.\nYou should consider upgrading via the 'pip install --upgrade pip' command.", "stderr_lines": ["Ignoring jsbeautifier: markers \"python_version=='3.4'\" don't match your environment", "Ignoring jsbeautifier: markers \"python_version=='3.5'\" don't match your environment", "Ignoring hyperframe: markers \"python_version=='3.4'\" don't match your environment", "Ignoring hyperframe: markers \"python_version=='3.5'\" don't match your environment", "Ignoring cssutils: markers \"python_version=='3.4'\" don't match your environment", "Ignoring cssutils: markers \"python_version=='3.5'\" don't match your environment", "Ignoring kaitaistruct: markers \"python_version=='3.4'\" don't match your environment", "Ignoring kaitaistruct: markers \"python_version=='3.5'\" don't match your environment", "Ignoring tornado: markers \"python_version=='3.4'\" don't match your environment", "Ignoring tornado: markers \"python_version=='3.5'\" don't match your environment", "Exception:", "Traceback (most recent call last):", " File \"/tmp/tmpDKM4H6/pip.zip/pip/basecommand.py\", line 211, in main", " status = self.run(options, args)", " File \"/tmp/tmpDKM4H6/pip.zip/pip/commands/install.py\", line 282, in run", " wheel_cache", " File \"/tmp/tmpDKM4H6/pip.zip/pip/basecommand.py\", line 266, in populate_requirement_set", " requirement_set.add_requirement(req)", " File \"/tmp/tmpDKM4H6/pip.zip/pip/req/req_set.py\", line 267, in add_requirement", " return result", "UnboundLocalError: local variable 'result' referenced before assignment", "You are using pip version 9.0.3, however version 10.0.1 is available.", "You should consider upgrading via the 'pip install --upgrade pip' command."], "stdout": "", "stdout_lines": []}
fatal: [ostack-infra-02]: FAILED! => {"attempts": 3, "changed": false, "cmd": ["python", "/opt/get-pip.py", "--isolated", "--constraint", "/opt/global-requirement-pins.txt", "--constraint", "http://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?id=60d840183f0665483e942649e5bc3e4f6ecbbad3", "pip", "setuptools", "wheel"], "delta": "0:00:02.088762", "end": "2018-07-16 18:43:49.757996", "failed": true, "rc": 2, "start": "2018-07-16 18:43:47.669234", "stderr": "Ignoring jsbeautifier: markers \"python_version=='3.4'\" don't match your environment\nIgnoring jsbeautifier: markers \"python_version=='3.5'\" don't match your environment\nIgnoring hyperframe: markers \"python_version=='3.4'\" don't match your environment\nIgnoring hyperframe: markers \"python_version=='3.5'\" don't match your environment\nIgnoring cssutils: markers \"python_version=='3.4'\" don't match your environment\nIgnoring cssutils: markers \"python_version=='3.5'\" don't match your environment\nIgnoring kaitaistruct: markers \"python_version=='3.4'\" don't match your environment\nIgnoring kaitaistruct: markers \"python_version=='3.5'\" don't match your environment\nIgnoring tornado: markers \"python_version=='3.4'\" don't match your environment\nIgnoring tornado: markers \"python_version=='3.5'\" don't match your environment\nException:\nTraceback (most recent call last):\n File \"/tmp/tmpQgzoyK/pip.zip/pip/basecommand.py\", line 211, in main\n status = self.run(options, args)\n File \"/tmp/tmpQgzoyK/pip.zip/pip/commands/install.py\", line 282, in run\n wheel_cache\n File \"/tmp/tmpQgzoyK/pip.zip/pip/basecommand.py\", line 266, in populate_requirement_set\n requirement_set.add_requirement(req)\n File \"/tmp/tmpQgzoyK/pip.zip/pip/req/req_set.py\", line 267, in add_requirement\n return result\nUnboundLocalError: local variable 'result' referenced before assignment\nYou are using pip version 9.0.3, however version 10.0.1 is available.\nYou should consider upgrading via the 'pip install --upgrade pip' command.", "stderr_lines": ["Ignoring jsbeautifier: markers \"python_version=='3.4'\" don't match your environment", "Ignoring jsbeautifier: markers \"python_version=='3.5'\" don't match your environment", "Ignoring hyperframe: markers \"python_version=='3.4'\" don't match your environment", "Ignoring hyperframe: markers \"python_version=='3.5'\" don't match your environment", "Ignoring cssutils: markers \"python_version=='3.4'\" don't match your environment", "Ignoring cssutils: markers \"python_version=='3.5'\" don't match your environment", "Ignoring kaitaistruct: markers \"python_version=='3.4'\" don't match your environment", "Ignoring kaitaistruct: markers \"python_version=='3.5'\" don't match your environment", "Ignoring tornado: markers \"python_version=='3.4'\" don't match your environment", "Ignoring tornado: markers \"python_version=='3.5'\" don't match your environment", "Exception:", "Traceback (most recent call last):", " File \"/tmp/tmpQgzoyK/pip.zip/pip/basecommand.py\", line 211, in main", " status = self.run(options, args)", " File \"/tmp/tmpQgzoyK/pip.zip/pip/commands/install.py\", line 282, in run", " wheel_cache", " File \"/tmp/tmpQgzoyK/pip.zip/pip/basecommand.py\", line 266, in populate_requirement_set", " requirement_set.add_requirement(req)", " File \"/tmp/tmpQgzoyK/pip.zip/pip/req/req_set.py\", line 267, in add_requirement", " return result", "UnboundLocalError: local variable 'result' referenced before assignment", "You are using pip version 9.0.3, however version 10.0.1 is available.", "You should consider upgrading via the 'pip install --upgrade pip' command."], "stdout": "", "stdout_lines": []}

PLAY RECAP **************************************************************************************************************************************************
ostack-compute-01 : ok=14 changed=3 unreachable=0 failed=1
ostack-haproxy-01 : ok=30 changed=7 unreachable=0 failed=0
ostack-haproxy-02 : ok=30 changed=7 unreachable=0 failed=0
ostack-infra-01 : ok=58 changed=9 unreachable=0 failed=2
ostack-infra-02 : ok=59 changed=9 unreachable=0 failed=2
ostack-infra-03 : ok=58 changed=9 unreachable=0 failed=2

Revision history for this message
Satish Patel (satish-txt) wrote :

I tried manually and log server and getting this error

[root@ostack-log-01 ~]# python /opt/get-pip.py --constraint /opt/global-requirement-pins.txt --constraint http://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?id=60d840183f0665483e942649e5bc3e4f6ecbbad3 pip setuptools wheel
Ignoring jsbeautifier: markers "python_version=='3.4'" don't match your environment
Ignoring jsbeautifier: markers "python_version=='3.5'" don't match your environment
Ignoring hyperframe: markers "python_version=='3.4'" don't match your environment
Ignoring hyperframe: markers "python_version=='3.5'" don't match your environment
Ignoring cssutils: markers "python_version=='3.4'" don't match your environment
Ignoring cssutils: markers "python_version=='3.5'" don't match your environment
Ignoring kaitaistruct: markers "python_version=='3.4'" don't match your environment
Ignoring kaitaistruct: markers "python_version=='3.5'" don't match your environment
Ignoring tornado: markers "python_version=='3.4'" don't match your environment
Ignoring tornado: markers "python_version=='3.5'" don't match your environment
Exception:
Traceback (most recent call last):
  File "/tmp/tmpV8a5Ol/pip.zip/pip/basecommand.py", line 211, in main
    status = self.run(options, args)
  File "/tmp/tmpV8a5Ol/pip.zip/pip/commands/install.py", line 282, in run
    wheel_cache
  File "/tmp/tmpV8a5Ol/pip.zip/pip/basecommand.py", line 266, in populate_requirement_set
    requirement_set.add_requirement(req)
  File "/tmp/tmpV8a5Ol/pip.zip/pip/req/req_set.py", line 267, in add_requirement
    return result
UnboundLocalError: local variable 'result' referenced before assignment

Revision history for this message
Satish Patel (satish-txt) wrote :

Found solution it was get-pip.py version 3.2 issue, after changing to 3.3 it works

duplicate ticket https://bugs.launchpad.net/openstack-ansible/+bug/1779534

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to openstack-ansible-pip_install (stable/queens)

Related fix proposed to branch: stable/queens
Review: https://review.openstack.org/583925

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to openstack-ansible-pip_install (stable/queens)

Reviewed: https://review.openstack.org/583925
Committed: https://git.openstack.org/cgit/openstack/openstack-ansible-pip_install/commit/?id=aa74bf466e10bb41702d1187ca7779dd242e5145
Submitter: Zuul
Branch: stable/queens

commit aa74bf466e10bb41702d1187ca7779dd242e5145
Author: Jean-Philippe Evrard <email address hidden>
Date: Thu Jul 19 12:50:03 2018 +0200

    Ensure get-pip is not used when good version of pip is present

    This is a combined backport of three commits to make sure
    get-pip will be skipped if an appropriate version of pip is
    present.

    By skipping get-pip, no downgrade of pip will happen on the
    hosts, leading to issues like the bug here.

    Here are the commits:
    tests: Do not always fetch the get-pip.py script during tests

    Since we are testing the idempotence of this role, we shouldn't
    fetch the get-pip.py script on every iteration so we set the variable
    to 'false'. Moreover, we bump the PIP version to 9.0.3 since this is
    what is currently being deployed on the hosts. Finally, get-pip.py
    uses --force-reinstall by default which means that everything is being
    reinstalled all the time and this breaks idempotence. We can fix that by
    simply checking if a suitable version of PIP is installed and then use
    it to do a proper upgrade.

    ---

    tasks: main: Fix conditional for PIP script

    The conditional must search the 'stdout' item to find the string we
    are looking for.

    ---

    Ensure the fallback uses the same install method

    We have a test to ensure the install method of pip is from distro
    or get-pip. But if an issue appeared in the first task, the
    fallback method will automatically fallback to get-pip instead
    of fallback to the isolated version of the pre-defined CLI.

    This should ensure consistency by not using get-pip if it's not
    needed.

    ---

    (cherry picked from commit 40373daf7e27ab8cef00611945acf68c3e86fe82)
    (cherry picked from commit fe5d99228bb756a28fb433b4a734d1e604eb0482)
    (cherry picked from commit b6024a918442c0f89e207e496f497d14a8d55ba1)

    Change-Id: Ia6efeb278fd7a7ec32b9a48c8b3e44197afe182c
    Related-Bug: 1782051
    Related-Bug: 1779534

tags: added: in-stable-queens
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to openstack-ansible-repo_build (stable/queens)

Reviewed: https://review.openstack.org/584355
Committed: https://git.openstack.org/cgit/openstack/openstack-ansible-repo_build/commit/?id=64577cd93a5e5e2c37be61e07fa4f39a7a87c2ca
Submitter: Zuul
Branch: stable/queens

commit 64577cd93a5e5e2c37be61e07fa4f39a7a87c2ca
Author: Markos Chandras <email address hidden>
Date: Fri May 25 18:26:26 2018 +0100

    tasks: repo_build_wheels: Download get-pip.py if it does not exist

    /opt/get-pip.py may not exist if the host uses the distribution
    python-pip package. As such, we need to check if the file exists
    and download it if it's missing before trying to copy it to the
    repo build directory.

    This is a combined backport of:
    - https://review.openstack.org/570601
    - https://review.openstack.org/572422
    - https://review.openstack.org/580409
    - https://review.openstack.org/583331

    Related-Review: https://review.openstack.org/583925
    Related-Bug: #1779534
    Related-Bug: #1782051
    Change-Id: I693b930bf337fd08931d835d57ffe9ecae904517
    (cherry picked from commit ea4f8606df8a19edf5aa958a866f77ccafa62e47)

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.