playbookconfig: build error

Bug #2047040 reported by Dostoievski Albino Batista
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StarlingX
Fix Released
High
Boovan Rajendran

Bug Description

Brief Description
-----------------
Build fails when "build-pkgs" command tries to build package "playbookconfig". Logs points out that is unable to find file:
playbookconfig/src/playbooks/roles/k8s-storage-backends/snapshot-controller/files/k8s-v1.27.5

Severity
--------
Major

Steps to Reproduce
------------------
Run build-pkgs

Expected Behavior
------------------
build-pkgs run with success

Actual Behavior
----------------
build-pkg fail at building package playbookconfig

Reproducibility
---------------
Seen once

System Configuration
--------------------
N/A

Branch/Pull Time/Commit
-----------------------
Master/2023-12-20

Last Pass
---------
N/A

Timestamp/Logs
--------------
08:57:31 2023-12-20 11:57:30,780 - debrepack - INFO: === Package Name: python3-k8sapp-sriov-fec-operator
08:57:31 2023-12-20 11:57:30,780 - debrepack - INFO: === Debian Package Name: python3-k8sapp-sriov-fec-operator
08:57:31 2023-12-20 11:57:30,780 - debrepack - INFO: === Package Version: 1.0-3
08:57:31 2023-12-20 11:57:30,780 - debrepack - INFO: === Package Path: /localdisk/designer/jenkins/debian-master/cgcs-root/stx/app-sriov-fec-operator/python3-k8sapp-sriov-fec-operator
08:57:31 2023-12-20 11:57:30,782 - debrepack - INFO: SRC_DIR = /localdisk/designer/jenkins/debian-master/cgcs-root/stx/app-sriov-fec-operator
08:57:31 2023-12-20 11:57:30,782 - debrepack - INFO: [ Run - "cd /localdisk/designer/jenkins/debian-master/cgcs-root/stx/app-sriov-fec-operator; git log --oneline -10 --abbrev=10 ." ]
08:57:31 2023-12-20 11:57:30,791 - debrepack - DEBUG: stdout: 04597187d1 Update app Zuul Check Jobs.
08:57:31 2023-12-20 11:57:30,791 - debrepack - DEBUG: stdout: 47d52f4b77 Remove resource requests for sriov-fec-operator controller-manager pod
08:57:31 2023-12-20 11:57:30,791 - debrepack - DEBUG: stdout: 7ea7fa7a38 Update Static Image Tags.
08:57:31 2023-12-20 11:57:30,791 - debrepack - DEBUG: stdout: 8efc754e23 sriov-fec-operator v2.7.1 system integration
08:57:31 2023-12-20 11:57:30,791 - debrepack - DEBUG: stdout: 33b1b27a0a Revert "sriov-fec-operator system integration"
08:57:31 2023-12-20 11:57:30,791 - debrepack - DEBUG: stdout: bc417508af sriov-fec-operator system integration
08:57:31 2023-12-20 11:57:30,791 - debrepack - DEBUG: stdout: c8a6462efd Add component label to sriov-fec-operator namespace
08:57:31 2023-12-20 11:57:30,791 - debrepack - DEBUG: stdout: 327d2cbae6 Merge "Update static image tags"
08:57:31 2023-12-20 11:57:30,791 - debrepack - DEBUG: stdout: e5445353a8 Merge "Enable automatic app update for sriov-fec-operator"
08:57:31 2023-12-20 11:57:30,792 - debrepack - DEBUG: stdout: 0ac8be1af0 Update static image tags
08:57:31 2023-12-20 11:57:30,792 - debrepack - INFO: [ Run - "cd /localdisk/designer/jenkins/debian-master/cgcs-root/stx/app-sriov-fec-operator; git diff ." ]
08:57:31 2023-12-20 11:57:30,798 - debcontroller - INFO: No update on package meta of python3-k8sapp-sriov-fec-operator
08:57:31 2023-12-20 11:57:30,798 - debcontroller - INFO: The dsc file is /localdisk/loadbuild/jenkins/debian-master/std/python3-k8sapp-sriov-fec-operator/python3-k8sapp-sriov-fec-operator_1.0-3.stx.24.dsc
08:57:31 2023-12-20 11:57:30,798 - debcontroller - INFO: Skip creating dsc for python3-k8sapp-sriov-fec-operator again for it exists
08:57:31 2023-12-20 11:57:30,798 - debcontroller - DEBUG: Create_dsc return DSC_NO_UPDATE for /localdisk/loadbuild/jenkins/debian-master/std/python3-k8sapp-sriov-fec-operator/python3-k8sapp-sriov-fec-operator_1.0-3.stx.24.dsc
08:57:31 2023-12-20 11:57:30,803 - debrepack - INFO: === Package Name: stx-sriov-fec-operator-helm
08:57:31 2023-12-20 11:57:30,803 - debrepack - INFO: === Debian Package Name: stx-sriov-fec-operator-helm
08:57:31 2023-12-20 11:57:30,803 - debrepack - INFO: === Package Version: 1.0-3
08:57:31 2023-12-20 11:57:30,803 - debrepack - INFO: === Package Path: /localdisk/designer/jenkins/debian-master/cgcs-root/stx/app-sriov-fec-operator/stx-sriov-fec-operator-helm
08:57:31 2023-12-20 11:57:30,805 - debrepack - INFO: SRC_DIR = /localdisk/designer/jenkins/debian-master/cgcs-root/stx/app-sriov-fec-operator
08:57:31 2023-12-20 11:57:30,805 - debrepack - INFO: [ Run - "cd /localdisk/designer/jenkins/debian-master/cgcs-root/stx/app-sriov-fec-operator; git log --oneline -10 --abbrev=10 ." ]
08:57:31 2023-12-20 11:57:30,814 - debrepack - DEBUG: stdout: 04597187d1 Update app Zuul Check Jobs.
08:57:31 2023-12-20 11:57:30,814 - debrepack - DEBUG: stdout: 47d52f4b77 Remove resource requests for sriov-fec-operator controller-manager pod
08:57:31 2023-12-20 11:57:30,814 - debrepack - DEBUG: stdout: 7ea7fa7a38 Update Static Image Tags.
08:57:31 2023-12-20 11:57:30,815 - debrepack - DEBUG: stdout: 8efc754e23 sriov-fec-operator v2.7.1 system integration
08:57:31 2023-12-20 11:57:30,815 - debrepack - DEBUG: stdout: 33b1b27a0a Revert "sriov-fec-operator system integration"
08:57:31 2023-12-20 11:57:30,815 - debrepack - DEBUG: stdout: bc417508af sriov-fec-operator system integration
08:57:31 2023-12-20 11:57:30,815 - debrepack - DEBUG: stdout: c8a6462efd Add component label to sriov-fec-operator namespace
08:57:31 2023-12-20 11:57:30,815 - debrepack - DEBUG: stdout: 327d2cbae6 Merge "Update static image tags"
08:57:31 2023-12-20 11:57:30,815 - debrepack - DEBUG: stdout: e5445353a8 Merge "Enable automatic app update for sriov-fec-operator"
08:57:31 2023-12-20 11:57:30,815 - debrepack - DEBUG: stdout: 0ac8be1af0 Update static image tags
08:57:31 2023-12-20 11:57:30,815 - debrepack - INFO: [ Run - "cd /localdisk/designer/jenkins/debian-master/cgcs-root/stx/app-sriov-fec-operator; git diff ." ]
08:57:31 2023-12-20 11:57:30,821 - debcontroller - INFO: No update on package meta of stx-sriov-fec-operator-helm
08:57:31 2023-12-20 11:57:30,821 - debcontroller - INFO: The dsc file is /localdisk/loadbuild/jenkins/debian-master/std/stx-sriov-fec-operator-helm/stx-sriov-fec-operator-helm_1.0-3.stx.24.dsc
08:57:31 2023-12-20 11:57:30,821 - debcontroller - INFO: Skip creating dsc for stx-sriov-fec-operator-helm again for it exists
08:57:31 2023-12-20 11:57:30,821 - debcontroller - DEBUG: Create_dsc return DSC_NO_UPDATE for /localdisk/loadbuild/jenkins/debian-master/std/stx-sriov-fec-operator-helm/stx-sriov-fec-operator-helm_1.0-3.stx.24.dsc
08:57:31 2023-12-20 11:57:30,825 - debrepack - INFO: === Package Name: playbookconfig
08:57:31 2023-12-20 11:57:30,826 - debrepack - INFO: === Debian Package Name: playbookconfig
08:57:31 2023-12-20 11:57:30,826 - debrepack - INFO: === Package Version: 1.0-1
08:57:31 2023-12-20 11:57:30,826 - debrepack - INFO: === Package Path: /localdisk/designer/jenkins/debian-master/cgcs-root/stx/ansible-playbooks/playbookconfig
08:57:31 Traceback (most recent call last):
08:57:31 File "/localdisk/designer/jenkins/debian-master/cgcs-root/build-tools/stx/build-pkgs", line 2189, in <module>
08:57:31 build_controller.build_all(layers=layers, build_types=build_types, packages=packages)
08:57:31 File "/localdisk/designer/jenkins/debian-master/cgcs-root/build-tools/stx/build-pkgs", line 1628, in build_all
08:57:31 self.build_layers(layers=layers, build_types=build_types, packages=packages)
08:57:31 File "/localdisk/designer/jenkins/debian-master/cgcs-root/build-tools/stx/build-pkgs", line 1755, in build_layers
08:57:31 self.build_layer(layer=layer, build_types=build_types, packages=packages)
08:57:31 File "/localdisk/designer/jenkins/debian-master/cgcs-root/build-tools/stx/build-pkgs", line 1731, in build_layer
08:57:31 self.build_layer_and_build_types(layer=layer, build_types=build_types, packages=packages)
08:57:31 File "/localdisk/designer/jenkins/debian-master/cgcs-root/build-tools/stx/build-pkgs", line 1716, in build_layer_and_build_types
08:57:31 self.build_layer_and_build_type(layer=layer, build_type=build_type, packages=packages)
08:57:31 File "/localdisk/designer/jenkins/debian-master/cgcs-root/build-tools/stx/build-pkgs", line 1682, in build_layer_and_build_type
08:57:31 self.build_packages(layer_pkg_dirs, pkg_dirs, layer, word, build_type=build_type)
08:57:31 File "/localdisk/designer/jenkins/debian-master/cgcs-root/build-tools/stx/build-pkgs", line 1804, in build_packages
08:57:31 status, dsc_file = self.create_dsc(pkg_name, pkg_dir, reclaim=False, build_type=build_type)
08:57:31 File "/localdisk/designer/jenkins/debian-master/cgcs-root/build-tools/stx/build-pkgs", line 1194, in create_dsc
08:57:31 new_checksum = self.kits['dsc_maker'][build_type].checksum(pkg_dir)
08:57:31 File "/localdisk/designer/jenkins/debian-master/cgcs-root/build-tools/stx/debrepack.py", line 425, in checksum
08:57:31 with open(f, 'r', encoding="ISO-8859-1") as fd:
08:57:31 FileNotFoundError: [Errno 2] No such file or directory: '/localdisk/designer/jenkins/debian-master/cgcs-root/stx/ansible-playbooks/playbookconfig/src/playbooks/roles/k8s-storage-backends/snapshot-controller/files/k8s-v1.27.5'
08:57:31 command terminated with exit code 1
08:57:31
08:57:31
08:57:31 ###
08:57:31 ### Failed to build packages after 3 iterations
08:57:31 ###

Test Activity
-------------
N/A

Workaround
----------
N/A

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

Reviewed: https://review.opendev.org/c/starlingx/ansible-playbooks/+/904126
Committed: https://opendev.org/starlingx/ansible-playbooks/commit/f9fec399f62e882d8e6b3671caed851aa6395efa
Submitter: "Zuul (22348)"
Branch: master

commit f9fec399f62e882d8e6b3671caed851aa6395efa
Author: Boovan Rajendran <email address hidden>
Date: Wed Dec 20 09:13:26 2023 -0500

    Fix for FileNotFoundError in playbookconfig

    build-pkgs for playbookconfig is failing with FileNotFoundError
    due to providing wrong symlink for the file
    playbookconfig/src/playbooks/roles/k8s-storage-backends/snapshot-controller/files/k8s-v1.27.5.
    This change is to fix the error by adding correct symlink to the file.

    Test Plan:
    PASS: Verify by running 'build-pkgs -c -p playbookconfig'

    Closes-Bug: 2047040

    Change-Id: Ie5b05251efafc5abd768310c68638da5b5b4c136
    Signed-off-by: Boovan Rajendran <email address hidden>

Changed in starlingx:
status: In Progress → Fix Released
Ghada Khalil (gkhalil)
Changed in starlingx:
assignee: nobody → Boovan Rajendran (brajendr)
importance: Undecided → High
tags: added: stx.9.0 stx.build
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.