Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ Test Timeout 5 minutes
*** Test Cases ***

Check om admin command
${result} = Execute and checkrc ozone admin om getserviceroles -id=omServiceIdDefault 0
${result} = Execute and checkrc ozone admin om roles -id=omServiceIdDefault 0
Should Contain ${result} This command works only on OzoneManager HA cluster.
2 changes: 1 addition & 1 deletion hadoop-ozone/dist/src/main/smoketest/omha/testOMHA.robot
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ Put Multiple Keys
END

Get OM Leader Node
${result} = Execute ozone admin om getserviceroles --service-id=omservice
${result} = Execute ozone admin om roles --service-id=omservice
LOG ${result}
Should Contain ${result} LEADER 1
Should Contain ${result} FOLLOWER 2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@
import java.util.concurrent.Callable;

/**
* Handler of om get-service-roles command.
* Handler of om roles command.
*/
@CommandLine.Command(
name = "getserviceroles",
name = "roles", aliases = "getserviceroles",
description = "List all OMs and their respective Ratis server roles",
mixinStandardHelpOptions = true,
versionProvider = HddsVersionProvider.class)
Expand Down