Gitlab runner job fails with error "msg="error reading allowed ID mappings: error reading subuid mappings for user" while running buildah task.

Solution Verified - Updated -

Issue

  • Gitlab runner pipelines jobs that use buildah in their steps fail with the error error reading allowed ID mappings:error reading subuid mappings for user.
  • The issue starts after the cluster is upgraded to Openshift Container Platform 4.11 or later.

Environment

  • Red Hat OpenShift Container Platform (RHOCP) 4.11 or later.
  • GitLab Runner Operator (community or certified).

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content