[英]Uninstalling openstackclient and restore previous glance and keystone version
我在Juno中安装了python-openstackclient,它执行了以下操作:
> 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
现在,我需要完全卸载python-openstackclient并恢复梯形和扫视的先前版本(和行为)。
在我的“生产”系统中,我有juno,没有openstackclient和所有软件包的旧版本(keystone v2,glance等,来自EPEL存储库Centos 7),而在“测试”系统中,我有juno并安装了openstackclient和更高版本的包(点子存储库)。 因此,在不久的将来,我必须将生产系统从juno升级(以安全模式!)到mitaka,我需要在测试系统上对其进行测试。 这是因为我需要在测试和生产系统上都进行“相同的安装”。
更新:为避免使用api v3和回滚到api v2,我在控制器节点中卸载了所有openstack python数据包,并按照以下过程http://docs.openstack.org/juno/install-guide/install/yum进行了重新安装。 /content/ch_overview.html 。
我通过以下方式卸载了数据包:
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
但是,当我启动glance image-show ID-image
,出现以下错误:
raise AttributeError(k)
AttributeError: id
id
而且我不知道为什么/glance/api.log中会出现INFO keystonemiddleware.auth_token [-] Auth Token confirmed use of v3.0 apis
尽管默认的Juno安装使用api v2,但INFO keystonemiddleware.auth_token [-] Auth Token confirmed use of v3.0 apis
api。 我认为问题是相互关联的。 你怎么看?
解决了。 python-openstackclient
安装导致python-requests
库升级,这与python-glanceclient
冲突。 我通过将请求库降级为先前版本的2.7.0来解决。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.