Skip to content

pod cpu-hog and pod-network-loss Litmus chaos experiments are not working, helper pod is getting failed with timeout error #5062

Open
@Elezabeth23

Description

@Elezabeth23

For pod cpu-hog experiment, the helper pod is getting created and running for log time and ended up at below error

time="2025-03-10T04:00:24Z" level=info msg="Helper Name: stress-chaos"
time="2025-03-10T04:00:24Z" level=info msg="[PreReq]: Getting the ENV variables"
time="2025-03-10T04:00:54Z" level=info msg="[Info]: Details of Stressor:" CPU Core=0 CPU Load=100 Timeout=180
time="2025-03-10T04:49:24Z" level=fatal msg="helper pod failed, err: could not get container id\n --- at /litmus-go/chaoslib/litmus/stress-chaos/helper/stress-helper.go:127 (prepareStressChaos) ---\nCaused by: {"source":"pod-cpu-hog-helper-hb6zz","errorCode":"HELPER_ERROR","reason":"Get \"https://xx.xx.x.x:xx/api/v1/namespaces/namespace1/pods/nodejsapp\\\": dial tcp xx.xx.x.x:xx: i/o timeout","target":"{podName: nodejsapp, namespace: cicddemo-d0}"}, resultErr: Get "https://xx.xx.x.x:xx/apis/litmuschaos.io/v1alpha1/namespaces/namespace1/chaosresults/pod-cpu-hog-bbz49p62-pod-cpu-hog\": dial tcp xx.xx.x.x:xx: i/o timeout"

Below log is from Job pod

ERROR: time="2025-03-10T06:31:24Z" level=error msg="[Error]: CPU hog failed, err: could not run chaos in parallel mode\n --- at /litmus-go/chaoslib/litmus/stress-chaos/lib/stress-chaos.go:101 (PrepareAndInjectStressChaos) ---\nCaused by: helper pod failed\n --- at /litmus-go/pkg/utils/common/common.go:164 (HelperFailedError) ---\nCaused by: {"errorCode":"STATUS_CHECKS_ERROR","reason":"container is not completed within timeout","target":"{podName: pod-cpu-hog-helper-zlmbp, namespace: namespace1, container: pod-cpu-hog}"}"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions