During Debian install, kickstart reports a flock issue

Bug #1991816 reported by Jim Somerville
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StarlingX
Fix Released
Low
Wentao Zhang

Bug Description

During Debian install (was lowlat AIO), we see this:

2022-07-22 15:13:22.546 kickstart mkfs info: Edit the LVM config so LVM only looks for LVs on the root disk
2022-07-22 15:13:22.546 kickstart mkfs info: LVM 'global_filter' Config: global_filter = [ "a| /dev/sda7 |", "r|.*|" ]
2022-07-22 15:13:22.546 kickstart mkfs info: LVM 'lvm_preferred_names' Config: preferred_names = [ "^/dev/mpath/", "^/dev/mapper/mpath", "^/dev/[hs]d" ]
2022-07-22 15:13:31.621 kickstart mkfs warn: Releasing storage device locks and FDs.
flock: 3: Bad file descriptor
[ 12.808733] sdb:
[ 15.130270] EXT4-fs (sda4): mounted filesystem with ordered data mode. Opts: (null)
ostree/deploy/debian initialized as OSTree root
[ 15.349639] EXT4-fs (sda3): mounted filesystem with ordered data mode. Opts: (null)
running: ostree pull --url file:///instboot/ostree_repo --repo=/sysroot/ostree/repo debian starlingx

The "Bad file descriptor" doesn't seem to hurt, the install succeeds. But it is still disconcerting to the user.

Severity is Minor.

Solution is probably to add 2>/dev/null onto the end of this line:
https://github.com/starlingx/metal/blob/master/kickstart/files/kickstart.cfg#L1843

Ghada Khalil (gkhalil)
tags: added: stx.metal
Ghada Khalil (gkhalil)
tags: added: stx.debian
Wentao Zhang (wzhang4)
Changed in starlingx:
assignee: nobody → Wentao Zhang (wzhang4)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to metal (master)

Fix proposed to branch: master
Review: https://review.opendev.org/c/starlingx/metal/+/862669

Changed in starlingx:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to metal (master)

Reviewed: https://review.opendev.org/c/starlingx/metal/+/862669
Committed: https://opendev.org/starlingx/metal/commit/5744685eca5ee24ae719de8075777f4e09ad0a23
Submitter: "Zuul (22348)"
Branch: master

commit 5744685eca5ee24ae719de8075777f4e09ad0a23
Author: Wentao Zhang <email address hidden>
Date: Wed Oct 26 13:18:32 2022 +0800

    Debian: fix the bug of getting the dev's fd

    Some pipe files are generated when assigning variables
    and getting the process's fd, and are removed when done.
    Since the pipe's fd is not the dev's fd, filter out the pipe fd.

    Test Plan:
    PASS: qemu iso installed successful
    PASS: lab iso installed successful

    Closes-Bug: 1991816
    Signed-off-by: Wentao Zhang<email address hidden>
    Change-Id: Icfdd4922dcc7e3c2e5003296c90519f8b7624d88

Changed in starlingx:
status: In Progress → Fix Released
Ghada Khalil (gkhalil)
tags: added: stx.8.0
Changed in starlingx:
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.