在 Rancher 中出现 Rolling-Back (Expected state running but got stopped),无法再次升级的解决

1、在 Rancher 中升级失败,回滚时出现 Rolling-Back (Expected state running but got stopped),如图1

在 Rancher 中升级失败,回滚时出现 Rolling-Back (Expected state running but got stopped)

图1

2、点击查看日志的链接,如图2

点击查看日志的链接

图2

2018/6/13 下午6:26:01/config/init/config0.sh: line 2: PCS_API_CFG_DB_HOST: unbound variable
2018/6/13 下午6:26:06/config/init/config0.sh: line 2: PCS_API_CFG_DB_HOST: unbound variable
2018/6/13 下午6:26:20/config/init/config0.sh: line 2: PCS_API_CFG_DB_HOST: unbound variable
2018/6/13 下午6:26:36/config/init/config0.sh: line 2: PCS_API_CFG_DB_HOST: unbound variable
2018/6/13 下午6:26:50/config/init/config0.sh: line 2: PCS_API_CFG_DB_HOST: unbound variable
2018/6/13 下午6:27:06/config/init/config0.sh: line 2: PCS_API_CFG_DB_HOST: unbound variable
2018/6/13 下午6:27:21/config/init/config0.sh: line 2: PCS_API_CFG_DB_HOST: unbound variable
2018/6/13 下午6:27:36/config/init/config0.sh: line 2: PCS_API_CFG_DB_HOST: unbound variable
2018/6/13 下午6:27:51/config/init/config0.sh: line 2: PCS_API_CFG_DB_HOST: unbound variable
2018/6/13 下午6:28:20/config/init/config0.sh: line 2: PCS_API_CFG_DB_HOST: unbound variable
2018/6/13 下午6:28:50/config/init/config0.sh: line 2: PCS_API_CFG_DB_HOST: unbound variable
2018/6/13 下午6:29:06/config/init/config0.sh: line 2: PCS_API_CFG_DB_HOST: unbound variable
2018/6/13 下午6:30:06/config/init/config0.sh: line 2: PCS_API_CFG_DB_HOST: unbound variable
2018/6/13 下午6:31:06/config/init/config0.sh: line 2: PCS_API_CFG_DB_HOST: unbound variable
2018/6/13 下午6:32:06/config/init/config0.sh: line 2: PCS_API_CFG_DB_HOST: unbound variable
2018/6/13 下午6:32:11/config/init/config0.sh: line 2: PCS_API_CFG_DB_HOST: unbound variable
2018/6/13 下午6:33:21/config/init/config0.sh: line 2: PCS_API_CFG_DB_HOST: unbound variable
2018/6/13 下午6:34:21/config/init/config0.sh: line 2: PCS_API_CFG_DB_HOST: unbound variable

3、日志: webtv-pcs-1,提示:PCS_API_CFG_DB_HOST,未绑定变量(可以明确的是,之前是绑定了环境变量的,原因暂未找到),如图3

日志: webtv-pcs-1,提示:PCS_API_CFG_DB_HOST,未绑定变量(可以明确的是,之前是绑定了环境变量的,原因暂未找到)

图3

4、克隆服务为 pcs-backup,选择镜像,registry-vpc.cn-beijing.aliyuncs.com/cmc/pcs-api:dev_dev-0.4.7,升级,如图4、图5

克隆服务为 pcs-backup

图4

 

克隆服务为 pcs-backup,选择镜像,registry-vpc.cn-beijing.aliyuncs.com/cmc/pcs-api:dev_dev-0.4.7,升级

图5

5、pcs-backup 升级成功后,删除服务 pcs,如图6

pcs-backup 升级成功后,删除服务 pcs

图6

6、编辑 pcs-backup,修改名称为 pcs,如图7

编辑 pcs-backup,修改名称为 pcs

图7

原创文章,作者:Maggie-Hunter,如若转载,请注明出处:https://blog.ytso.com/181137.html

(0)
上一篇 2021年10月31日
下一篇 2021年10月31日

相关推荐

发表回复

登录后才能评论