Asaf Shakarchi has uploaded a new change for review.

Change subject: webadmin: Fix message when detaching StorageDomain with 
floating disk(#848795)
......................................................................

webadmin: Fix message when detaching StorageDomain with floating disk(#848795)

https://bugzilla.redhat.com/848795

Storage Domain may contain only floating disk which is not tight to a VM nor
Template,

The current message:

"Error while executing action: Cannot detach Storage
Domain while VMs/Templates reside on it."

Is inappropriate for the situation described above,

Changed message to:
"Cannot detach a non empty Storage Domain, please remove all objects and
try again".

Change-Id: Ied86df5375bf59f4878764297d395d4a5f29d7d9
Signed-off-by: Asaf Shakarchi <[email protected]>
---
M backend/manager/modules/dal/src/main/resources/bundles/AppErrors.properties
M 
frontend/webadmin/modules/frontend/src/main/java/org/ovirt/engine/ui/frontend/AppErrors.java
M 
frontend/webadmin/modules/userportal-gwtp/src/main/resources/org/ovirt/engine/ui/frontend/AppErrors.properties
M 
frontend/webadmin/modules/webadmin/src/main/resources/org/ovirt/engine/ui/frontend/AppErrors.properties
4 files changed, 4 insertions(+), 4 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/83/7883/1

diff --git 
a/backend/manager/modules/dal/src/main/resources/bundles/AppErrors.properties 
b/backend/manager/modules/dal/src/main/resources/bundles/AppErrors.properties
index cdee1cc..99ec05c 100644
--- 
a/backend/manager/modules/dal/src/main/resources/bundles/AppErrors.properties
+++ 
b/backend/manager/modules/dal/src/main/resources/bundles/AppErrors.properties
@@ -335,7 +335,7 @@
 The ${action} action can be performed on a Data Center that has only one 
Storage Domain in Active/Unknown state.
 ACTION_TYPE_FAILED_STORAGE_POOL_NOT_EXIST= Data Center doesn't exist.
 ACTION_TYPE_FAILED_STORAGE_DOMAIN_NOT_IN_STORAGE_POOL=Cannot ${action} 
${type}. The selected Storage Domain is not part of the Data Center.
-ERROR_CANNOT_DETACH_STORAGE_DOMAIN_WITH_IMAGES=Cannot detach Storage Domain 
while VMs/Templates reside on it.\n\
+ERROR_CANNOT_DETACH_STORAGE_DOMAIN_WITH_IMAGES=Cannot detach a non empty 
Storage Domain.\n\
        -Please remove all objects and try again.
 ERROR_CANNOT_REMOVE_STORAGE_POOL_WITH_IMAGES=Cannot remove Data Center while 
there are volumes on it.\n\
        -Please remove all VMs and Templates first.
diff --git 
a/frontend/webadmin/modules/frontend/src/main/java/org/ovirt/engine/ui/frontend/AppErrors.java
 
b/frontend/webadmin/modules/frontend/src/main/java/org/ovirt/engine/ui/frontend/AppErrors.java
index 8faafdf..1bd9c1d 100644
--- 
a/frontend/webadmin/modules/frontend/src/main/java/org/ovirt/engine/ui/frontend/AppErrors.java
+++ 
b/frontend/webadmin/modules/frontend/src/main/java/org/ovirt/engine/ui/frontend/AppErrors.java
@@ -910,7 +910,7 @@
     @DefaultStringValue("Cannot ${action} ${type}. The selected Storage Domain 
is not part of the Data Center.")
     String ACTION_TYPE_FAILED_STORAGE_DOMAIN_NOT_IN_STORAGE_POOL();
 
-    @DefaultStringValue("Cannot detach Storage Domain while VMs/Templates 
reside on it.\n-Please remove all objects and try again.")
+    @DefaultStringValue("Cannot detach a non empty Storage Domain.\n-Please 
remove all objects and try again.")
     String ERROR_CANNOT_DETACH_STORAGE_DOMAIN_WITH_IMAGES();
 
     @DefaultStringValue("Cannot remove Data Center while there are volumes on 
it.\n-Please remove all VMs and Templates first.")
diff --git 
a/frontend/webadmin/modules/userportal-gwtp/src/main/resources/org/ovirt/engine/ui/frontend/AppErrors.properties
 
b/frontend/webadmin/modules/userportal-gwtp/src/main/resources/org/ovirt/engine/ui/frontend/AppErrors.properties
index 2943f84..5e9f5b7 100644
--- 
a/frontend/webadmin/modules/userportal-gwtp/src/main/resources/org/ovirt/engine/ui/frontend/AppErrors.properties
+++ 
b/frontend/webadmin/modules/userportal-gwtp/src/main/resources/org/ovirt/engine/ui/frontend/AppErrors.properties
@@ -333,7 +333,7 @@
 The ${action} action can be performed on a Data Center that has only one 
Storage Domain in Active/Unknown state.
 ACTION_TYPE_FAILED_STORAGE_POOL_NOT_EXIST= Data Center doesn't exist.
 ACTION_TYPE_FAILED_STORAGE_DOMAIN_NOT_IN_STORAGE_POOL=Cannot ${action} 
${type}. The selected Storage Domain is not part of the Data Center.
-ERROR_CANNOT_DETACH_STORAGE_DOMAIN_WITH_IMAGES=Cannot detach Storage Domain 
while VMs/Templates reside on it.\n\
+ERROR_CANNOT_DETACH_STORAGE_DOMAIN_WITH_IMAGES=Cannot detach a non empty 
Storage Domain.\n\
        -Please remove all objects and try again.
 ERROR_CANNOT_REMOVE_STORAGE_POOL_WITH_IMAGES=Cannot remove Data Center while 
there are volumes on it.\n\
        -Please remove all VMs and Templates first.
diff --git 
a/frontend/webadmin/modules/webadmin/src/main/resources/org/ovirt/engine/ui/frontend/AppErrors.properties
 
b/frontend/webadmin/modules/webadmin/src/main/resources/org/ovirt/engine/ui/frontend/AppErrors.properties
index f12b241..0c69911 100644
--- 
a/frontend/webadmin/modules/webadmin/src/main/resources/org/ovirt/engine/ui/frontend/AppErrors.properties
+++ 
b/frontend/webadmin/modules/webadmin/src/main/resources/org/ovirt/engine/ui/frontend/AppErrors.properties
@@ -331,7 +331,7 @@
 The ${action} action can be performed on a Data Center that has only one 
Storage Domain in Active/Unknown state.
 ACTION_TYPE_FAILED_STORAGE_POOL_NOT_EXIST= Data Center doesn't exist.
 ACTION_TYPE_FAILED_STORAGE_DOMAIN_NOT_IN_STORAGE_POOL=Cannot ${action} 
${type}. The selected Storage Domain is not part of the Data Center.
-ERROR_CANNOT_DETACH_STORAGE_DOMAIN_WITH_IMAGES=Cannot detach Storage Domain 
while VMs/Templates reside on it.\n\
+ERROR_CANNOT_DETACH_STORAGE_DOMAIN_WITH_IMAGES=Cannot detach a non empty 
Storage Domain.\n\
        -Please remove all objects and try again.
 ERROR_CANNOT_REMOVE_STORAGE_POOL_WITH_IMAGES=Cannot remove Data Center while 
there are volumes on it.\n\
        -Please remove all VMs and Templates first.


--
To view, visit http://gerrit.ovirt.org/7883
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ied86df5375bf59f4878764297d395d4a5f29d7d9
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Asaf Shakarchi <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to