mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
忽略rbd错误,并将rbd storage置为离线
This commit is contained in:
@@ -364,7 +364,8 @@ func (s *SRbdStorage) SyncStorageInfo() (jsonutils.JSONObject, error) {
|
||||
if len(s.StorageId) > 0 {
|
||||
capacity, err := s.getCapacity()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
log.Errorf("get ceph capacity error: %v", err)
|
||||
return modules.Storages.PerformAction(hostutils.GetComputeSession(context.Background()), s.StorageId, "offline", jsonutils.Marshal(map[string]string{"reason": err.Error()}))
|
||||
}
|
||||
content = map[string]interface{}{
|
||||
"name": s.StorageName,
|
||||
|
||||
Reference in New Issue
Block a user