OpenStack版本升级之Swift

本文介绍了OpenStack Swift的升级过程,包括一般升级流程、F版依赖库变化、存储节点和代理节点的升级步骤。在升级过程中,需要注意依赖库的更新、配置文件的修改以及服务的重启策略。同时,提到了Swift3的处理、rings的版本兼容性和缓存的平滑过渡问题。
摘要由CSDN通过智能技术生成

Swift升级的一般流程

Swift升级的一般流程见参考文档,摘抄如下:

As always, a production Swift cluster can be upgraded live, with no downtime for clients. The normal upgrade path is:

    Stop the background processes
    Upgrade the packages
    Reload the processes (eg swift-init object reload)
    Start the background processes 

A normal upgrade process will upgrade one storage server in one zone (a "canary node") to check if any unforseen issue arise.
After than node is upgraded, upgrade the other storage nodes in that zone. Next, upgrade each of the remaining zones in turn.
Finally, upgrade each of your proxy servers (one at time).

F版对依赖库的变化

F版对依赖库的变化主要是添加了一个新的依赖python-swiftclient,另外放宽Webob的版本要求为>=1.0.8,<1.3,详情如下:

[ugyn@localhost swift]$ git diff origin/stable/essex:tools/pip-requires origin/stable/folsom:tools/pip-requires > diff
[ugyn@localhost swift]$ cat diff 
diff --git a/origin/stable/essex:tools/pip-requires b/origin/stable/folsom:tools/pip-requires
index f9ea5f2..28bc426 100644
--- a/origin/stable/essex:tools/pip-requires
+++ b/origin/stable/folsom:tools/pip-requires
@@ -1,4 +1,4 @@
-WebOb==1.0.8
+WebOb>=1.0.8,<1.3
 configobj==4.7.1
 eventlet==0.9.15
 greenlet==0.3.1
@@ -6,3 +6,6 @@ netifaces==0.6
 pastedeploy==1.3.3
 simplejson==2.0.9
 xattr==0.4
+
+# Install python-swiftclient from git
+https://github.com/openstack/python-swiftclient/zipball/master#egg=python-swiftclient

升级存储节点

停止现有服务,并备份配置文

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值