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

BIAv2 error log should say which plugin it came from (when empty). #6512

Closed
kaovilai opened this issue Jul 17, 2023 · 4 comments · Fixed by #7115
Closed

BIAv2 error log should say which plugin it came from (when empty). #6512

kaovilai opened this issue Jul 17, 2023 · 4 comments · Fixed by #7115
Assignees
Labels
Area/Plugins Issues related to plugin infra/internal plugins Enhancement/User End-User Enhancement to Velero Logging Needs investigation Reviewed Q3 2023
Milestone

Comments

@kaovilai
Copy link
Member

Describe the problem/challenge you have

It is possible to end up with log that looks like this.

"time=\"2023-07-17T12:58:45Z\" level=error msg=0 backup=openshift-adp/mysql-twovol-csi-e2e-77421487-24a1-11ee-a705-0a580a81e778 logSource=\"pkg/controller/backup_controller.go:717\""

backupLog.Error(err)
}

While having a full logs with other log levels could potentially help identify the problematic plugin with empty error log, it would be better to have level=error logs contain all the necessary info to debug which plugin is outputting this empty error log.

Describe the solution you'd like

Anything else you would like to add:

Environment:

  • Velero version (use velero version):
  • Kubernetes version (use kubectl version):
  • Kubernetes installer & version:
  • Cloud provider or hardware configuration:
  • OS (e.g. from /etc/os-release):

Vote on this issue!

This is an invitation to the Velero community to vote on issues, you can see the project's top voted issues listed here.
Use the "reaction smiley face" up to the right of this comment to vote.

  • 👍 for "The project would be better with this feature added"
  • 👎 for "This feature will not enhance the project in a meaningful way"
@qiuming-best qiuming-best added Enhancement/User End-User Enhancement to Velero Logging labels Jul 19, 2023
@pradeepkchaturvedi pradeepkchaturvedi added the 1.13-candidate issue/pr that should be considered to target v1.13 minor release label Aug 4, 2023
@reasonerjt reasonerjt added the Area/Plugins Issues related to plugin infra/internal plugins label Aug 25, 2023
@reasonerjt reasonerjt added this to the v1.13 milestone Aug 25, 2023
@reasonerjt reasonerjt added Needs investigation 1.13-candidate issue/pr that should be considered to target v1.13 minor release Reviewed Q3 2023 and removed 1.13-candidate issue/pr that should be considered to target v1.13 minor release labels Aug 25, 2023
@reasonerjt
Copy link
Contributor

@kaovilai
Could you give me some hints on how to generate such "empty error log"?

@kaovilai
Copy link
Member Author

We don't know where but it seems like some backup item action was logging empty strings.

Since it looks like this function knows what plugin name is, it's helpful to include plugin name in the log.

@sseago sseago removed the 1.13-candidate issue/pr that should be considered to target v1.13 minor release label Sep 5, 2023
@weshayutin weshayutin added this to OADP Oct 20, 2023
@reasonerjt
Copy link
Contributor

This is specifical to the returned error message by function getBackupItemOperationProgress.

I'll make update to make sure the BIAv2's plugin name included.

reasonerjt added a commit to reasonerjt/velero that referenced this issue Nov 16, 2023
@kaovilai
Copy link
Member Author

Commit here LGTM reasonerjt@be4c636

As to reproducing the issue, I'm not sure I remember how we got here.

reasonerjt added a commit to reasonerjt/velero that referenced this issue Nov 17, 2023
reasonerjt added a commit to reasonerjt/velero that referenced this issue Nov 17, 2023
reasonerjt added a commit to reasonerjt/velero that referenced this issue Nov 19, 2023
reasonerjt added a commit to reasonerjt/velero that referenced this issue Nov 20, 2023
@kaovilai kaovilai moved this to Merged / Ready for build in OADP Dec 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area/Plugins Issues related to plugin infra/internal plugins Enhancement/User End-User Enhancement to Velero Logging Needs investigation Reviewed Q3 2023
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants