云硬盘一直处于deleting状态怎么办
这篇文章主要为大家展示了“云硬盘一直处于deleting状态怎么办”,内容简而易懂,条理清晰,希望能够帮助大家解决疑惑,下面让小编带领大家一起研究并学习一下“云硬盘一直处于deleting状态怎么办”这篇文章吧。
繁昌ssl适用于网站、小程序/APP、API接口等需要进行数据传输应用场景,ssl证书未来市场广阔!成为成都创新互联的ssl证书销售渠道,可以享受市场价格4-6折优惠!如果有意向欢迎电话联系或者加微信:13518219792(备注:SSL证书合作)期待与您的合作!
一、背景
由于出现问题,导致删除云硬盘时,云硬盘状态一直处理deleting状态,后问题解决可以正常删除,但是处理deleting状态的云硬盘还需要手动处理。
二、处理经过
进入admin管理用户,点击云硬盘,更新云硬盘的状态为错误。
云硬盘状态更新完成后,右边的动作就会出现删除卷字样,可以点击删除该硬盘。
另外查看日志
# view volume.log 2017-04-05 14:07:42.108 5603 TRACE oslo_messaging.rpc.dispatcher Traceback (most recent call last): 2017-04-05 14:07:42.108 5603 TRACE oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 142, in _dispatch_and_reply 2017-04-05 14:07:42.108 5603 TRACE oslo_messaging.rpc.dispatcher executor_callback)) 2017-04-05 14:07:42.108 5603 TRACE oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 186, in _dispatch 2017-04-05 14:07:42.108 5603 TRACE oslo_messaging.rpc.dispatcher executor_callback) 2017-04-05 14:07:42.108 5603 TRACE oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 130, in _do_dispatch 2017-04-05 14:07:42.108 5603 TRACE oslo_messaging.rpc.dispatcher result = func(ctxt, **new_args) 2017-04-05 14:07:42.108 5603 TRACE oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/osprofiler/profiler.py", line 105, in wrapper 2017-04-05 14:07:42.108 5603 TRACE oslo_messaging.rpc.dispatcher return f(*args, **kwargs) 2017-04-05 14:07:42.108 5603 TRACE oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/cinder/volume/manager.py", line 138, in lvo_inner1 2017-04-05 14:07:42.108 5603 TRACE oslo_messaging.rpc.dispatcher return lvo_inner2(inst, context, volume_id, **kwargs) 2017-04-05 14:07:42.108 5603 TRACE oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/oslo_concurrency/lockutils.py", line 439, in inner 2017-04-05 14:07:42.108 5603 TRACE oslo_messaging.rpc.dispatcher do_log=False, semaphores=semaphores, delay=delay): 2017-04-05 14:07:42.108 5603 TRACE oslo_messaging.rpc.dispatcher File "/usr/lib64/python2.7/contextlib.py", line 17, in __enter__ 2017-04-05 14:07:42.108 5603 TRACE oslo_messaging.rpc.dispatcher return self.gen.next() 2017-04-05 14:07:42.108 5603 TRACE oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/oslo_concurrency/lockutils.py", line 395, in lock 2017-04-05 14:07:42.108 5603 TRACE oslo_messaging.rpc.dispatcher ext_lock.acquire(delay=delay) 2017-04-05 14:07:42.108 5603 TRACE oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/oslo_concurrency/lockutils.py", line 194, in acquire 2017-04-05 14:07:42.108 5603 TRACE oslo_messaging.rpc.dispatcher fileutils.ensure_tree(basedir) 2017-04-05 14:07:42.108 5603 TRACE oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/oslo_concurrency/openstack/common/fileutils.py", line 35, in ensure_t ree 2017-04-05 14:07:42.108 5603 TRACE oslo_messaging.rpc.dispatcher os.makedirs(path) 2017-04-05 14:07:42.108 5603 TRACE oslo_messaging.rpc.dispatcher File "/usr/lib64/python2.7/os.py", line 157, in makedirs 2017-04-05 14:07:42.108 5603 TRACE oslo_messaging.rpc.dispatcher mkdir(name, mode) 2017-04-05 14:07:42.108 5603 TRACE oslo_messaging.rpc.dispatcher OSError: [Errno 13] Permission denied: '/var/lock/cinder'
openstack-cinder-volume节点机器重启后,/var/lock/cinder目录自动删除,开机后还需要手动创建一下(之前在哪里遇到过,时间久了,有点遗忘,除了错误还是得第一时间查看日志不能太想当然了)
# cd /var/lock # mkdir cinder # chown cinder:cinder cinder/ # cd cinder/ # ls cinder-ea1f5135-3489-4d8e-99ab-8d2df0e06ff4-delete_volume
重新删除会看到新建这个目录下会有一个删除卷的临时空文件
以上是“云硬盘一直处于deleting状态怎么办”这篇文章的所有内容,感谢各位的阅读!相信大家都有了一定的了解,希望分享的内容对大家有所帮助,如果还想学习更多知识,欢迎关注创新互联行业资讯频道!
文章题目:云硬盘一直处于deleting状态怎么办
标题网址:http://myzitong.com/article/jgsicg.html