Skip to content

[data] Improve download/upload error output#288

Open
kkozoriz wants to merge 1 commit intomainfrom
fix/data-improve-not-ready-errors
Open

[data] Improve download/upload error output#288
kkozoriz wants to merge 1 commit intomainfrom
fix/data-improve-not-ready-errors

Conversation

@kkozoriz
Copy link
Contributor

Description

Problem

When d8 data export download or d8 data import upload commands encounter a not-ready resource, the error message is generic and unhelpful - e.g., DataExport ns/name is not Ready. Users have no way to understand the root cause (timeout, misconfiguration, controller issue, etc.) and cannot take corrective action.

Additionally, during the retry loop (up to 60 attempts), there is no intermediate feedback - the command appears to hang silently until it either succeeds or fails after ~3 minutes.

Solution

  • Include Kubernetes condition Message and Reason fields in all "not Ready" error messages for both DataExport and DataImport resources. The error now reads: DataExport ns/name is not Ready: <message> (<reason>).
  • Add periodic progress logging every 5th retry attempt (~15 seconds) in GetDataExportWithRestart and GetDataImportWithRestart, so users can see the current status and attempt number while waiting.

Before fix

image

After fix

image

Signed-off-by: Konstantin Kozoriz <konstantin.kozoriz@flant.com>
@kkozoriz kkozoriz requested a review from ldmonster as a code owner February 27, 2026 07:36
@kkozoriz kkozoriz self-assigned this Feb 27, 2026
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.

1 participant