-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sct docker backend deletes all docker instances on the system in teardown #9027
Comments
Got another example:
|
this one goes way back when YCSB was introduced for alternator that code was written assuming it runs on a loader node, so docker backend running locally wasn't considered. we should overwrite |
@fruch scylla-cluster-tests/sdcm/cluster.py Line 5274 in 1434c81
I.e. in case of docker backend it is requested to be executed in a loader container, not in the on the SCT runner (local host). |
There's one docker engine on the host, regardless where you give the command from. So when using docker backend this would clear all of the docker instances |
Ok. I was not able to reproduce it, but will give another try. |
@asias Could you please share details/command of how you was doing the problematic SCT run against docker backend (was it via hydra, ./sct.py, etc.)? |
There is no any filtering of docker instances, when killing containerized stress threads on loader nodes during teardown of a test. In the case of docker backend this can result in deleting all containers in the system. The change fixes this by labeling stress thread related docker containers when they are created; and deleting only the labeled containers during the teardown. Fixes: scylladb#9027
There is no any filtering of docker instances, when killing containerized stress threads on loader nodes during teardown of a test. In the case of docker backend this can result in deleting all containers in the system. The change fixes this by labeling stress thread related docker containers when they are created; and deleting only the labeled containers during the teardown. Fixes: scylladb#9027
e.g., hydra run-test performance_regression_test.PerformanceRegressionTest.test_latency_write_with_nemesis --backend docker --config test-cases/performance/perf-regression-latency-650gb-with-nemesis.yaml --config configurations/tablets_disabled.yaml --config configurations/disable_kms.yaml |
It should only delete instances started by sct test, not all instances on the system.
The text was updated successfully, but these errors were encountered: