我在 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 并恢复 keystone 和 Glance 的先前版本(和行为)。
在我的“生产”系统中,我有没有 openstackclient 的 juno 和所有软件包的旧版本(来自 EPEL 存储库 Centos 7 的 keystone v2、glance 等),而在“测试”系统中,我有 juno 并安装了 openstackclient 和更新版本的包(pip 存储库)。因此,在不久的将来,我必须将生产系统从 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
INFO keystonemiddleware.auth_token [-] Auth Token confirmed use of v3.0 apis
尽管默认的 Juno 安装使用 api v2,但我无法弄清楚为什么会出现在 /glance/api.log 中。我认为这些问题是相互关联的。你怎么看?