Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
55b8dc5
Cumulative enhancements fix for ScaleIO: MDM add/remove, Host prepare…
mprokopchuk Apr 8, 2025
b13712c
Add feature flag to enable/disable blocking unprepare ScaleIO storage…
mprokopchuk Apr 9, 2025
5674f56
Update plugins/storage/volume/scaleio/src/main/java/org/apache/clouds…
mprokopchuk Apr 9, 2025
b7b40d9
Update plugins/storage/volume/scaleio/src/main/java/org/apache/clouds…
mprokopchuk Apr 11, 2025
12eea4a
Update plugins/storage/volume/scaleio/src/main/java/org/apache/clouds…
mprokopchuk Apr 11, 2025
4636ae9
- Addressed code review comments: Added checking mdm removal response…
mprokopchuk Apr 11, 2025
b88048b
Updated scope to Zone for the new powerflex settings
sureshanaparti Apr 21, 2025
018cf17
Get powerflex storage config settings from zone, and some fixes
sureshanaparti Jun 16, 2025
434862b
Removed --file parameter used with --query_mdms, --query_vols, --quer…
sureshanaparti Jun 16, 2025
8cdefca
rebase fixes
sureshanaparti Jun 17, 2025
789aea6
typo fix
sureshanaparti Jun 17, 2025
ad41f3f
review fix
sureshanaparti Jun 17, 2025
44af31c
Added wait time after SDC service start/restart/stop, retries to fetc…
sureshanaparti Jun 25, 2025
ba8a6bd
Apply suggestions from code review
sureshanaparti Jun 25, 2025
67c47c2
Added agent property 'powerflex.sdc.service.wait' for the time (in se…
sureshanaparti Jul 3, 2025
778a873
Allow unprepare sdc when there are no volumes mapped on the host for …
sureshanaparti Jul 3, 2025
9befbd3
Fix wait time for remove PowerFlex MDMs, and some code improvements
sureshanaparti Jul 3, 2025
21d5813
Change default value of config 'powerflex.mdm.change.apply.wait' to 3…
sureshanaparti Jul 7, 2025
ef3c3f1
Fix sdc usage cmd (drv_cfg) result, and log command result
sureshanaparti Jul 7, 2025
6b2120d
code improvements, to add scaleio sdc settings
sureshanaparti Jul 8, 2025
7433231
code improvements
sureshanaparti Jul 14, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
- Addressed code review comments: Added checking mdm removal response…
… validation
  • Loading branch information
mprokopchuk authored and sureshanaparti committed Jul 3, 2025
commit 4636ae925d5c339543d588afde63da1a5c7e3c45
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ public void testUnprepareStorageClient_RemoveMDMFailed() {
details.put(ScaleIOGatewayClient.STORAGE_POOL_MDMS, "1.1.1.1,2.2.2.2");
when(Script.runSimpleBashScriptForExitValue(Mockito.eq("systemctl status scini"))).thenReturn(3);
when(Script.runSimpleBashScriptForExitValue(Mockito.eq("systemctl is-enabled scini"))).thenReturn(0);
when(Script.executeCommand(Mockito.eq("sed -i '/1.1.1.1\\,/d' /etc/emc/scaleio/drv_cfg.txt"))).thenReturn(new Pair<>(null, null));
when(Script.runSimpleBashScriptForExitValue(Mockito.eq("systemctl restart scini"))).thenReturn(0);
when(Script.runSimpleBashScript(Mockito.eq("/opt/emc/scaleio/sdc/bin/drv_cfg --query_mdms --file /etc/emc/scaleio/drv_cfg.txt|grep 1.1.1.1"))).thenReturn("MDM-ID 71fd458f0775010f SDC ID 4421a91a00000000 INSTALLATION ID 204930df2cbcaf8e IPs [0]-1.1.1.1 [1]-2.2.2.2");
when(Script.executeCommand(Mockito.eq("/opt/emc/scaleio/sdc/bin/drv_cfg"))).thenReturn(new Pair<>(null, null));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -213,16 +213,19 @@ public static boolean removeMdms(String... mdmAddresses) {
}
// remove MDM via CLI if it is supported
if (removeMdmCliSupported) {
removeMdm(mdmAddress);
if (removeMdm(mdmAddress)) {
changesApplied = true;
}
} else {
String command = String.format(REMOVE_MDM_CMD_TEMPLATE, mdmAddress, DRV_CFG_FILE);
Script.runSimpleBashScript(command);
// restart SDC needed only if configuration file modified manually (not by CLI)
restartSDC = true;
changesApplied = true;
String stdErr = Script.executeCommand(command).second();
if(StringUtils.isEmpty(stdErr)) {
// restart SDC needed only if configuration file modified manually (not by CLI)
restartSDC = true;
changesApplied = true;
} else {
LOGGER.error(String.format("Failed to remove MDM %s from %s: %s", mdmAddress, DRV_CFG_FILE, stdErr));
}
}
}
if (restartSDC) {
Expand Down