简体   繁体   English

OpenShift MySQL无法附加卷

[英]OpenShift MySQL failed to attach volume

I have a small Python Flask server running on OpenShift starter us-west-1. 我有一个小型Python Flask服务器在OpenShift启动程序us-west-1上运行。 I use a MySQL container for data storage. 我使用MySQL容器进行数据存储。 Yesterday I scaled down the MySQL application from 1 to 0 pods. 昨天我将MySQL应用程序从1个pod缩减为0个。 When I tried to scale it back up to 1 pod, the container creation keeps failing when trying to mount the persistent volume: 当我尝试将其扩展回1个pod时,尝试装入持久卷时容器创建始终失败:

Failed to attach volume "pvc-8bcc2d2b-8d92-11e7-8d9c-06d5ca59684e" on node "ip-XXX-XXX-XXX-XXX.us-west-1.compute.internal" with: Error attaching EBS volume "vol-08b957e6975554914" to instance "i-05e81383e32bcc8ac": VolumeInUse: vol-08b957e6975554914 is already attached to an instance status code: 400, request id: 3ec76894-f611-445f-8416-2db2b1e9c5b7 无法将节点“ ip-XXX-XXX-XXX-XXX-XXX.us-west-1.compute.internal”上的卷“ pvc-8bcc2d2b-8d92-11e7-8d9c-06d5ca59684e”附加到:错误附加EBS卷“ vol-08b957e6975554914实例“ i-05e81383e32bcc8ac”:VolumeInUse:vol-08b957e6975554914已附加到实例状态代码:400,请求ID:3ec76894-f611-445f-8416-2db2b1e9c5b7

I have seen some suggestions that say that the deployment strategy needs to be "Recreate", but it is already set like that. 我已经看到一些建议,说部署策略需要“重新创建”,但是已经这样设置了。 I have tried scaling down and up again multiple times. 我尝试过多次缩小和放大。 I have also tried to manually stop the pod deployment and start a new one, but it keeps giving the same errors. 我也尝试过手动停止pod部署并开始一个新的pod部署,但是它始终显示相同的错误。

Any suggestions? 有什么建议么?

联系支持人员后,他们修复了该卷,并且最近还更新了该平台以防止将来出现此错误。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM