smengcl opened a new pull request, #8598:
URL: https://github.com/apache/ozone/pull/8598
## What changes were proposed in this pull request?
`-id` has to come after `prepare`/`cancelprepare` subcommand, otherwise
admins get:
```bash
$ ozone admin om -id=omServiceId prepare
Missing required option: '--service-id=<omServiceId>'
Usage: ozone admin om prepare [-hV] -id=<omServiceId>
Prepares Ozone Manager for upgrade/downgrade, by applying all pending
transactions, taking a Ratis snapshot at the last transaction and purging all
logs on each OM instance. The returned transaction #ID corresponds to the
last
transaction in the quorum in which the snapshot is taken.
-h, --help Show this help message and exit.
-id, --service-id=<omServiceId>
Ozone Manager Service ID
-V, --version Print version information and exit.
```
Correct example:
```
$ ozone admin om prepare -id=omServiceId
Ozone Manager Prepare Request successfully returned with Transaction Id :
[9281].
Checking individual OM instances for prepare request completion...
OM : [om1], Prepare Status : [PREPARE_COMPLETED], Current Transaction Id :
[9281]
OM : [om2], Prepare Status : [PREPARE_COMPLETED], Current Transaction Id :
[9281]
OM : [om3], Prepare Status : [PREPARE_COMPLETED], Current Transaction Id :
[9281]
OM Preparation successful!
All OMs are prepared
No new write requests will be allowed until preparation is cancelled or
upgrade/downgrade is done.
```
Like the user-facing feature doc does (correctly):
https://github.com/apache/ozone/blob/50c5a78c797bb6d26f4b71f07ff4e58b0e8541cd/hadoop-hdds/docs/content/feature/Nonrolling-Upgrade.md#L54
## What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-13229
## How was this patch tested?
- Tested the CLI manually.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]