pip_uninstall fails running stack.sh

Bug #1691172 reported by Brian Haley
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
devstack
Fix Released
Undecided
Brian Haley

Bug Description

Just pulled the latest devstack onto my test VM, and it couldn't run stack.sh, just hangs here:

2017-05-16 16:14:07.424 | +inc/python:pip_uninstall:365 sudo -H /usr/local/bin/pip2.7 uninstall libvirt-python
2017-05-16 16:14:07.975 | Uninstalling libvirt-python-3.3.0:
2017-05-16 16:14:07.976 | /usr/local/lib/python2.7/dist-packages/libvirt.py
2017-05-16 16:14:07.976 | /usr/local/lib/python2.7/dist-packages/libvirt.pyc
2017-05-16 16:14:07.976 | /usr/local/lib/python2.7/dist-packages/libvirt_lxc.py
2017-05-16 16:14:07.976 | /usr/local/lib/python2.7/dist-packages/libvirt_lxc.pyc
2017-05-16 16:14:07.976 | /usr/local/lib/python2.7/dist-packages/libvirt_python-3.3.0.egg-info
2017-05-16 16:14:07.976 | /usr/local/lib/python2.7/dist-packages/libvirt_qemu.py
2017-05-16 16:14:07.976 | /usr/local/lib/python2.7/dist-packages/libvirt_qemu.pyc
2017-05-16 16:14:07.977 | /usr/local/lib/python2.7/dist-packages/libvirtmod.so
2017-05-16 16:14:07.977 | /usr/local/lib/python2.7/dist-packages/libvirtmod_lxc.so
2017-05-16 16:14:07.977 | /usr/local/lib/python2.7/dist-packages/libvirtmod_qemu.so

Running the same 'pip uninstall' by hand shows it's prompting the user for input:

$ sudo pip uninstall libvirt-python
Uninstalling libvirt-python-3.3.0:
  /usr/local/lib/python2.7/dist-packages/libvirt.py
  /usr/local/lib/python2.7/dist-packages/libvirt.pyc
  /usr/local/lib/python2.7/dist-packages/libvirt_lxc.py
  /usr/local/lib/python2.7/dist-packages/libvirt_lxc.pyc
  /usr/local/lib/python2.7/dist-packages/libvirt_python-3.3.0.egg-info
  /usr/local/lib/python2.7/dist-packages/libvirt_qemu.py
  /usr/local/lib/python2.7/dist-packages/libvirt_qemu.pyc
  /usr/local/lib/python2.7/dist-packages/libvirtmod.so
  /usr/local/lib/python2.7/dist-packages/libvirtmod_lxc.so
  /usr/local/lib/python2.7/dist-packages/libvirtmod_qemu.so
Proceed (y/n)?

pip_uninstall needs to use -y

Changed in devstack:
assignee: nobody → Brian Haley (brian-haley)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to devstack (master)

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

Changed in devstack:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to devstack (master)

Reviewed: https://review.openstack.org/465114
Committed: https://git.openstack.org/cgit/openstack-dev/devstack/commit/?id=954fd1b729f792dc6cbc470285a5e147053147a8
Submitter: Jenkins
Branch: master

commit 954fd1b729f792dc6cbc470285a5e147053147a8
Author: Brian Haley <email address hidden>
Date: Tue May 16 12:24:45 2017 -0400

    Use -y with 'pip uninstall'

    'pip uninstall' will hang running stack.sh if it has to
    prompt the user for input, use -y.

    Change-Id: Ic94639e444b87fd3538463d5a51c01a0208a2ab2
    Closes-bug: #1691172

Changed in devstack:
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.