microsoft / aroworkshop

Azure Red Hat OpenShift workshop
Creative Commons Attribution 4.0 International
58 stars 123 forks source link

CI/CD pipeline stage "Build Image" fails (ARO 3.11) #53

Closed clarenceb closed 1 year ago

clarenceb commented 4 years ago

The initial run of the "tasks-pipeline" pipeline fails on the "Build Image" step.

Error from Jenkins for Stage "Build Image":

ERROR: Error running start-build on at least one item: [buildconfig/tasks];
{reference={}, err=Uploading file "target/ROOT.war" as binary input for the build ...
Error from server (InternalError): Internal error occurred: pods "tasks-1-build" is forbidden: cannot exec into or attach to a privileged container, verb=start-build, cmd=oc --server=https://172.30.0.1:443 --certificate-authority=/var/run/secrets/kubernetes.io/serviceaccount/ca.crt --namespace=dev-aro --token=XXXXX start-build buildconfig/tasks --from-file=target/ROOT.war --wait=true -o=name , out=, status=1}

Jenkins log with additional context:

...snip...
[Pipeline] stage
[Pipeline] { (Build Image)
[Pipeline] sh
+ cp target/openshift-tasks.war target/ROOT.war
[Pipeline] script
[Pipeline] {
[Pipeline] echo

[Pipeline] _OcContextInit
[Pipeline] _OcContextInit
[Pipeline] readFile
[Pipeline] _OcAction
[Pipeline] }
[Pipeline] // script
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Deploy DEV)
Stage "Deploy DEV" skipped due to earlier failure(s)
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Promote to STAGE?)
Stage "Promote to STAGE?" skipped due to earlier failure(s)
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Deploy STAGE)
Stage "Deploy STAGE" skipped due to earlier failure(s)
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
ERROR: Error running start-build on at least one item: [buildconfig/tasks];
{reference={}, err=Uploading file "target/ROOT.war" as binary input for the build ...
Error from server (InternalError): Internal error occurred: pods "tasks-1-build" is forbidden: cannot exec into or attach to a privileged container
, verb=start-build, cmd=oc --server=https://172.30.0.1:443 --certificate-authority=/var/run/secrets/kubernetes.io/serviceaccount/ca.crt --namespace=dev-aro --token=XXXXX start-build buildconfig/tasks --from-file=target/ROOT.war --wait=true -o=name , out=, status=1}

Finished: FAILURE
nichochen commented 4 years ago

Thanks for the update. Dev team has identified the issue. Fixing is coming soon.

clarenceb commented 4 years ago

Thanks @nichochen, for additional context, the cluster is a new one I created today ~7 hours ago.

jamesread commented 1 year ago

Closing because ARO v3 is EOL.