Skip to content

[BUG] kbcli cluster describe-backup Examples error: can not found any backups #598

@JashBook

Description

@JashBook

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error
➜  ~ kubectl get backup
NAME                                            POLICY                                     METHOD          REPO                    STATUS      TOTAL-SIZE   DURATION   DELETION-POLICY   CREATION-TIME          COMPLETION-TIME        EXPIRATION-TIME
backup-default-postgres-ibnwgo-20250423140706   postgres-ibnwgo-postgresql-backup-policy   pg-basebackup   backuprepo-kbcli-test   Completed   16651657     10s        Delete            2025-04-23T06:07:06Z   2025-04-23T06:07:16Z   
backup-default-postgres-wjvtpb-20250423134342   postgres-wjvtpb-postgresql-backup-policy   pg-basebackup   backuprepo-kbcli-test   Completed   2912314      17s        Delete            2025-04-23T05:43:42Z   2025-04-23T05:43:58Z   
➜  ~ 
➜  ~ kbcli cluster describe-backup --help
Describe a backup.

Aliases:
describe-backup, desc-backup

Examples:
  # describe a backup
  kbcli cluster describe-backup backup-default-mycluster-20230616190023

Options:
    --names=[]:
	Backup names

Usage:
  kbcli cluster describe-backup BACKUP-NAME [flags] [options]

Use "kbcli options" for a list of global command-line options (applies to all commands).
➜  ~ 
➜  ~ kbcli cluster describe-backup backup-default-postgres-ibnwgo-20250423140706
error: can not found any backups
➜  ~ 
➜  ~ 
➜  ~ kbcli cluster describe-backup --names backup-default-postgres-ibnwgo-20250423140706
Name: backup-default-postgres-ibnwgo-20250423140706	Cluster: postgres-ibnwgo	Namespace: default	

Spec:
  Method:             pg-basebackup
  Policy Name:        postgres-ibnwgo-postgresql-backup-policy

Actions:
  dp-backup-0:        
    ActionType:         Job
    WorkloadName:       dp-backup-0-backup-default-postgres-ibnwgo-20250423140706-88c93
    TargetPodName:      postgres-ibnwgo-postgresql-1
    Phase:              Completed
    Start Time:         Apr 23,2025 14:07 UTC+0800
    Completion Time:    Apr 23,2025 14:07 UTC+0800

Status:
  Phase:              Completed
  Total Size:         16651657
  ActionSet Name:     postgresql-basebackup
  Repository:         backuprepo-kbcli-test
  Duration:           10s
  Start Time:         Apr 23,2025 14:07 UTC+0800
  Completion Time:    Apr 23,2025 14:07 UTC+0800
  Path:               /default/postgres-ibnwgo-2bb5c2c9-a5dc-477b-ae1f-22a8f63d2c3f/postgresql/backup-default-postgres-ibnwgo-20250423140706
  Time Range Start:   Apr 23,2025 14:07 UTC+0800
  Time Range End:     Apr 23,2025 14:07 UTC+0800

Warning Events: <none>

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions