Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-131704

run 1.2.x upgrade throws error while using nocopy volume mount filesystem option

Linking RHIVOS CVEs to...Migration: Automation ...RHELPRIO AssignedTeam ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • rhel-8.10
    • runc
    • None
    • None
    • Low
    • rhel-container-tools
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • Unspecified
    • Unspecified
    • Unspecified
    • None

      What were you trying to do that didn't work?

      After runc upgrade to runc-1.2.5-2.module+el8.10.0+23647+cfd78660.x86_64 using nocopy with volume mounts throws error. It was working fine with runc 1.1.x

      What is the impact of this issue to you?

      Please provide the package NVR for which the bug is seen:

      runc-1.2.5-2.module+el8.10.0+23647+cfd78660.x86_64

      How reproducible is this bug?:

      Fully

      Steps to reproduce

      1. podman run --rm --volume etcd_data:/mnt/data:nocopy ubi9 sh -c "echo test"
        test
        [root@localhost ~]# rpm -qa | grep -i runc
        runc-1.1.12-6.module+el8.10.0+23320+f7205097.x86_64
        [root@localhost ~]# podman ps
        CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
        [root@localhost ~]# dnf upgrade runc
        Updating Subscription Management repositories.
        Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs) 20 kB/s | 4.1 kB 00:00
        Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs) 11 MB/s | 114 MB 00:10
        Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs) 24 kB/s | 4.5 kB 00:00
        Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs) 11 MB/s | 77 MB 00:06
        Last metadata expiration check: 0:00:10 ago on Thu 27 Nov 2025 09:10:23 AM CET.
        Dependencies resolved.
        ============================================================================================================================================
        Package Architecture Version Repository Size
        ============================================================================================================================================
        Upgrading:
        runc x86_64 4:1.2.5-2.module+el8.10.0+23647+cfd78660 rhel-8-for-x86_64-appstream-rpms 3.8 M

      Transaction Summary
      ============================================================================================================================================
      Upgrade 1 Package

      Total download size: 3.8 M
      Is this ok [y/N]: y
      Downloading Packages:
      runc-1.2.5-2.module+el8.10.0+23647+cfd78660.x86_64.rpm 6.9 MB/s | 3.8 MB 00:00
      Total 6.9 MB/s | 3.8 MB 00:00
      Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs) 1.7 MB/s | 5.0 kB 00:00
      Importing GPG key 0xFD431D51:
      Userid : "Red Hat, Inc. (release key 2) <security@redhat.com>"
      Fingerprint: 567E 347A D004 4ADE 55BA 8A5F 199E 2F91 FD43 1D51
      From : /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
      Is this ok [y/N]: y
      Key imported successfully
      Importing GPG key 0xD4082792:
      Userid : "Red Hat, Inc. (auxiliary key) <security@redhat.com>"
      Fingerprint: 6A6A A7C9 7C88 90AE C6AE BFE2 F76F 66C3 D408 2792
      From : /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
      Is this ok [y/N]: y
      Key imported successfully
      Running transaction check
      Transaction check succeeded.
      Running transaction test
      Transaction test succeeded.
      Running transaction
      Preparing : 1/1
      Upgrading : runc-4:1.2.5-2.module+el8.10.0+23647+cfd78660.x86_64 1/2
      Cleanup : runc-1:1.1.12-6.module+el8.10.0+23320+f7205097.x86_64 2/2
      Running scriptlet: runc-1:1.1.12-6.module+el8.10.0+23320+f7205097.x86_64 2/2
      Verifying : runc-4:1.2.5-2.module+el8.10.0+23647+cfd78660.x86_64 1/2
      Verifying : runc-1:1.1.12-6.module+el8.10.0+23320+f7205097.x86_64 2/2
      Installed products updated.

      Upgraded:
      runc-4:1.2.5-2.module+el8.10.0+23647+cfd78660.x86_64

      Complete!
      [root@localhost ~]# podman run --rm --volume etcd_data:/mnt/data:nocopy ubi9 sh -c "echo test"
      Error: OCI runtime error: runc: runc create failed: invalid mount &

      {Source:/var/lib/containers/storage/volumes/etcd_data/_data Destination:/mnt/data Device:bind Flags:20486 ClearedFlags:1 PropagationFlags:[278528] Data:nocopy Relabel: RecAttr:<nil> Extensions:0 IDMapping:<nil>}

      : bind mounts cannot have any filesystem-specific options applied

      Expected results

      It should work without error

      Actual results

      throws error

              container-runtime-eng Container Runtime Eng Bot
              rhn-support-subhat Suhaas Bhat
              Container Runtime Eng Bot Container Runtime Eng Bot
              Container Runtime Bugs Bot Container Runtime Bugs Bot
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: