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

[Azure][RHEL-10] 'pkcon refresh' fails to update repo with $arch

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

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • rhel-10.0, rhel-10.1
    • PackageKit
    • No
    • Moderate
    • rhel-display-hw-multimedia
    • None
    • False
    • False
    • Hide

      None

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

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

      pkcon refresh command fails to update repo in Azure RHUI:
      Fatal error: cannot update repo 'codeready-builder-for-rhel-10-rhui-rpms': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried; Last error: Status code: 403 for https://rhui4-1.microsoft.com/pulp/repos/content/dist/rhel10/rhui/10/$arch/codeready-builder/os/repodata/repomd.xml (IP: 52.142.4.99)
       
      It seems the root cause is that it cannot get $arch value. If I replace $arch with hardcoded "aarch64" it works well.
       
      Other information:

      • Can install packages from RHUI.
      • dnf makecache --refresh command works well.

        What is the impact of this issue to you?

        Not see other feature impact.

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

        PackageKit-1.2.8-8.el10.x86_64
        rhui-azure-rhel10-2.4-705.noarch

        How reproducible is this bug?:

        100%

        Steps to reproduce

      1.  Start a RHEL-10 VM on Azure with RHUI installed.
      2.  Run "pkcon refresh"

      Expected results

      Repos can be updated successfully with "pkcon refresh".

      Actual results

      "pkcon refresh" fails.

              rhn-engineering-rhughes Richard Hughes
              yuxisun@redhat.com Yuxin Sun
              Richard Hughes Richard Hughes
              Bohdan Milar Bohdan Milar
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated: