Ask Your Question

Openstackclient uninstall

asked 2016-12-14 03:43:50 -0500

Cristiano gravatar image

updated 2016-12-17 04:41:40 -0500

Hi, I installed python-openstackclient in Juno and it did the following actions:

> Installing collected packages:
> keystoneauth1, python-keystoneclient,
> python-glanceclient,
> python-openstackclient                
> Found existing installation:
> python-keystoneclient 0.11.1          
>     Uninstalling python-keystoneclient-0.11.1:         
>       Successfully uninstalled python-keystoneclient-0.11.1          
> Found existing installation:
> python-glanceclient 0.15.0            
>     Uninstalling python-glanceclient-0.15.0:           
>       Successfully uninstalled python-glanceclient-0.15.0            
> Successfully installed
> keystoneauth1-2.16.0
> python-glanceclient-2.5.0
> python-keystoneclient-3.8.0
> python-openstackclient-3.4.1

Now I urgently need to completely uninstall python-openstackclient and restore the previous version (and behavior) of keystone and glance. Can you help me?

UPDATE: To avoid the use of api v3 and rollback to api v2, in the controller nodes I uninstalled all openstack python packets and reinstalled them following this procedure (

I uninstalled packets through:

for dep in $(pip show python-openstackclient | grep Requires | sed 's/Requires: //g; s/,//g') ; do echo $dep ; done
for dep in $(pip show python-openstackclient | grep Requires | sed 's/Requires: //g; s/,//g') ; do sudo pip uninstall -y $dep ; done

pip uninstall -y python-openstackclient

yum remove openstack-keystone python-keystoneclient openstack-glance python-glanceclient python-glance-store.noarch openstack-nova-api openstack-nova-cert openstack-nova-conductor openstack-nova-console openstack-nova-novncproxy openstack-nova-scheduler python-novaclient openstack-neutron openstack-neutron-ml2 python-neutronclient openstack-dashboard httpd mod_wsgi memcached python-memcached openstack-swift-proxy python-swiftclient python-keystonemiddleware openstack-heat-api openstack-heat-api-cfn openstack-heat-engine python-heatclient openstack-ceilometer-api openstack-ceilometer-collector openstack-ceilometer-notification openstack-ceilometer-central openstack-ceilometer-alarm python-ceilometerclient python-six python-babel python-cliff python-cinderclient.noarch openstack-cinder python-cinderclient python-oslo-db openstack-swift openstack-swift-plugin-swift3 python-ceilometer

But when I launch glance image-show ID-image I had the following error:

raise AttributeError(k)
AttributeError: id

and I can't figure out why in the /glance/api.log appears INFO keystonemiddleware.auth_token [-] Auth Token confirmed use of v3.0 apis despite the default Juno installation uses api v2. I assume the problems are related to each other. What do you think?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2016-12-16 10:51:20 -0500

volenbovsky gravatar image

Well, 'business as usual' -- use appropriate command for your Debian-based distribution (like apt-get remove) or RPM-based distribution (like yum remove) These tools have also ability to install specific package versions

edit flag offensive delete link more


Thank you for your reply. Please read the update.

Cristiano gravatar imageCristiano ( 2016-12-17 04:40:50 -0500 )edit

can any one help?

Cristiano gravatar imageCristiano ( 2016-12-19 08:04:05 -0500 )edit

answered 2017-01-16 06:29:10 -0500

Cristiano gravatar image

Solved. python-openstackclient installation caused the upgrade of python-requests library and this is in conflicts with python-glanceclient. I solved by downgrading the requests library to 2.7.0, which was the previous release.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools


Asked: 2016-12-14 03:43:50 -0500

Seen: 1,222 times

Last updated: Jan 16 '17