bond-cni build errors seen on some build systems
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
Medium
|
Steven Webster |
Bug Description
Brief Description
-----------------
bond-cni consistently fails to build on some build systems. Others are fine.
The issue appears to relate to explicit vs implicit go dependencies.
There might be two aspects to this bug.
1) address bond-cni itself. It should be explicit about all dependencies.
2) Why is the Mock build environment not delivering a consistent build result for all build hosts?
Severity
--------
Critical
Steps to Reproduce
------------------
Write down the steps to reproduce the issue
Expected Behavior
------------------
Write down what was expected after taking the steps written above
Actual Behavior
----------------
State what is the actual behavior
Reproducibility
---------------
100%
System Configuration
-------
N/A
Branch/Pull Time/Commit
-------
March 28, 2022
Last Pass
---------
March 25, 2022
Timestamp/Logs
--------------
go: vendored module <email address hidden> should be required explicitly in go.mod
go: vendored module <email address hidden> should be required explicitly in go.mod
go: vendored module <email address hidden> should be required explicitly in go.mod
go: updates to go.mod needed, disabled by -mod=vendor
(Go version in go.mod is at least 1.14 and vendor directory exists.)
to update it:
go mod tidy
error: Bad exit status from /var/tmp/
Bad exit status from /var/tmp/
RPM build errors:
Child return code was: 1
EXCEPTION: [Error()]
Traceback (most recent call last):
File "/usr/lib/
result = func(*args, **kw)
File "/usr/lib/
raise exception.
Error: Command failed. See logs for output.
# bash --login -c /usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/
Test Activity
-------------
[Sanity, Feature Testing, Regression Testing, Developer Testing, Evaluation, Other - Please specify]
Workaround
----------
Describe workaround if available
Changed in starlingx: | |
assignee: | nobody → Steven Webster (swebster-wr) |
tags: | added: stx.build stx.networking |
Changed in starlingx: | |
assignee: | Steven Webster (swebster-wr) → nobody |
From Scott:
The build passes if bond-cni compiles against golang 1.16.12, it fails if it compiled against golang 1.17.5 or higher. We build both, and under parallel build, it's non-deterministic which golang will complete first, an thereby become available to bond-cni.
bond-cni should add an explicit BuildRequires on golang >= 1.17.5, and then address the build issues.