Bug 1225004 - Enforce YUM's "assumeyes" option
Summary: Enforce YUM's "assumeyes" option
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: mock
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Suchý
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-05-26 11:59 UTC by Radek Holy
Modified: 2015-10-06 02:14 UTC (History)
7 users (show)

Fixed In Version: mock-1.2.10-1.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-06-09 15:15:17 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Radek Holy 2015-05-26 11:59:45 UTC
Description of problem:
I think that Mock should enforce YUM's "assumeyes" option regardless what is configured in "config_opts['yum.conf']" since otherwise Mock is almost unusable. I believe that it can be achieved by calling YUM/DNF with "--assumeyes".


Version-Release number of selected component (if applicable):
mock-1.2.8-1.fc22.noarch


How reproducible:
always


Steps to Reproduce:
1. create a custom Mock config (e.g. by copying the /etc/mock/fedora-22-x86_64.cfg) without "assumeyes=1" in "config_opts['yum.conf']"
2. run mock -r /path/to/the/config --init


Actual results:
INFO: mock.py version 1.2.8 starting (python version = 3.4.2)...
Start: init plugins
INFO: selinux disabled
Finish: init plugins
Start: run
Start: clean chroot
Finish: clean chroot
Start: chroot init
INFO: calling preinit hooks
INFO: enabled root cache
INFO: enabled yum cache
Start: cleaning yum metadata
Finish: cleaning yum metadata
INFO: enabled ccache
Mock Version: 1.2.8
INFO: Mock Version: 1.2.8
Start: yum install
Yum command has been deprecated, use dnf instead.
See 'man dnf' and 'man yum2dnf' for more information.

fedora/22/x86_64/metalink                                   |  19 kB  00:00     
updates/22/x86_64/metalink                                  |  24 kB  00:00     
Resolving Dependencies
--> Running transaction check
---> Package bash.x86_64 0:4.3.33-2.fc22 will be installed
[...]
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package                  Arch     Version                      Repository
                                                                           Size
================================================================================
Installing for group install "Buildsystem building group":
 bash                     x86_64   4.3.33-2.fc22                fedora    1.6 M
[...]
Transaction Summary
================================================================================
Install  24 Packages (+150 Dependent packages)

Total download size: 131 M
Installed size: 489 M
Is this ok [y/d/N]: Exiting on user command
[...]


Expected results:
mock chroot initialized

...or at least mention in the documentation (site-defaults.cfg?) that the option is required.

Comment 1 Miroslav Suchý 2015-05-26 15:02:37 UTC
We provide the gun. It is up to you where you will be shooting. You can choose your leg, if you want.

baseurl/metalink etc. is required too.... :)

Nevertheless I added the warning to site-defaults.cfg in commit 83825b9

Comment 2 Radek Holy 2015-05-26 15:09:46 UTC
(In reply to Miroslav Suchý from comment #1)
> baseurl/metalink etc. is required too.... :)

Well, it's not required always. One can set "reposdir" and place the repositories there. Also, it's required by YUM (not Mock) and it's documented (at least in case of DNF). OTOH, "assumeyes" is required by Mock, it's not documented anywhere and for a beginner it might not be clear that Mock requires YUM to do anything and that it requires it to be configured somehow.

Comment 3 Radek Holy 2015-05-26 15:11:06 UTC
I understand the point with the gun and I'm a fan of this approach but I don't think that this is the case.

Comment 4 Fedora Update System 2015-06-04 11:34:54 UTC
mock-1.2.10-1.fc22 has been submitted as an update for Fedora 22.
https://admin.fedoraproject.org/updates/mock-1.2.10-1.fc22

Comment 5 Fedora Update System 2015-06-04 11:38:01 UTC
mock-1.2.10-1.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/mock-1.2.10-1.fc21

Comment 6 Fedora Update System 2015-06-04 11:39:06 UTC
mock-1.2.10-1.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/mock-1.2.10-1.fc20

Comment 7 Fedora Update System 2015-06-04 11:41:28 UTC
mock-1.2.10-1.el7 has been submitted as an update for Fedora EPEL 7.
https://admin.fedoraproject.org/updates/mock-1.2.10-1.el7

Comment 8 Fedora Update System 2015-06-04 11:42:11 UTC
mock-1.2.10-1.el6 has been submitted as an update for Fedora EPEL 6.
https://admin.fedoraproject.org/updates/mock-1.2.10-1.el6

Comment 9 Fedora Update System 2015-06-04 15:55:04 UTC
Package mock-1.2.10-1.el7:
* should fix your issue,
* was pushed to the Fedora EPEL 7 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=epel-testing mock-1.2.10-1.el7'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-EPEL-2015-6557/mock-1.2.10-1.el7
then log in and leave karma (feedback).

Comment 10 Fedora Update System 2015-06-09 15:15:17 UTC
mock-1.2.10-1.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 11 Fedora Update System 2015-06-18 13:22:29 UTC
mock-1.2.10-1.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 12 Fedora Update System 2015-06-18 13:27:23 UTC
mock-1.2.10-1.fc22 has been pushed to the Fedora 22 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 13 Fedora Update System 2015-06-20 21:09:34 UTC
mock-1.2.10-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.

Comment 14 Fedora Update System 2015-06-20 21:12:54 UTC
mock-1.2.10-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.


Note You need to log in before you can comment on or make changes to this bug.