共计 3557 个字符,预计需要花费 9 分钟才能阅读完成。
这篇文章主要为大家展示了“云硬盘一直处于 deleting 状态怎么办”,内容简而易懂,条理清晰,希望能够帮助大家解决疑惑,下面让丸趣 TV 小编带领大家一起研究并学习一下“云硬盘一直处于 deleting 状态怎么办”这篇文章吧。
一、背景
由于出现问题,导致删除云硬盘时,云硬盘状态一直处理 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
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 状态怎么办”这篇文章的所有内容,感谢各位的阅读!相信大家都有了一定的了解,希望分享的内容对大家有所帮助,如果还想学习更多知识,欢迎关注丸趣 TV 行业资讯频道!
正文完