OpenStack:如果附加磁碟區,則 Cinder 上傳至映像將無法運作。

Summary: OpenStack:如果附加磁碟區,則 Cinder 上傳至映像將無法運作。

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Symptoms



如果附加磁碟區,則 Cinder 上傳至映像無法運作:
 
Cinder 上傳至映像 --force true --磁碟格式 QCOW2 volume_name映像

建立 Glance 影像後,Glance 會立即收到刪除要求:
 
INFO glance.registry.api.v1.images [d9dfe1e8-2400-4335-86e9-03be91819d35 c63ec4cfed984f7eaffbddeae77b0381 - - -] 已成功建立映像 da9a8830-6c35-433d-8717-e8e69318b51d
除錯路由。中間件 [A1083F78-7D1A-4A41-83FD-403C5be4409C c63ec4cfed984f7eaffbddeae77b0381 - - -] 匹配的 DELETE /images/da9a8830-6c35-433d-8717-e8e69318b51d __call__ /usr/lib/python2.7/dist-packages/routes/middleware.py:100
DEBUG routes.middleware [a1083f78-7d1a-4a41-83fd-403c5be4409c c63ec4cfed984f7eaffbddeae77b0381 - - -] 符合字典:{'動作': u'刪除', '控制器':[glance.common.wsgi.Resource object at 0x7fa5d4af8ad0], 'id': u'da9a8830-6c35-433d-8717-e8e69318b51d'} __call__ /usr/lib/python2.7/dist-packages/routes/middleware.py:103
INFO glance.registry.api.v1.images [a1083f78-7d1a-4a41-83fd-403c5be4409c c63ec4cfed984f7eaffbddeae77b0381 - - -] 成功刪除映像 da9a8830-6c35-433d-8717-e8e69318b51d
glance.wsgi.server [a1083f78-7d1a-4a41-83fd-403c5be4409c AH8282 c63ec4cfed984f7eaffbddeae77b0381 - - -] 135.144.28.54 - - [27/Jun/2016 21:01:11] “DELETE /images/da9a8830-6c35-433d-8717-e8e69318b51d HTTP/1.1” 200 726 0.042534

在調查過程中,我們發現此請求來自煤渣服務:
 
錯誤 cinder.volume.manager [req-ddc5db47-db91-4a09-8854-16b0ee8f8ce0 c63ec4cfed984f7eaffbddeae77b0381 - - -] 將磁碟區 b5839c03-d93c-4d91-87e6-0
2ceb851aba2 上傳至映像 da9a8830-6c35-433d-8717-e8e69318b51d 時發生錯誤。
  Glanceclient.common.HTTP [req-ddc5db47-db91-4a09-8854-16b0ee8f8ce0 c63ec4cfed984f7eaffbddeae77b0381 - - -] curl -i -X head -H 'User-Agent: python-glanceclient' -H 'Content-Type: application/octet-stream' -H 'Accept-Encoding: gzip, deflate, compressing' -H 'Accept:*/*' -h 'x-auth-token:{SHA1}199d851e5925bc18e3c41d241db919796ef6d93c' http://image.domain.com:9292/v1/images/da9a8830-6c35-433d-8717-e8e69318b51d log_curl_request /usr/lib/python2.7/dist-packages/glanceclient/common/http.py:122
DEBUG glanceclient.common.http [req-ddc5db47-db91-4a09-8854-16b0ee8f8ce0 c63ec4cfed984f7eaffbddeae77b0381 - - -]
HTTP/1.1 200 OK
  .......
  x-image-meta-name: ah8282_test
log_http_response /usr/lib/python2.7/dist-packages/glanceclient/common/http.py:135
WARNING cinder.volume.manager [req-ddc5db47-db91-4a09-8854-16b0ee8f8ce0 c63ec4cfed984f7eaffbddeae77b0381 - - -] 正在刪除佇列狀態的映像 da9a8830-6c35-433d-8717-e8e69318b51d。

在煤渣量記錄中,我們發現以下錯誤:
 
錯誤主機名稱 [req-ddc5db47-db91-4a09-8854-16b0ee8f8ce0 c63ec4cfed984f7eaffbddeae77b0381 - - -] 處理訊息時發生例外狀況:在 /dev/disk/by-path/ip-ip-address<>:3260-iscsi-iqn.1009-03.com 找不到磁碟區裝置。emc:50000973001a8510-lun-3

Cause

Resolution

此問題已在 CINDER 驅動程式的 KILO 版本中解決。

Affected Products

OpenStack Data Protection Extension
Article Properties
Article Number: 000052241
Article Type: Solution
Last Modified: 13 Mar 2025
Version:  4
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.