Giter Club home page Giter Club logo

Comments (11)

jayasankarr1990 avatar jayasankarr1990 commented on May 30, 2024

This looks strange.If the script ran successfully ,ideally it should run when triggered from mangle as well.
Can you share the output when you run the script on the machine.The inputcommand and output

from mangle.

gitRam18 avatar gitRam18 commented on May 30, 2024

Here is the output of the commands I ran on the same machine with same user and from the same folder as I mentioned in mangle to copy the script:

infra1@uklvadsb0257[DEV][~] $ cd temp

infra1@uklvadsb0257[DEV][temp] $ whoami
infra1

infra1@uklvadsb0257[DEV][temp] $ pwd
/home/infra1/temp

infra1@uklvadsb0257[DEV][temp] $ tc qdisc show
qdisc noqueue 0: dev lo root refcnt 2
qdisc mq 0: dev eth0 root
qdisc pfifo_fast 0: dev eth0 parent :4 bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1
qdisc pfifo_fast 0: dev eth0 parent :3 bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1
qdisc pfifo_fast 0: dev eth0 parent :2 bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1
qdisc pfifo_fast 0: dev eth0 parent :1 bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1
qdisc noqueue 0: dev docker0 root refcnt 2
qdisc noqueue 0: dev veth608d37b root refcnt 2
qdisc noqueue 0: dev vethdc27dc7 root refcnt 2

infra1@uklvadsb0257[DEV][temp] $ tc qdisc add dev eth0 root netem delay 500ms
RTNETLINK answers: Operation not permitted

infra1@uklvadsb0257[DEV][temp] $ sudo tc qdisc add dev eth0 root netem delay 500ms

infra1@uklvadsb0257[DEV][temp] $ tc qdisc show
qdisc noqueue 0: dev lo root refcnt 2
qdisc netem 8018: dev eth0 root refcnt 5 limit 1000 delay 500.0ms
qdisc noqueue 0: dev docker0 root refcnt 2
qdisc noqueue 0: dev veth608d37b root refcnt 2
qdisc noqueue 0: dev vethdc27dc7 root refcnt 2

infra1@uklvadsb0257[DEV][temp] $

from mangle.

adhibhuta avatar adhibhuta commented on May 30, 2024

@jayasankarr1990 I tried the same thing, I think the tc command is not found because /sbin is not in PATH when its run on the fly with ssh, when I ran $ssh username@ip "export PATH='/sbin:$PATH';tc" it worked fine.

from mangle.

aswathy-ramabhadran avatar aswathy-ramabhadran commented on May 30, 2024

@jayasankarr1990 I tried the same thing, I think the tc command is not found because /sbin is not in PATH when its run on the fly with ssh, when I ran $ssh username@ip "export PATH='/sbin:$PATH';tc" it worked fine.

@lladhibhutall thanks for the feedback. We will fix this.
@gitRam18 could you confirm if the workaround suggested by @lladhibhutall works for you as well?

from mangle.

gitRam18 avatar gitRam18 commented on May 30, 2024

@lladhibhutall and myself tried this together. Check if the path needs to be /usr/sbin Or /sbin whichever is more appropriate from the security perspective and let us know once you fixed.

One more request I have is:

  • Not to delete the log file and to keep it for verification post remediation.

Couple of questions I have are:

  • I have not tried but what if I give latency delay (ex: 10 sec) larger than timeout (5 sec) period?
  • Is it possible to defer the auto remediation and leave it to user's choice to trigger it via UI. May be some kind of alert on UI etc post the time out

from mangle.

aswathy-ramabhadran avatar aswathy-ramabhadran commented on May 30, 2024

@gitRam18 there is a reason for making auto remediation mandatory for network faults. If there is an unusually high value set for say latency, then remote access (using putty and other tools) to the system under test would start failing. You will have to know where the machine is deployed and will have to manually do a remediation. In such cases it is better to have an auto-remediation in place. Let me know if you disagree to this thought.

from mangle.

gitRam18 avatar gitRam18 commented on May 30, 2024

I understand but my challenge is on how to verify whether the fault has been injected or not. Do you suggest any tools to capture results before they get auto remediated? As I mentioned, logs are also deleted at the end.

Could you please respond on my first question as well regarding latency > timeout and in that case how the latency is effective if you remediate automatically.

And one more, do you have the new package with path corrections for sbin?

Please advise

from mangle.

jayasankarr1990 avatar jayasankarr1990 commented on May 30, 2024

we will allow logs to be available after remediation and fix the sbin issue in the next release.Will update the bug once fixed.
Regarding latency> timeout ,latency will be effective till timeout happens.

from mangle.

vhkilari avatar vhkilari commented on May 30, 2024

The issue is resolved with the 3.0.0 release. Please upgrade to 3.0.0 and verify.

from mangle.

vhkilari avatar vhkilari commented on May 30, 2024

The documentation to Mangle upgrade available at https://vmware-1.gitbook.io/mangle/mangle-administration/supported-deployment-models#upgrading-existing-instances-of-mangle

from mangle.

aswathy-ramabhadran avatar aswathy-ramabhadran commented on May 30, 2024

Closing the issue as fixed in 3.0.

from mangle.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.