diff --git a/e2e/rbd.go b/e2e/rbd.go index d39d99aef..3798357c8 100644 --- a/e2e/rbd.go +++ b/e2e/rbd.go @@ -1266,11 +1266,11 @@ var _ = Describe("RBD", func() { var runningAttachCmd string runningAttachCmd, stdErr, err = execCommandInContainer( f, - "ps -eo 'cmd' | grep [r]bd-nbd", + "pstree --arguments | grep [r]bd-nbd", cephCSINamespace, "csi-rbdplugin", &opt) - // if the rbd-nbd process is not running the ps | grep command + // if the rbd-nbd process is not running the 'grep' command // will return with exit code 1 if err != nil { if strings.Contains(err.Error(), "command terminated with exit code 1") {