Bug 1409735

Summary: Cannot create default config on rawhide
Product: [Fedora] Fedora Reporter: Lukas Slebodnik <lslebodn>
Component: mockAssignee: Miroslav Suchý <msuchy>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 26CC: cra, jdisnard, mebrown, msimacek, msuchy, praiskup, williams
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: mock-1.3.4-1.fc25 mock-1.3.4-1.fc24 mock-1.3.4-1.el7 mock-1.3.5-1.el6 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-03-08 13:28:24 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Lukas Slebodnik 2017-01-03 07:56:19 UTC
Description of problem:
The latest upgrade of mock had a warning as part of upgrade.
It failed because /etc/mock/fedora-26-x86_64.cfg does not exist yet.

Version-Release number of selected component (if applicable):
sh$ rpm -q mock
mock-1.3.3-1.fc26.noarch

How reproducible:
Deterministic

Steps to Reproduce:
1. //try to upgrade mock in rawhide
2. dnf update -y mock
3. file /etc/mock/default.cfg

Actual results:
Running transaction
  Installing  : python3-distro-1.0.1-1.fc26.noarch                          1/7 
  Upgrading   : mock-1.3.3-1.fc26.noarch                                    2/7 
Warning: file /etc/mock/fedora-26-x86_64.cfg does not exists.
         unable to update /etc/mock/default.cfg
  Cleanup     : mock-1.3.2-2.fc26.noarch                                    5/7 
  Verifying   : mock-1.3.3-1.fc26.noarch                                    4/7 
  Verifying   : mock-1.3.2-2.fc26.noarch                                    6/7 

/etc/mock/default.cfg: symbolic link to fedora-25-x86_64.cfg

Expected results:
Running transaction
  Installing  : python3-distro-1.0.1-1.fc26.noarch                          1/7 
  Upgrading   : mock-1.3.3-1.fc26.noarch                                    2/7 
Warning: file /etc/mock/fedora-26-x86_64.cfg does not exists.
         unable to update /etc/mock/default.cfg
  Cleanup     : mock-1.3.2-2.fc26.noarch                                    5/7 
  Verifying   : mock-1.3.3-1.fc26.noarch                                    4/7 
  Verifying   : mock-1.3.2-2.fc26.noarch                                    6/7 

/etc/mock/default.cfg: symbolic link to fedora-rawhide-x86_64.cfg

Additional info:
sh$ ls /etc/mock/
custom-1-aarch64.cfg   fedora-23-i386.cfg     fedora-25-s390x.cfg
custom-1-armhfp.cfg    fedora-23-ppc64.cfg    fedora-25-x86_64.cfg
custom-1-i386.cfg      fedora-23-ppc64le.cfg  fedora-rawhide-aarch64.cfg
custom-1-ppc64.cfg     fedora-23-s390.cfg     fedora-rawhide-armhfp.cfg
custom-1-ppc64le.cfg   fedora-23-s390x.cfg    fedora-rawhide-i386.cfg
custom-1-s390.cfg      fedora-23-x86_64.cfg   fedora-rawhide-ppc64.cfg
custom-1-s390x.cfg     fedora-24-aarch64.cfg  fedora-rawhide-ppc64le.cfg
custom-1-x86_64.cfg    fedora-24-armhfp.cfg   fedora-rawhide-s390.cfg
default.cfg            fedora-24-i386.cfg     fedora-rawhide-s390x.cfg
epel-5-i386.cfg        fedora-24-ppc64.cfg    fedora-rawhide-x86_64.cfg
epel-5-ppc.cfg         fedora-24-ppc64le.cfg  logging.ini
epel-5-x86_64.cfg      fedora-24-s390.cfg     mageia-6-armv5tl.cfg
epel-6-i386.cfg        fedora-24-s390x.cfg    mageia-6-armv7hl.cfg
epel-6-ppc64.cfg       fedora-24-x86_64.cfg   mageia-6-i586.cfg
epel-6-x86_64.cfg      fedora-25-aarch64.cfg  mageia-6-x86_64.cfg
epel-7-aarch64.cfg     fedora-25-armhfp.cfg   mageia-cauldron-armv5tl.cfg
epel-7-ppc64le.cfg     fedora-25-i386.cfg     mageia-cauldron-armv7hl.cfg
epel-7-x86_64.cfg      fedora-25-ppc64.cfg    mageia-cauldron-i586.cfg
fedora-23-aarch64.cfg  fedora-25-ppc64le.cfg  mageia-cauldron-x86_64.cfg
fedora-23-armhfp.cfg   fedora-25-s390.cfg     site-defaults.cfg

I checked scriptlet and it if obvious that it fialed because "Rawhide"
is not in /etc/os-release.

sh$ [ -s /etc/os-release ] && echo OK
OK
sh$ grep -Fq Rawhide /etc/os-release
sh$ echo $?
1

sh$ cat /etc/os-release 
NAME=Fedora
VERSION="26 (Server Edition)"
ID=fedora
VERSION_ID=26
PRETTY_NAME="Fedora 26 (Server Edition)"
ANSI_COLOR="0;34"
CPE_NAME="cpe:/o:fedoraproject:fedora:26"
HOME_URL="https://fedoraproject.org/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=rawhide
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=rawhide
PRIVACY_POLICY_URL=https://fedoraproject.org/wiki/Legal:PrivacyPolicy
VARIANT="Server Edition"
VARIANT_ID=server

Comment 1 Miroslav Suchý 2017-01-04 10:04:06 UTC
Fixed in commit
* 84957e4 (HEAD -> devel, origin/devel) "Rawhide" has been changed to "rawhide" in os-release file in current rawhide (F26) [RHBZ#1409735]

Comment 2 Charles R. Anderson 2017-02-03 03:25:41 UTC
(In reply to Miroslav Suchý from comment #1)
> * 84957e4 (HEAD -> devel, origin/devel) "Rawhide" has been changed to
> "rawhide" in os-release file in current rawhide (F26) [RHBZ#1409735]

Will you please build this fix for rawhide?  Thanks.

Comment 3 Miroslav Suchý 2017-02-03 10:38:23 UTC
I will build it on next Mock release. Which is planned approximately on 2017-02-21 (F26 branching).

Comment 4 Fedora Update System 2017-02-27 17:55:35 UTC
mock-1.3.4-1.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2017-1c433a692a

Comment 5 Fedora Update System 2017-02-27 17:55:57 UTC
mock-1.3.4-1.el6 has been submitted as an update to Fedora EPEL 6. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2017-2c7e8574bf

Comment 6 Fedora Update System 2017-02-27 17:56:20 UTC
mock-1.3.4-1.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2017-3cb1bb5aa5

Comment 7 Fedora Update System 2017-02-27 17:56:41 UTC
mock-1.3.4-1.el7 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2017-89e17056c0

Comment 8 Fedora End Of Life 2017-02-28 10:52:12 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 26 development cycle.
Changing version to '26'.

Comment 9 Fedora Update System 2017-03-01 01:48:36 UTC
mock-1.3.4-1.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2017-89e17056c0

Comment 10 Fedora Update System 2017-03-01 02:50:32 UTC
mock-1.3.4-1.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-1c433a692a

Comment 11 Fedora Update System 2017-03-01 02:53:25 UTC
mock-1.3.4-1.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-3cb1bb5aa5

Comment 12 Fedora Update System 2017-03-01 17:17:32 UTC
mock-1.3.4-1.el6 has been pushed to the Fedora EPEL 6 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2017-2c7e8574bf

Comment 13 Fedora Update System 2017-03-02 10:21:23 UTC
mock-1.3.5-1.el6 has been submitted as an update to Fedora EPEL 6. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2017-2c7e8574bf

Comment 14 Fedora Update System 2017-03-03 03:54:50 UTC
mock-1.3.4-1.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.

Comment 15 Fedora Update System 2017-03-03 04:17:07 UTC
mock-1.3.5-1.el6 has been pushed to the Fedora EPEL 6 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2017-2c7e8574bf

Comment 16 Fedora Update System 2017-03-08 13:28:24 UTC
mock-1.3.4-1.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.

Comment 17 Fedora Update System 2017-03-15 13:48:09 UTC
mock-1.3.4-1.el7 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report.

Comment 18 Fedora Update System 2017-04-13 00:16:32 UTC
mock-1.3.5-1.el6 has been pushed to the Fedora EPEL 6 stable repository. If problems still persist, please make note of it in this bug report.