![磁碟區建立失敗](https://rvso.com/image/768931/%E7%A3%81%E7%A2%9F%E5%8D%80%E5%BB%BA%E7%AB%8B%E5%A4%B1%E6%95%97.png)
我想在我的 openstack pike 環境中從大小為 1TB 的映像啟動一個實例,該環境使用 cinder 和 ceph 作為儲存後端。此實例的磁碟區建立過程失敗並顯示下列訊息:
logs schedule allocate volume:Could not find any available weighted backend.
當我查看 cinder 日誌時,發現了以下訊息:
...raise exc.from_response(resp, resp.content)\n', 'glanceclient.exc.HTTPUnauthorized: HTTP 401 Unauthorized: This server could not verify that you are authorized to access the document you requested. Either you supplied the wrong credentials (e.g., bad password), or your browser does not understand how to supply the credentials required...
幾行之後,我看到了這個:
...cinder.exception.ImageNotAuthorized: Not authorized for image...
但是,我可以成功創建任何具有較小圖像尺寸的實例。
首先,我懷疑 keystone 中的令牌過期了,因為卷創建需要長達 4-5 小時的時間。我把它的過期時間提高到48小時,但失敗還是一樣。
Glance 是否有可能本身有一些令牌過期時間,或者它應該是來自 keystone 的全域令牌?