您好,登錄后才能下訂單哦!
這篇文章主要為大家展示了“云硬盤一直處于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_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狀態怎么辦”這篇文章的所有內容,感謝各位的閱讀!相信大家都有了一定的了解,希望分享的內容對大家有所幫助,如果還想學習更多知識,歡迎關注億速云行業資訊頻道!
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。