Liron Ar has posted comments on this change.
Change subject: engine: StorageConnections ops won't assume VDS
......................................................................
Patch Set 2: (4 inline comments)
....................................................
File
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/storage/AddStorageServerConnectionCommand.java
Line 23:
Line 24: @LockIdNameAttribute
Line 25: @InternalCommandAttribute
Line 26: public class AddStorageServerConnectionCommand<T extends
StorageServerConnectionParametersBase> extends
Line 27: ConnectStorageToVdsCommand<T> {
can this inheritence be removed as well if we decouple the connection between
the vds and storage server connection?
Line 28: public AddStorageServerConnectionCommand(T parameters) {
Line 29: super(parameters);
Line 30: }
Line 31:
Line 96
Line 97
Line 98
Line 99
Line 100
are you sure that removing this won't hurt any existing flows that assumed the
vds would be "picked" here?
....................................................
File
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/storage/UpdateStorageServerConnectionCommand.java
Line 216: if (isDomainUpdateRequired) {
Line 217: for (StorageDomain domain : domains) {
Line 218: for (StoragePoolIsoMap map :
getStoragePoolIsoMap(domain)) {
Line 219: restoreStateAfterUpdate(map);
Line 220: }
*perhaps it's worth adding a stored procedure for updating the domain status in
all pools to save the round trips.
Line 221: }
Line 222: if (hasConnectStorageSucceeded) {
Line 223: disconnectFromStorage();
Line 224: }
Line 288:
Line 289: protected boolean connectToStorage() {
Line 290: StorageServerConnectionManagementVDSParameters
newConnectionParametersForVdsm =
Line 291: createParametersForVdsm(getParameters().getVdsId(),
Line 292: Guid.Empty,
1. this parameter is passed to vdsm during ConnectStorageServer - are you sure
that it won't cause any issues on any vdsm version?
2. if it's not needed, perhaps remove it from the parameters
Line 293:
getParameters().getStorageServerConnection().getstorage_type(),
Line 294: getParameters().getStorageServerConnection());
Line 295: return runVdsCommand(VDSCommandType.ConnectStorageServer,
newConnectionParametersForVdsm).getSucceeded();
Line 296: }
--
To view, visit http://gerrit.ovirt.org/17288
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I628bf2a63f64d3acaa3520ad144e1eef744f1204
Gerrit-PatchSet: 2
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Allon Mureinik <[email protected]>
Gerrit-Reviewer: Alissa Bonas <[email protected]>
Gerrit-Reviewer: Allon Mureinik <[email protected]>
Gerrit-Reviewer: Daniel Erez <[email protected]>
Gerrit-Reviewer: Liron Ar <[email protected]>
Gerrit-Reviewer: Maor Lipchuk <[email protected]>
Gerrit-Reviewer: oVirt Jenkins CI Server
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches