Closed jongwooo closed 1 month ago
The fault configuration has the EC2_INSTANCE_TAG
set correctly. However, during the experiment, EC2_INSTANCE_TAG
is not passed.
The other experiment using tags, ebs-loss-by-tag works fine.
The error occurs because the GetInstanceList
method is passed an empty string as the instanceTag
parameter.
https://github.com/litmuschaos/litmus-go/blob/master/pkg/cloud/aws/ec2/ec2-operations.go#L141-L144
The error occurs because the
GetInstanceList
method is passed an empty string as theinstanceTag
parameter.
This error occurred because the environment variable has been renamed, which has caused the runner to be unable to retrieve the correct value. Rather than correcting the fault configuration, I think it would be better to update the codebase to use EC2_INSTANCE_TAG
like a normal fault configuration.
I'm gonna work on this issue.
What happened:
While running an AWS experiment using litmus helm v3.9.0, I encountered an error when executing the ec2-stop-by-tag. Despite providing a value for the
EC2_INSTANCE_TAG
field, the experiment failed because an empty string was passed to it.cc. @namkyu1999
What you expected to happen: I expected the ec2-stop-by-tag experiment to stop the EC2 instance based on the provided tag value.
Where can this issue be corrected? (optional)
How to reproduce it (as minimally and precisely as possible):
EC2_INSTANCE_TAG
value(e.g.,stack:test
).EC2_INSTANCE_TAG
field, causing the experiment to fail.Anything else we need to know?:
Test Environment: