Bug 2040467

Summary: Cannot build ztp-site-generator container image
Product: OpenShift Container Platform Reporter: melserng
Component: Telco EdgeAssignee: melserng
Telco Edge sub component: ZTP QA Contact: yliu1
Status: CLOSED ERRATA Docs Contact:
Severity: high    
Priority: unspecified CC: imiller, keyoung
Version: 4.10   
Target Milestone: ---   
Target Release: 4.10.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-03-10 16:39:13 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description melserng 2022-01-13 18:30:01 UTC
Description of problem:
Build the ztp-site-generator container image broke with the below error

[2/2] STEP 15/19: RUN rm -rf $TEMP
rm: cannot remove '/home/ztp/temp/vendor/sigs.k8s.io/controller-runtime/pkg/leaderelection': Directory not empty
Error: error building at STEP "RUN rm -rf $TEMP": error while running runtime: exit status 1


How reproducible:
100%

Steps to Reproduce:
1. $ cd cnf-feature-deploy/ztp/resource-generator
2. $ make build
3.

Actual results:
[2/2] STEP 15/19: RUN rm -rf $TEMP
rm: cannot remove '/home/ztp/temp/vendor/sigs.k8s.io/controller-runtime/pkg/leaderelection': Directory not empty
Error: error building at STEP "RUN rm -rf $TEMP": error while running runtime: exit status 1

Expected results:
container image build successfully 

Additional info:
It may not appear if there is an old cache for golang builder image

Comment 6 errata-xmlrpc 2022-03-10 16:39:13 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: OpenShift Container Platform 4.10.3 security update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2022:0056