Bug 1295570

Summary: python-glanceclient-0.17.3-1.el7ost breaks /usr/bin/openstack.
Product: Red Hat OpenStack Reporter: Vincent S. Cojot <vcojot>
Component: python-glanceclientAssignee: Flavio Percoco <fpercoco>
Status: CLOSED NOTABUG QA Contact: nlevinki <nlevinki>
Severity: high Docs Contact:
Priority: unspecified    
Version: 7.0 (Kilo)CC: eglynn, fpercoco, jruzicka, yeylon
Target Milestone: ---   
Target Release: 8.0 (Liberty)   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-01-04 21:58:30 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Vincent S. Cojot 2016-01-04 21:50:54 UTC
Description of problem:

After updating to python-glanceclient-0.17.3-1.el7ost.noarch, the 'openstack' command no longer works:

[root@osp2 ~(keystone_admin)]# openstack image list
ERROR: openstackclient.shell Exception raised: (python-glanceclient 0.17.3 (/usr/lib/python2.7/site-packages), Requirement.parse('python-glanceclient>=0.18.0'))

[root@osp2 ~(keystone_admin)]# openstack network list
ERROR: openstackclient.shell Exception raised: (python-glanceclient 0.17.3 (/usr/lib/python2.7/site-packages), Requirement.parse('python-glanceclient>=0.18.0'))


Version-Release number of selected component (if applicable):
[root@osp2 ~(keystone_admin)]# rpm -qi python-glanceclient
Name        : python-glanceclient
Epoch       : 1
Version     : 0.17.3
Release     : 1.el7ost
Architecture: noarch
Install Date: Sun Dec 27 14:50:05 2015
Group       : Unspecified
Size        : 545551
License     : ASL 2.0
Signature   : RSA/SHA256, Mon Dec 21 10:30:09 2015, Key ID 199e2f91fd431d51
Source RPM  : python-glanceclient-0.17.3-1.el7ost.src.rpm
Build Date  : Mon Dec 14 09:44:26 2015
Build Host  : x86-034.build.eng.bos.redhat.com
Relocations : (not relocatable)
Packager    : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>
Vendor      : Red Hat, Inc.
URL         : http://github.com/openstack/python-glanceclient
Summary     : Python API and CLI for OpenStack Glance
Description :
This is a client for the OpenStack Glance API. There's a Python API (the
glanceclient module), and a command-line script (glance). Each implements
100% of the OpenStack Glance API.

How reproducible:
100%

Steps to Reproduce:
1. update to python-glanceclient-0.17.3-1.el7ost
2. all deprecated CLIs (glance, nova, neutron) work but openstack doesn't anymore
3. 

Actual results:
[root@osp2 ~(keystone_admin)]# openstack image list
ERROR: openstackclient.shell Exception raised: (python-glanceclient 0.17.3 (/usr/lib/python2.7/site-packages), Requirement.parse('python-glanceclient>=0.18.0'))


Expected results:
'openstack' should work fine and not bear references to glanceclient-0.18.0
[root@osp2 ~(keystone_admin)]# openstack image list
+--------------------------------------+---------+
| ID                                   | Name    |
+--------------------------------------+---------+
| a0662bd7-4694-4dbd-9440-b2e1236bb96a | Centos7 |
| 99716a80-089a-4b5e-91d1-fff57bf8b86b | cirros  |
+--------------------------------------+---------+


Additional info:
Workaround: yum downgrade to python-glanceclient-0.17.0-2.el7ost.noarch  resolves the issue.

Comment 2 Vincent S. Cojot 2016-01-04 21:58:16 UTC
Seems some left overs from other installs broke this..