Comments (11)
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.
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.
@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.
@jayasankarr1990 I tried the same thing, I think the
tc
command is not found because/sbin
is not inPATH
when its run on the fly withssh
, 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.
@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.
@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.
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.
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.
The issue is resolved with the 3.0.0 release. Please upgrade to 3.0.0 and verify.
from mangle.
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.
Closing the issue as fixed in 3.0.
from mangle.
Related Issues (20)
- Add support for elastic kibana integration with mangle to view the fault metrics on kibana
- Mangle 3.5 : Update is diabled for initial password change HOT 3
- What kind of credential is needed for infrastructure faults? HOT 16
- ErrorCode 127 Fault Injection w/ OSError: [ErrNo 22] Invalid Argument in target infra_agent.log HOT 4
- Unable to add Prometheus configurations as metrics provider HOT 3
- Mangle Support for Amazon EKS HOT 8
- Service Unavailable - Random injection does not work
- ERR_CONNECTION_CLOSED accessing Mangle Web HOT 4
- Unable to add vCenter adapter HOT 1
- enable running chaos tests in random order
- getting db connectivity errror
- Application memory fault is not working
- Certificate installation on the EKS namespace for mangle HOT 6
- Capability to support CA self signed certificates in EKS HOT 3
- Ability to create Custom roles in mangle UI HOT 4
- Integration of AD groups into mangle instead of users HOT 2
- vCenter Adapter for Mangle OVA installation
- Out of Memory Fault not working
- Mangle - AD Integration, Custom Roles, CA Signed Cert
- Mangle EndPoint Creation Failure HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mangle.