Project

General

Profile

Actions

action #156037

closed

test fails in mdadm: test code error

Added by dimstar 2 months ago. Updated about 2 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Bugs in existing tests
Target version:
-
Start date:
2024-02-26
Due date:
% Done:

100%

Estimated time:
Difficulty:
Sprint:
QE-Core: February Sprint 24 (Jan 31 - Feb 28)

Description

Observation

https://github.com/os-autoinst/os-autoinst-distri-opensuse/blob/master/data/qam/mdadm.sh
AVAILABLE_DISK_SPACE=$(df -m /var/tmp|awk '{print$4}'|grep :digit:)
if [ "$AVAILABLE_DISK_SPACE" -lt "2048" ]; then

this currently results in

mdadm.sh: line 5: [: : integer expression expected

openQA test in scenario opensuse-Tumbleweed-DVD-x86_64-extra_tests_textmode@64bit fails in
mdadm

Test suite description

Maintainer: slindomansilla@suse.de.
Mainly post-installation console extra tests.

Reproducible

Fails since (at least) Build 20240225

Expected result

Last good: 20240223 (or more recent)

Further details

Always latest result in this scenario: latest

Actions #1

Updated by dzedro 2 months ago

  • Status changed from New to In Progress
  • Assignee set to dzedro
Actions #2

Updated by dzedro 2 months ago ยท Edited

  • Sprint set to QE-Core: February Sprint 24 (Jan 31 - Feb 28)

I created https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/18750

I don't see why mdadm: Value "/dev/md1054" cannot be set as devname. Reason: Not POSIX compatible.

POSIX PORTABLE NAME

       A valid name can only consist of characters "A-Za-z0-9.-_".  The
       name cannot start with a leading "-" and cannot exceed 255 chars.
```

But based on man the name should be /dev/md_XXX or "anything" within /dev/md/
https://man7.org/linux/man-pages/man8/mdadm.8.html
Actions #3

Updated by dimstar 2 months ago

dzedro wrote in #note-2:

I created https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/18750

I don't see why mdadm: Value "/dev/md1054" cannot be set as devname. Reason: Not POSIX compatible.

POSIX PORTABLE NAME

       A valid name can only consist of characters "A-Za-z0-9.-_".  The
       name cannot start with a leading "-" and cannot exceed 255 chars.
```

But based on man the name should be /dev/md_XXX or "anything" within /dev/md/
https://man7.org/linux/man-pages/man8/mdadm.8.html

indeed..

/dev/mdXXX is allowed up to 127 - anything above would be named devices (like /dev/md/DATA)

poseidon:/tmp # mdadm --create --verbose /dev/md127 --level=0 --raid-devices=3 --size=522240 /dev/loop41 /dev/loop42 /dev/loop43
mdadm: chunk size defaults to 512K
mdadm: /dev/loop41 appears to be part of a raid array:
level=raid0 devices=3 ctime=Tue Feb 27 16:51:36 2024
mdadm: /dev/loop42 appears to be part of a raid array:
level=raid0 devices=3 ctime=Tue Feb 27 16:51:36 2024
mdadm: /dev/loop43 appears to be part of a raid array:
level=raid0 devices=3 ctime=Tue Feb 27 16:51:36 2024
=> ok

poseidon:/tmp # mdadm --create --verbose /dev/md128 --level=0 --raid-devices=3 --size=522240 /dev/loop41 /dev/loop42 /dev/loop43
mdadm: Value "/dev/md128" cannot be set as devname. Reason: Not POSIX compatible.
=< not ok

poseidon:/tmp # mdadm --create --verbose /dev/md/128 --level=0 --raid-devices=3 --size=522240 /dev/loop41 /dev/loop42 /dev/loop43
mdadm: chunk size defaults to 512K
mdadm: /dev/loop41 appears to be part of a raid array:
level=raid0 devices=3 ctime=Tue Feb 27 16:51:36 2024
mdadm: /dev/loop42 appears to be part of a raid array:
level=raid0 devices=3 ctime=Tue Feb 27 16:51:36 2024
mdadm: /dev/loop43 appears to be part of a raid array:
level=raid0 devices=3 ctime=Tue Feb 27 16:51:36 2024
=> ok

Actions #4

Updated by dzedro about 2 months ago

  • Status changed from In Progress to Resolved
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF