我在Juno中安装了,它执行了以下操作:
> 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现在,我需要完全卸载,并恢复keystone和to以前的版本(和行为)。
在我的“生产”系统中,我没有openstackclient和所有包的旧版本(keystone v2,test等,来自EPEL存储库Centos 7),而在“测试”系统中,我安装了juno和安装了openstackclient和包的更新版本(pip存储库)。因此,在不久的将来,我必须升级(在安全模式!)从juno到mitaka的生产系统和我之前需要在测试系统上进行测试。这就是原因,因为我需要“相同的安装”在测试和生产系统。
更新:为了避免使用api v3和回滚到api v2,在控制器节点中,我卸载了所有openstack数据包并按照这个过程重新安装它们( 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我也不明白为什么在/ INFO keystonemiddleware.auth_token [-] Auth Token confirmed use of v3.0 apis /api.log中出现v2,尽管默认的Juno安装使用api v2。我想这些问题是相互关联的。你认为如何?
发布于 2017-01-16 12:32:05
解决了。python-openstackclient安装导致了python-requests库的升级,这与python-glanceclient发生了冲突。我通过将请求库降级到2.7.0来解决问题,这是上一个版本。
https://stackoverflow.com/questions/41139726
复制相似问题