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

rpm-ostree doesn't expand $arch in repo baseurl

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

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • rhel-10.0
    • rpm-ostree
    • None
    • No
    • None
    • rhel-image-mode
    • 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?

      Running tests in image mode with testing farm, `rpm-ostree install` got:

      error: Updating rpm-md repo 'ovs': cannot update repo 'ovs': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried; Last error: Status code: 404 for https://download.devel.redhat.com/rhel-10/nightly/FDP/latest-FDP-10-RHEL-10/compose/Server/$arch/os/repodata/repomd.xml (IP: 10.0.14.183)

      The $arch in ovs.repo is not expanded, meanwhile $releasever expanded well

      What is the impact of this issue to you?

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

      How reproducible is this bug?:

      always

      Steps to reproduce

      (Login image mode env)

       

      cat << EOF > /etc/yum.repos.d/ovs.repo
      [ovs]
      name=ovs
      baseurl=https://download.devel.redhat.com/rhel-\$releasever/nightly/FDP/latest-FDP-\$releasever-RHEL-\$releasever/compose/Server/\$arch/os/
      enabled=1
      gpgcheck=0
      skip_if_unavailable=1
      sslverify=0
      EOF
      
      rpm-ostree install openvswitch3.3
      

      Expected results

      Actual results

      bash-5.2# rpm-ostree install openvswitch3.3
      Checking out tree 12276e6... done
      Enabled rpm-md repositories: beaker-harness rcm-tools rhel-BaseOS rhel-AppStream ovs
      Updating metadata for 'beaker-harness'... done
      Updating metadata for 'rcm-tools'... done
      Updating metadata for 'rhel-BaseOS'... done
      Updating metadata for 'rhel-AppStream'... done
      Updating metadata for 'ovs'... done
      error: Updating rpm-md repo 'ovs': cannot update repo 'ovs': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried; Last error: Status code: 404 for https://download.devel.redhat.com/rhel-10/nightly/FDP/latest-FDP-10-RHEL-10/compose/Server/$arch/os/repodata/repomd.xml (IP: 10.0.14.183)
      bash-5.2# cat /etc/yum.repos.d/ovs.repo
      [ovs]
      name=ovs
      baseurl=https://download.devel.redhat.com/rhel-$releasever/nightly/FDP/latest-FDP-$releasever-RHEL-$releasever/compose/Server/$arch/os/
      enabled=1
      gpgcheck=0
      skip_if_unavailable=1
      sslverify=0

              coreos-bot CoreOS Bot
              rh-ee-mshi1 Mingyu Shi
              CoreOS Bot CoreOS Bot
              CoreOS QE Bot CoreOS QE Bot
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated: