Uploaded image for project: 'OpenShift Over the Air'
  1. OpenShift Over the Air
  2. OTA-920

[dkregistry] fix permission issue while extracting containers

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Normal Normal
    • None
    • None
    • None
    • 5
    • False
    • None
    • False
    • OTA 234, OTA 235, OTA 236, OTA 237, OTA 238

      Our current init container throws permissions error when used through this plugin. eg. 

      [2023-01-10T21:22:13Z TRACE cincinnati::plugins::internal::graph_builder::dkrv2_openshift_secondary_metadata_scraper::plugin] Using data directory TempDir { path: "/tmp/dkrv2chk/.tmpnxw5Zi/.tmpkMG0JR" } for tag latest
      [2023-01-10T21:22:45Z ERROR graph_builder::graph] io error
      [2023-01-10T21:22:45Z ERROR graph_builder::graph] failed to unpack `/private/tmp/dkrv2chk/.tmpnxw5Zi/.tmpkMG0JR/usr/lib/binfmt.d`
      [2023-01-10T21:22:45Z ERROR graph_builder::graph] Permission denied (os error 13) when creating dir /private/tmp/dkrv2chk/.tmpnxw5Zi/.tmpkMG0JR/usr/lib/binfmt.d

       

      We need to fix this issue of extracting the container inorder to use the dkrv2 plugin in cincinnati. 

       

      Potential Solutions:

      • Fix permission issues and test with ubi/ubi-micro containers
      • Or, create a new function to extract only a specific directory from container

       

      Definition of Done: 

      • Init/non-init Containers or Passed directories in containers are extracted without permissions issue in dkregistry.

            rhn-engineering-jeckersbe John Eckersberg
            pratikam Pratik Mahajan
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: