rt kernel 4.18 build-pkgs --edit is broken

Bug #1877423 reported by Jim Somerville
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StarlingX
Fix Released
Medium
chendongqi

Bug Description

First clean:
build-pkgs --rt --edit --clean kernel

Then attempt to extract the source with patches applied:

build-pkgs --rt --edit kernel

It fails, but this worked before the upgrade to CentOS 8 kernel. It does work for the CentOS 8 std kernel, although the end of the command reports error, but it does all unpack and have the patches applied.

Note that this all worked cleanly for both the std and rt kernels before the upgrade to CentOS 8. It's a regression.

Workaround: Unpack and apply patches manually. So severity is minor. Not bothering with the rest of the template.

End of the output showing the error:

2:57:25 b1: tools/perf/scripts/python/stat-cpi.py: no change
12:57:25 b1: tools/perf/scripts/python/sched-migration.py: no change
12:57:25 b1: ++ '[' -L configs ']'
12:57:25 b1: ++ rm -f configs
12:57:25 b1: ++ rm -f configs
12:57:25 b1: ++ mkdir configs -p
12:57:25 b1: ++ cd configs
12:57:25 b1: ++ cp /localdisk/loadbuild/jsomervi/starlingx-10/rt/srpm_work/kernel-rt/rpmbuild/SOURCES/kernel-rt-aarch64-debug.config /localdisk/loadbuild/jsomervi/starlingx-10/rt/srpm_work/kernel-rt/rpmbuild/SOURCES/kernel-rt-aarch64.config /localdisk/loadbuild/jsomervi/starlingx-10/rt/srpm_work/kernel-rt/rpmbuild/SOURCES/kernel-rt-ppc64le-debug.config /localdisk/loadbuild/jsomervi/starlingx-10/rt/srpm_work/kernel-rt/rpmbuild/SOURCES/kernel-rt-ppc64le.config /localdisk/loadbuild/jsomervi/starlingx-10/rt/srpm_work/kernel-rt/rpmbuild/SOURCES/kernel-rt-s390x-debug.config /localdisk/loadbuild/jsomervi/starlingx-10/rt/srpm_work/kernel-rt/rpmbuild/SOURCES/kernel-rt-s390x-zfcpdump.config /localdisk/loadbuild/jsomervi/starlingx-10/rt/srpm_work/kernel-rt/rpmbuild/SOURCES/kernel-rt-s390x.config /localdisk/loadbuild/jsomervi/starlingx-10/rt/srpm_work/kernel-rt/rpmbuild/SOURCES/kernel-rt-x86_64-debug.config /localdisk/loadbuild/jsomervi/starlingx-10/rt/srpm_work/kernel-rt/rpmbuild/SOURCES/kernel-rt-x86_64.config .
12:57:25 b1: ++ cp /localdisk/loadbuild/jsomervi/starlingx-10/rt/srpm_work/kernel-rt/rpmbuild/SOURCES/generate_all_configs.sh .
12:57:25 b1: ++ VERSION=4.18.0
12:57:25 b1: ++ ./generate_all_configs.sh kernel-rt
12:57:25 b1: ++ cp /localdisk/loadbuild/jsomervi/starlingx-10/rt/srpm_work/kernel-rt/rpmbuild/SOURCES/process_configs.sh .
12:57:25 b1: ++ ./process_configs.sh -w kernel-rt 4.18.0
12:57:25 b1: head: cannot open ‘/localdisk/loadbuild/jsomervi/starlingx-10/rt/srpm_work/kernel-rt/gits/kernel-rt.spec/kernel-rt-4.18.0-147.3.1.rt24.96.el8_1/linux-4.18.0-147.3.1.rt24.96.el8_1/configs/kernel-rt-4.18.0*.config’ for reading: No such file or directory
12:57:25 b1: cat: /localdisk/loadbuild/jsomervi/starlingx-10/rt/srpm_work/kernel-rt/gits/kernel-rt.spec/kernel-rt-4.18.0-147.3.1.rt24.96.el8_1/linux-4.18.0-147.3.1.rt24.96.el8_1/configs/kernel-rt-4.18.0*.config: No such file or directory
12:57:25 b1: Processing /localdisk/loadbuild/jsomervi/starlingx-10/rt/srpm_work/kernel-rt/gits/kernel-rt.spec/kernel-rt-4.18.0-147.3.1.rt24.96.el8_1/linux-4.18.0-147.3.1.rt24.96.el8_1/configs/kernel-rt-4.18.0*.config ... Makefile:530: arch//Makefile: No such file or directory
12:57:25 b1: make: *** No rule to make target `arch//Makefile'. Stop.
12:57:25 b1: ERROR: Failed in script '/localdisk/loadbuild/jsomervi/starlingx-10/rt/srpm_work/kernel-rt/extract_script'
12:57:25 b1: ERROR: srpm_extract_to_git (2486): tarball_extract failed while extracting '/localdisk/designer/jsomervi/starlingx-10/cgcs-root/stx/downloads/kernel-rt-4.18.0-147.3.1.rt24.96.el8_1.src.rpm'
12:57:25 b1: ERROR: build_dir_srpm (759): failed to extract srpm '/localdisk/designer/jsomervi/starlingx-10/cgcs-root/stx/downloads/kernel-rt-4.18.0-147.3.1.rt24.96.el8_1.src.rpm'
12:57:26 ERROR: reaper (1322): Failed to edit src.rpm from source at 'b1'
12:57:26 ============ Build failed =============

Revision history for this message
Ghada Khalil (gkhalil) wrote :

stx.4.0 / medium priority - appears to be introduced by the centos 8 kernel upversion

tags: added: stx.4.0 stx.build stx.distro.other
Changed in starlingx:
importance: Undecided → Medium
status: New → Triaged
assignee: nobody → Austin Sun (sunausti)
Austin Sun (sunausti)
Changed in starlingx:
assignee: Austin Sun (sunausti) → chendongqi (chen-dq)
Changed in starlingx:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to root (master)

Reviewed: https://review.opendev.org/726720
Committed: https://git.openstack.org/cgit/starlingx/root/commit/?id=89d38925cade03e5d724b0c7bf8ecf78dab2b830
Submitter: Zuul
Branch: master

commit 89d38925cade03e5d724b0c7bf8ecf78dab2b830
Author: Dongqi Chen <email address hidden>
Date: Mon May 11 09:37:28 2020 +0800

    [kernel-rt 4.18] Fix build-pkgs --rt --edit kernel error

    Extract commands from spec
    VERSION = 4.18.0
    ./generate_all_configs.sh kernel-rt

    When executing the script ‘./generate_all_configs.sh kernel-rt’,
    the config rename failed because the value of the variable ‘VERSION’
    could not be obtained.

    Change-Id: I39e203fdb1929667c78f6477e3369d527234343f
    Closes-Bug: #1877423
    Signed-off-by: Dongqi Chen <email address hidden>

Changed in starlingx:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to root (f/centos8)

Fix proposed to branch: f/centos8
Review: https://review.opendev.org/729808

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to root (f/centos8)
Download full text (13.0 KiB)

Reviewed: https://review.opendev.org/729808
Committed: https://git.openstack.org/cgit/starlingx/root/commit/?id=c2319db9d2a109936ba5ff366edac6f59b64ff6e
Submitter: Zuul
Branch: f/centos8

commit 89543b25b4f2733968e4a17fbc6e791f4eaa25cd
Author: Don Penney <email address hidden>
Date: Wed May 13 13:00:36 2020 -0400

    Add subdir PKG_GITREVCOUNT support

    This update introduces the PKG_GITREVCOUNT variable for package-based
    auto-versioning. Similar to GITREVCOUNT, PKG_GITREVCOUNT will
    calculate the number of commits in the corresponding package's
    directory. This allows each package within a git repo to be
    independently auto-versioned.

    Use of the PKG_BASE_SRCREV variable is optional. If it is not defined,
    the PKG_GITREVCOUNT will count all commits in the package directory.
    If it is defined, it will count a range of commits, with
    PKG_BASE_SRCREV as the starting point.

    To use this, include the following in the package's build_srpm.data
    file:
    TIS_PATCH_VER=PKG_GITREVCOUNT

    This can also be combined with GITREVCOUNT, if a package has local
    files in addition to an external repo to be factored in. This would
    add the count from PKG_GITREVCOUNT to GITREVCOUNT in calculating the
    TIS_PATCH_VER value:
    TIS_PATCH_VER=GITREVCOUNT+PKG_GITREVCOUNT

    Change-Id: Iab3a8c8a212d292f26d5418a881de69566758134
    Story: 2006166
    Task: 39765
    Signed-off-by: Don Penney <email address hidden>

commit 3dcebf7b592d1c43a1f30ba7897e57f8fcade1ec
Author: Steven Webster <email address hidden>
Date: Tue May 19 09:19:18 2020 -0400

    Uprev the SR-IOV device plugin to the latest version

    This is intended primarily to pick up support for SR-IOV
    accelerators.

    Testing has been performed as follows:

    System Types:
        AIO-SX, Standard
    Cluster network types:
        IPv4, IPv6
    NIC types:
        82599ES 10-Gigabit [10fb],
        MT27710 Family [ConnectX-4 Lx] [1015],
        X710 for 10GbE [1572]
    IPAM types:
        host-local,
        calico,
        dhcp,
        static
    Connectivity between pods:
        DPDK,
        netdevice

    Change-Id: Id0d5fcbfbf93ab581a07f26e375bcc2feee6bf69
    Story: 2006740
    Task: 39614
    Signed-off-by: Steven Webster <email address hidden>

commit a0e51f0cab911891376d4002a71b6161ce5edc44
Author: Dongqi Chen <email address hidden>
Date: Wed May 13 17:00:12 2020 +0800

    Remove tpm from update-pxe-network-installer script

    Now use the kernel built-in tpmdd instead of tpmdd
    out-of-tree, so the rpm package is no longer provided.

    Change-Id: I0f322c81d1a9aa20b2ad43a8f5b7b17abfd5782a
    Story: 2007308
    Task: 39756
    Depends-On: https://review.opendev.org/#/c/726999/
    Signed-off-by: Dongqi Chen <email address hidden>

commit 89d38925cade03e5d724b0c7bf8ecf78dab2b830
Author: Dongqi Chen <email address hidden>
Date: Mon May 11 09:37:28 2020 +0800

    [kernel-rt 4.18] Fix build-pkgs --rt --edit kernel error

    Extract commands from spec
    VERSION = 4.18.0
    ./generate_all_configs.sh kernel-rt

    When executing the script ‘./gene...

tags: added: in-f-centos8
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.