Uploaded image for project: 'MicroShift'
  1. MicroShift
  2. USHIFT-645

Version reported by "microshift version" does not match installed RPM version

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • openshift-4.12
    • None
    • None
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • uShift Sprint 228

      Description of problem:

      When installing RPMs built by ART, the version reported by `microshift version` does not match the version of the RPM installed.

      Version-Release number of selected component (if applicable):

       

      How reproducible:

      100%

      Steps to Reproduce:

      1. Download and install MicroShift RPMs from brew. For example the 4.12.0~ec.4 EC version: microshift-4.12.0~ec.4-202210181553.p0.g89b54d2.assembly.ec.4.el8.
      2. Run `microshift version`.

      Actual results:

      MicroShift Version: 4.12.0-0.microshift-unknown
      Base OCP Version: 4.12.0-0.nightly-2022-09-25-071630

      Expected results:

      MicroShift Version: 4.12.0~ec.4
      Base OCP Version: 4.12.0-0.nightly-2022-09-25-071630

      Additional info:

      We need to modify the .spec and Makefile such that when the .spec file has an explicit %{version} set (i.e. it's not a local build where that info is passed in from the make-rpm.sh script), that version is passed into the Makefile and overrides the Makefile default MICROSHIFT_VERSION.

              pmatusza@redhat.com Patryk Matuszak
              fzdarsky@redhat.com Frank Zdarsky
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: