千家信息网

云硬盘一直处于deleting状态怎么办

发表于:2024-11-30 作者:千家信息网编辑
千家信息网最后更新 2024年11月30日,这篇文章主要为大家展示了"云硬盘一直处于deleting状态怎么办",内容简而易懂,条理清晰,希望能够帮助大家解决疑惑,下面让小编带领大家一起研究并学习一下"云硬盘一直处于deleting状态怎么办"
千家信息网最后更新 2024年11月30日云硬盘一直处于deleting状态怎么办

这篇文章主要为大家展示了"云硬盘一直处于deleting状态怎么办",内容简而易懂,条理清晰,希望能够帮助大家解决疑惑,下面让小编带领大家一起研究并学习一下"云硬盘一直处于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_reply2017-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 _dispatch2017-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_dispatch2017-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 wrapper2017-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_inner12017-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 inner2017-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 lock2017-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 acquire2017-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_tree2017-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 makedirs2017-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/  # lscinder-ea1f5135-3489-4d8e-99ab-8d2df0e06ff4-delete_volume

重新删除会看到新建这个目录下会有一个删除卷的临时空文件

以上是"云硬盘一直处于deleting状态怎么办"这篇文章的所有内容,感谢各位的阅读!相信大家都有了一定的了解,希望分享的内容对大家有所帮助,如果还想学习更多知识,欢迎关注行业资讯频道!

0