Skip to content

Commit 9663ae3

Browse files
authored
Merge pull request #50620 from sounix000/4175-S2I-tasks-failing
RHDEVDOCS-4175 Document that all S2I tasks are failing and the solution
2 parents 014a375 + 30ab458 commit 9663ae3

File tree

2 files changed

+22
-2
lines changed

2 files changed

+22
-2
lines changed

modules/op-release-notes-1-7.adoc

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,17 @@ time="2022-03-04T09:47:57Z" level=error msg="error writing \"0 0 4294967295\\n\"
409409
time="2022-03-04T09:47:57Z" level=error msg="(unable to determine exit status)"
410410
----
411411
+
412-
With this update, the `pipelines-scc` security context constraint (SCC) is compatible with the `SETFCAP` capability necessary for S2I and Buildah clustertasks. As a result, the S2I build tasks run successfully.
412+
With this update, the `pipelines-scc` security context constraint (SCC) is compatible with the `SETFCAP` capability necessary for `Buildah` and `S2I` cluster tasks. As a result, the `Buildah` and `S2I` build tasks can run successfully.
413+
+
414+
To successfully run the `Buildah` cluster task and `S2I` build tasks for applications written in various languages and frameworks, add the following snippet for appropriate `steps` objects such as `build` and `push`:
415+
+
416+
[source,yaml]
417+
----
418+
securityContext:
419+
capabilities:
420+
add: ["SETFCAP"]
421+
----
422+
+
413423
// https://issues.redhat.com/browse/SRVKP-2091
414424

415425

modules/op-release-notes-1-8.adoc

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,13 +494,23 @@ This update fixes the issue. It passes the namespace-based configuration to the
494494

495495
* Before this update, all S2I build tasks failed with an error similar to the following message:
496496
+
497+
[source,terminal]
497498
----
498499
Error: error writing "0 0 4294967295\n" to /proc/22/uid_map: write /proc/22/uid_map: operation not permitted
499500
time="2022-03-04T09:47:57Z" level=error msg="error writing \"0 0 4294967295\\n\" to /proc/22/uid_map: write /proc/22/uid_map: operation not permitted"
500501
time="2022-03-04T09:47:57Z" level=error msg="(unable to determine exit status)"
501502
----
502503
+
503-
With this update, the `pipelines-scc` security context constraint (SCC) is compatible with the `SETFCAP` capability necessary for S2I and Buildah cluster tasks. As a result, the S2I build tasks run successfully.
504+
With this update, the `pipelines-scc` security context constraint (SCC) is compatible with the `SETFCAP` capability necessary for `Buildah` and `S2I` cluster tasks. As a result, the `Buildah` and `S2I` build tasks can run successfully.
505+
+
506+
To successfully run the `Buildah` cluster task and `S2I` build tasks for applications written in various languages and frameworks, add the following snippet for appropriate `steps` objects such as `build` and `push`:
507+
+
508+
[source,yaml]
509+
----
510+
securityContext:
511+
capabilities:
512+
add: ["SETFCAP"]
513+
----
504514
+
505515
// (borrowed from 1.7.2 release notes) https://issues.redhat.com/browse/SRVKP-2091
506516
// Piyush Garg

0 commit comments

Comments
 (0)