Liron Aravot has posted comments on this change.

Change subject: core: Limitation addition for downgrading DC's compatible 
version.
......................................................................


Patch Set 18:

(3 comments)

http://gerrit.ovirt.org/#/c/35790/18/backend/manager/modules/bll/src/test/java/org/ovirt/engine/core/bll/storage/UpdateStoragePoolCommandTest.java
File 
backend/manager/modules/bll/src/test/java/org/ovirt/engine/core/bll/storage/UpdateStoragePoolCommandTest.java:

Line 243:         
canDoActionFailed(VdcBllMessages.ACTION_TYPE_FAILED_DECREASING_COMPATIBILITY_VERSION_CAUSES_STORAGE_FORMAT_DOWNGRADING);
Line 244:     }
Line 245: 
Line 246:     @Test
Line 247:     public void cantDowngradeIfGlusterNotSupported() {
what is the difference between the gluster/posix tests here besides the storage 
type? if there's no difference..let's share the code.
Line 248:         storagePoolVersion35();
Line 249:         cmd.getStoragePool().setCompatibilityVersion(Version.v3_1);
Line 250: 
Line 251:         // Add domains to the storage domains list. (cancel the mock)


Line 255:         setAttachedDomains(sd);
Line 256: 
Line 257:         mcr.mockConfigValue(ConfigValues.GlusterFsStorageEnabled, 
cmd.getStoragePool().getCompatibilityVersion(), false);
Line 258:         
canDoActionFailed(VdcBllMessages.ACTION_TYPE_FAILED_STORAGE_DOMAINS_ARE_NOT_SUPPORTET_IN_DOWNGRADED_VERSION);
Line 259:     }
1. how about adding a test for the mixed pool validation?

2. consider adding a test that checks that if we pass a list of domains that 
fail on different reasons we get back multiple messages.
Line 260: 
Line 261:     @Test
Line 262:     public void cantDowngradeIfPosixNotSupported() {
Line 263:         storagePoolVersion35();


http://gerrit.ovirt.org/#/c/35790/18/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/errors/VdcBllMessages.java
File 
backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/errors/VdcBllMessages.java:

Line 279:     
ACTION_TYPE_FAILED_PRESTARTED_VMS_CANNOT_EXCEED_VMS_COUNT(ErrorType.CONFLICT),
Line 280:     TEMPLATE_IMAGE_NOT_EXIST(ErrorType.BAD_PARAMETERS),
Line 281:     
ACTION_TYPE_FAILED_CANNOT_DECREASE_COMPATIBILITY_VERSION(ErrorType.CONSTRAINT_VIOLATION),
Line 282:     
ACTION_TYPE_FAILED_DECREASING_COMPATIBILITY_VERSION_CAUSES_STORAGE_FORMAT_DOWNGRADING(ErrorType.NOT_SUPPORTED),
Line 283:     
ACTION_TYPE_FAILED_STORAGE_DOMAINS_ARE_NOT_SUPPORTET_IN_DOWNGRADED_VERSION(ErrorType.NOT_SUPPORTED),
/s/SUPPORTET/SUPPORTED
Line 284:     
ACTION_TYPE_FAILED_CANNOT_DECREASE_COMPATIBILITY_VERSION_UNDER_DC(ErrorType.CONSTRAINT_VIOLATION),
Line 285:     
ACTION_TYPE_FAILED_GIVEN_VERSION_NOT_SUPPORTED(ErrorType.INCOMPATIBLE_VERSION),
Line 286:     
ACTION_TYPE_FAILED_DATA_CENTER_VERSION_DOESNT_SUPPORT_LIVE_SNAPSHOT(ErrorType.INCOMPATIBLE_VERSION),
Line 287:     
CANNOT_MAINTENANCE_VDS_RUN_VMS_NO_OTHER_RUNNING_VDS(ErrorType.CONFLICT),


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

Gerrit-MessageType: comment
Gerrit-Change-Id: Ib97488c705a32fe73b390ef226b1ad19a3784b76
Gerrit-PatchSet: 18
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Amit Aviram <[email protected]>
Gerrit-Reviewer: Allon Mureinik <[email protected]>
Gerrit-Reviewer: Amit Aviram <[email protected]>
Gerrit-Reviewer: Daniel Erez <[email protected]>
Gerrit-Reviewer: Liron Aravot <[email protected]>
Gerrit-Reviewer: Maor Lipchuk <[email protected]>
Gerrit-Reviewer: Tal Nisan <[email protected]>
Gerrit-Reviewer: [email protected]
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to