Skip to content

Commit

Permalink
Merge branch 'master' into optimize-k6
Browse files Browse the repository at this point in the history
  • Loading branch information
Saranya-jena authored Jan 15, 2025
2 parents ce2712f + c7ab5a3 commit 8542f2b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ ARG LITMUS_VERSION
RUN yum install -y \
sudo \
sshpass \
procps
procps \
openssh-clients

# tc binary
RUN yum install -y https://dl.rockylinux.org/vault/rocky/9.3/devel/$(uname -m)/os/Packages/i/iproute-6.2.0-5.el9.$(uname -m).rpm
Expand Down
2 changes: 1 addition & 1 deletion chaoslib/litmus/network-chaos/helper/netem.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ func preparePodNetworkChaos(experimentsDetails *experimentTypes.ExperimentDetail
}
log.Infof("successfully injected chaos on target: {name: %s, namespace: %v, container: %v}", t.Name, t.Namespace, t.TargetContainer)
if err = result.AnnotateChaosResult(resultDetails.Name, chaosDetails.ChaosNamespace, "injected", "pod", t.Name); err != nil {
if _, revertErr := killnetem(t, experimentsDetails.NetworkInterface); err != nil {
if _, revertErr := killnetem(t, experimentsDetails.NetworkInterface); revertErr != nil {
return cerrors.PreserveError{ErrString: fmt.Sprintf("[%s,%s]", stacktrace.RootCause(err).Error(), stacktrace.RootCause(revertErr).Error())}
}
return stacktrace.Propagate(err, "could not annotate chaosresult")
Expand Down

0 comments on commit 8542f2b

Please sign in to comment.