Need to delete temporary file /tmp/data_file at the end of preset script #57

Closed
opened 2023-05-03 06:07:01 +00:00 by anikeev-yadro · 0 comments
Member

Need to delete temporary file /tmp/data_file after preset script ended.
Otherwise we get the error if we started preset by different users.

STDERR:
 Traceback (most recent call last):
   File "/etc/k6/scenarios/preset/preset_grpc.py", line 106, in <module>
     main()
   File "/etc/k6/scenarios/preset/preset_grpc.py", line 74, in main
     random_payload(payload_filepath, args.size)
   File "/etc/k6/scenarios/preset/helpers/cmd.py", line 23, in random_payload
     with open('%s' % payload_filepath, 'w+b') as fout:
 PermissionError: [Errno 13] Permission denied: '/tmp/data_file'
Need to delete temporary file `/tmp/data_file` after preset script ended. Otherwise we get the error if we started preset by different users. ``` STDERR: Traceback (most recent call last): File "/etc/k6/scenarios/preset/preset_grpc.py", line 106, in <module> main() File "/etc/k6/scenarios/preset/preset_grpc.py", line 74, in main random_payload(payload_filepath, args.size) File "/etc/k6/scenarios/preset/helpers/cmd.py", line 23, in random_payload with open('%s' % payload_filepath, 'w+b') as fout: PermissionError: [Errno 13] Permission denied: '/tmp/data_file' ```
anikeev-yadro changed title from Need to delete temporary file /tmp/data_file after preset script ended to Need to delete temporary file /tmp/data_file at the end of preset script 2023-05-03 06:07:27 +00:00
fyrchik self-assigned this 2023-05-03 11:34:22 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/xk6-frostfs#57
No description provided.