Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
cupnes committed Feb 29, 2024
1 parent 721740e commit 3f92723
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion e2e/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,9 @@ var _ = BeforeSuite(func() {
Eventually(func() error {
stdout, stderr, err := kubectl("-n", operatorNamespace, "get", "deploy", "rook-ceph-osd-0", "-o", "json")
if err != nil {
stdout2, _, err := kubectl("-n", operatorNamespace, "get", "pod", "|", "grep", "rook-ceph-osd-prepare")
stdout2, _, err := kubectl("-n", operatorNamespace, "describe", "pod", "-lapp=rook-ceph-osd-prepare")
fmt.Printf(string(stdout2))
stdout2, _, err = kubectl("-n", operatorNamespace, "logs", "-p", "-lapp=rook-ceph-osd-prepare")
fmt.Printf(string(stdout2))
return fmt.Errorf("kubectl get deploy failed. stderr: %s, err: %w", string(stderr), err)
}
Expand Down

0 comments on commit 3f92723

Please sign in to comment.