Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restructure mc support callhome command #4372

Merged
merged 4 commits into from
Nov 22, 2022

Conversation

anjalshireesh
Copy link
Contributor

@anjalshireesh anjalshireesh commented Nov 16, 2022

Description

  • Remove support logs enable|disable|status|show
  • Make support logs behave like support logs show
  • Enhance support callhome to allow configuration of both periodic diagnostics and real-time log push with the same command
  • This will be achieved by adding two bool flags --diag and --logs
  • If none of these flags are passed, the action specified by the arg (enable|disable|status) will be performed for both the features

Motivation and Context

Group real-time logs and periodic diag push under the same umbrella of callhome

How to test this PR?

  • mc support callhome status {alias} should print status of both diag and logs
  • mc support callhome enable {alias} should enable both diag and logs
  • mc support callhome disable {alias} should disable both diag and logs
  • mc support callhome status {alias} --[diag|logs] should print status of the given feature (diag/logs)
  • mc support callhome enable {alias} --[diag|logs] should enable only the given feature (diag/logs)
  • mc support callhome disable {alias} --[diag|logs] should disable only the given feature (diag/logs)

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Optimization (provides speedup with no functional changes)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • Fixes a regression (If yes, please add commit-id or PR # here)
  • Unit tests added/updated
  • Internal documentation updated
  • Create a documentation update request here

- Remove `support logs enable|disable|status|show`
- Make `support logs` behave like `support logs show`
- Enhance `support callhome` to allow configuration of both periodic
  diagnostics and real-time log push with the same command
- This will be achieved by adding two bool flags `--diag` and `--logs`
- If none of these flags are passed, the action specified by the
  arg (enable|disable|status) will be performed for both the features
@harshavardhana
Copy link
Member

PTAL @vadmeste 🙏🏽

Copy link
Member

@vadmeste vadmeste left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@harshavardhana harshavardhana merged commit dc9794c into minio:master Nov 22, 2022
@anjalshireesh anjalshireesh deleted the callhome branch November 23, 2022 11:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants