upgrade pip before using -c option

Bug #1744403 reported by Mark Hamzy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
diskimage-builder
Fix Released
Undecided
Mark Hamzy

Bug Description

The installed pip can be an older version which does not support the -c argument. Therefore, upgrade pip before using -c.

2018-01-19 22:00:24.230 | dib-run-parts Running /tmp/in_target.d/install.d/60-ironic-agent-install
2018-01-19 22:00:24.232 | + set -eu
2018-01-19 22:00:24.232 | + set -o pipefail
2018-01-19 22:00:24.233 | ++ dirname /tmp/in_target.d/install.d/60-ironic-agent-install
2018-01-19 22:00:24.234 | + SCRIPTDIR=/tmp/in_target.d/install.d
2018-01-19 22:00:24.234 | + IPADIR=/usr/share/ironic-python-agent
2018-01-19 22:00:24.234 | + /usr/share/ironic-python-agent/imagebuild/common/generate_upper_constraints.sh /usr/share/ironic-python-agent/upper-constraints.txt
2018-01-19 22:00:24.240 | generate_upper_constraints.sh: Generating local constraints file...
2018-01-19 22:00:24.240 | generate_upper_constraints.sh: UPPER_CONSTRAINTS_FILE is not defined. Using fallback strategies.
2018-01-19 22:00:24.240 | generate_upper_constraints.sh: File '/opt/stack/new/requirements/upper-constraints.txt' not found. Skipping local file strategy.
2018-01-19 22:00:24.240 | generate_upper_constraints.sh: tox.ini indicates 'https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt' as fallback.
2018-01-19 22:00:24.240 | generate_upper_constraints.sh: Downloading from 'https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt'
2018-01-19 22:00:24.245 | % Total % Received % Xferd Average Speed Time Time Time Current
2018-01-19 22:00:24.245 | Dload Upload Total Spent Left Speed
2018-01-19 22:00:24.509 | ^M 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0^M100 12144 100 12144 0 0 46000 0 --:--:-- --:--:-- --:--:-- 46174
2018-01-19 22:00:24.513 | + virtualenv /usr/share/ironic-python-agent/venv
2018-01-19 22:00:24.762 | New python executable in /usr/share/ironic-python-agent/venv/bin/python
2018-01-19 22:00:25.343 | Installing Setuptools..............................................................................................................................................................................................................................done.
2018-01-19 22:00:25.923 | Installing Pip.....................................................................................................................................................................................................................................................................................................................................done.
2018-01-19 22:00:25.925 | + /usr/share/ironic-python-agent/venv/bin/pip --version
2018-01-19 22:00:26.080 | pip 1.4.1 from /usr/share/ironic-python-agent/venv/lib/python2.7/site-packages (python 2.7)
2018-01-19 22:00:26.088 | + /usr/share/ironic-python-agent/venv/bin/pip install -c bob bob
2018-01-19 22:00:26.226 |
2018-01-19 22:00:26.226 | Usage:
2018-01-19 22:00:26.226 | pip install [options] <requirement specifier> ...
2018-01-19 22:00:26.226 | pip install [options] -r <requirements file> ...
2018-01-19 22:00:26.226 | pip install [options] [-e] <vcs project url> ...
2018-01-19 22:00:26.226 | pip install [options] [-e] <local project path> ...
2018-01-19 22:00:26.226 | pip install [options] <archive url/path> ...
2018-01-19 22:00:26.228 |
2018-01-19 22:00:26.228 | no such option: -c

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to diskimage-builder (master)

Fix proposed to branch: master
Review: https://review.openstack.org/535983

Changed in diskimage-builder:
assignee: nobody → Mark Hamzy (mark-hamzy)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to diskimage-builder (master)

Reviewed: https://review.openstack.org/535983
Committed: https://git.openstack.org/cgit/openstack/diskimage-builder/commit/?id=34ff72f2530ed8925c8b5d71371808d39986866f
Submitter: Zuul
Branch: master

commit 34ff72f2530ed8925c8b5d71371808d39986866f
Author: Mark Hamzy <email address hidden>
Date: Fri Jan 19 13:08:13 2018 -0600

    upgrade pip before using -c option

    The installed pip can be an older version which does not support
    the -c argument. Therefore, upgrade pip before using -c.

    Change-Id: If18d8ea822a62c8551c9c4d47354d58b0299fed2
    Closes-Bug: 1744403

Changed in diskimage-builder:
status: In Progress → Fix Released
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.