Project

General

Profile

Actions

action #80574

closed

[opensuse][aarch64][rpi] job incompletes with auto_review:"(?s)GENERAL_HW_FLASH_CMD.*unxz.*File exists":retry

Added by okurz over 3 years ago. Updated over 3 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Bugs in existing tests
Target version:
-
Start date:
2020-11-29
Due date:
% Done:

0%

Estimated time:
Difficulty:

Description

Observation

https://openqa.opensuse.org/tests/1487858 incompletes with:

[2020-11-29T09:35:32.122 CET] [debug] started mgmt loop with pid 21983
[2020-11-29T09:35:37.833 CET] [debug] IPMI: Powering ON/OFF
Current status of plug#1: false.
New status of plug#1: false.
[2020-11-29T09:35:47.394 CET] [debug] Backend process died, backend errors are reported below in the following lines:
GENERAL_HW_FLASH_CMD: + echo 'Flash script start...'
+ username=root
+ '[' 6 -ne 6 ']'
+ tool=usbsdmux
+ destination=localhost:/tmp
+ device_serial=000000000482
+ sdX_device=disk/by-id/usb-LinuxAut_sdmux_HS-SD_MMC_000000000482-0:0
+ image_to_flash=/var/lib/openqa/pool/1/openSUSE-Tumbleweed-ARM-JeOS-raspberrypi3.aarch64-2020.11.24-Snapshot20201126.raw.xz
+ hdd_size=10G
+ IFS=:
+ read -r flasher_ip destination_folder
+ echo '* Switch SD card to flasher'
+ '[' usbsdmux = usbsdmux ']'
+ ssh root@localhost usbsdmux --direct /dev/usb-sd-mux/id-000000000482 host
+ ssh root@localhost rm -f '/tmp/*.{raw,xz,iso}'
+ echo '** Previous image deleted'
++ basename /var/lib/openqa/pool/1/openSUSE-Tumbleweed-ARM-JeOS-raspberrypi3.aarch64-2020.11.24-Snapshot20201126.raw.xz
+ image_to_flash_full_path=/tmp/openSUSE-Tumbleweed-ARM-JeOS-raspberrypi3.aarch64-2020.11.24-Snapshot20201126.raw.xz
+ image_to_flash_extension=xz
++ basename /tmp/openSUSE-Tumbleweed-ARM-JeOS-raspberrypi3.aarch64-2020.11.24-Snapshot20201126.raw.xz .xz
+ uncompressed_filename=openSUSE-Tumbleweed-ARM-JeOS-raspberrypi3.aarch64-2020.11.24-Snapshot20201126.raw
+ scp /var/lib/openqa/pool/1/openSUSE-Tumbleweed-ARM-JeOS-raspberrypi3.aarch64-2020.11.24-Snapshot20201126.raw.xz root@localhost:/tmp
+ [[ xz == \x\z ]]
+ ssh root@localhost unxz --threads=0 /tmp/openSUSE-Tumbleweed-ARM-JeOS-raspberrypi3.aarch64-2020.11.24-Snapshot20201126.raw.xz
unxz: /tmp/openSUSE-Tumbleweed-ARM-JeOS-raspberrypi3.aarch64-2020.11.24-Snapshot20201126.raw: File exists at /usr/lib/os-autoinst/backend/generalhw.pm line 78.

[2020-11-29T09:35:51.588 CET] [debug] IPMI: Powering ON/OFF
Current status of plug#1: false.
New status of plug#1: false.

Expected result

Test should not fail if a fil can not be extracted, either overwrite or don't extract if already existing

Actions #1

Updated by ggardet_arm over 3 years ago

  • Status changed from New to Resolved

The problem is 2 workers try to uncompress images at the same time with the same name in the same directory.
Each worker should have his own folder to uncompress his own image and avoid to overwrite images of other workers. This should be fixed now by using /tmp/$workerid instead of just /tmp.

Actions

Also available in: Atom PDF