xk6 Deletes data created in preset #154
Labels
No labels
P0
P1
P2
P3
good first issue
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/xk6-frostfs#154
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Expected behaviour:
object being created in preset and stored in json file deleted by xK6 delete job
Current behaviour:
only object created by xK6 and stored in bolt database are deleted by xK6 delete job.
json file only used to supply bucket list
Create preset:
scenarios/preset/preset_s3.py --size 128 --buckets 4 --out /home/service/opt/k6/s3_128kb.json --endpoint https://10.78.131.223 --preload_obj 5 --location default --workers 2 --no-verify-ssl
Run xK6 to Delete objects:
./k6 run -e DURATION=240 -e STREAM_TIMEOUT=60 -e SLEEP_READ=0.2 -e SLEEP_WRITE=0.2 -e WRITE_OBJ_SIZE=128 -e READERS=0 -e WRITERS=0 -e DELETERS=2 -e DELETE_AGE=1 -e S3_ENDPOINTS=https://10.78.131.223 -e REGISTRY_FILE=/home/service/opt/k6/s3_128k.bolt -e PREGEN_JSON=/home/service/opt/k6/s3_128kb.json -e NO_VERIFY_SSL=true ./scenarios/s3.js
Object created during preset at step 1 are not deleted:
(screenshot attached)
Functionality is expected as a part of clean-up after tests on the customer system.
Cleanup of data in preset requires "--force" flag to allow mix of read / write / delete operations.
Let's delete from preset only if registry is not provided.
That works.
I suggest introducing command line tool for importing into registry objects created in preset so that they can be deleted with existing delete scenarios.
xk6-registry import
#172