-
Story
-
Resolution: Done
-
Major
-
None
-
BU Product Work
-
False
-
None
-
False
-
OCPSTRAT-1040 - Experimental in 4.16-->Provide option to collect must-gather based on time stamp (--since and --until)
-
-
Must-gather currently does not allow to limit the amount of data collected by a customer. Which can lead into collection of tens of GBs even when only a limited set of data (e.g. for the last 2 days) is required. In some cases ending with a master node down.
Suggested solution:
- pass envs such as MUST_GATHER_SINCE_TIME (Only return logs after a specific date (RFC3339)) or MUST_GATHER_SINCE (Only return logs newer than a relative duration like 5s, 2m, or 3h).
Acceptance criteria:
- Extend https://github.com/openshift/enhancements/blob/d3fe6aa13c5c4f8588e6885f3e5a00f0432b1a66/enhancements/oc/must-gather.md#proposal with support for collection controlling envs. oc adm must-gather will get extended with new options (e.g. --since and --since-time) that gets rendered as must-gather container envs. Each must-gather image (including custom images) will be recommended to adopt the envs.
- Extend https://github.com/openshift/oc/blob/master/pkg/cli/admin/mustgather/mustgather.go and https://github.com/openshift/must-gather with the controlling mechanism
- blocks
-
RFE-4568 Prevent the size of must-gathers from growing up too much due to the "rotated" pod logs
- Accepted
- links to