F版的一些变化
对依赖库的变化主要是添加了一个jsonschema并去掉了对xattr、pysendfile及swift1.4.8的依赖,如果采用swift作为存储后端需要有python-swiftclient,另外还需要F版的Keystone。配置方面主要把认证中间件的配置从paste配置中移到了server配置中。功能上添加了V2版的api接口。
备份与安装
停止现有服务,并备份数据
[root@stackcc update_glance]# service glance-api stop
[root@stackcc update_glance]# service glance-registry stop
[root@stackcc update_glance]# cp -R /etc/glance ./glance-etc
[root@stackcc update_glance]# mysqldump -uglance -p glance > glance.sql
下载并安装相关软件,因为我之前已经升级完了Keystone及Swift,这里只要安装jsonschema及Glance就可以了。
[root@stackcc update_glance]# pip install jsonschema
[root@stackcc update_glance]# git clone git://github.com/openstack/glance.git
[root@stackcc update_glance]# cd glance
[root@stackcc glance]# git checkout -b folsom origin/stable/folsom
[root@stackcc glance]# python setup.py install > install.info
补充:如果还要在这台服务器上安装python-glanceclient的话,这里用pip install jsonschema==0.2安装就好,不然也会被删除重装的。原本采用以下方式安装glance的,安装后版本号不对成了0.0.0,我提了个bug在这(详情)
[root@stackcc update_glance]# wget https://github.com/openstack/glance/archive/stable/folsom.zip
[root@stackcc update_glance]# unzip folsom
[root@stackcc update_glance]# cd glance-stable-folsom/
[root@stackcc glance-stable-folsom]# python setup.py install
[root@stackcc glance-stable-folsom]# ll /usr/lib/python2.6/site-packages/ | grep glance
drwx

本文详细介绍了OpenStack Glance从旧版本升级到F版的过程,包括F版的变化,如依赖库的更新、配置调整,以及备份与安装步骤。在升级过程中,需要注意配置文件的修改,特别是认证中间件的迁移以及Swift存储后端的设置。同时,文章还提供了遇到问题时的解决方案,如数据库同步、服务启动和客户端版本匹配。

2179

被折叠的 条评论
为什么被折叠?



