Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1244119

Summary: yum fssnapshot ignores fssnap_automatic_percentage in yum.conf
Product: Red Hat Enterprise Linux 7 Reporter: Marek Marusic <mmarusic>
Component: yumAssignee: Valentina Mukhamedzhanova <vmukhame>
Status: CLOSED ERRATA QA Contact: Karel Srot <ksrot>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.1CC: james.antill, ksrot, vmukhame
Target Milestone: rcKeywords: Documentation
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: yum-3.4.3-130.el7 Doc Type: Bug Fix
Doc Text:
No docs needed
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-11-19 12:39:00 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 Marek Marusic 2015-07-17 08:02:29 UTC
Description of problem:
yum.conf manpage says:
fssnap_automatic_percentage The size of new snaphosts, expressed as a percentage of the old origin device.  Any number between 1 and 100. Default is '100'.

But when I use fssnap_automatic_percentage=1 yum does ingnore this value.
When I use fssnap_percentage=1 yum works as expected and uses this value during creation of fssnapshot.

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

How reproducible:
always

Steps to Reproduce:
1.# echo "fssnap_automatic_percentage=1" >> yum.conf
2.# yum -y install dummy-pkg
3.# lvs

Actual results:
Notice the LSize of created snapshot after running lvs. It says 2.00g.

[root]# yum -y install dummy-pkg
Loaded plugins: fs-snapshot, product-id, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
repo                                                                                                                                                                                                                   | 2.9 kB  00:00:00     
Resolving Dependencies
--> Running transaction check
---> Package dummy-pkg.noarch 0:1.0-1 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

==============================================================================================================================================================================================================================================
 Package                                                     Arch                                                     Version                                                    Repository                                              Size
==============================================================================================================================================================================================================================================
Installing:
 dummy-pkg                                                   noarch                                                   1.0-1                                                      repo                                                   2.0 k

Transaction Summary
==============================================================================================================================================================================================================================================
Install  1 Package

Total download size: 2.0 k
Installed size: 0  
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Created snapshot from rhel/root, results is: rhel/root_yum_20150717094819.279417
  Installing : dummy-pkg-1.0-1.noarch                                                                                                                                                                                                     1/1 
  Verifying  : dummy-pkg-1.0-1.noarch                                                                                                                                                                                                     1/1 

Installed:
  dummy-pkg.noarch 0:1.0-1                                                                                                                                                                                                                    

Complete!
[root]# lvs
  LV                             VG   Attr       LSize   Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
  root                           rhel owi-aos---   2.00g                                                    
  root_yum_20150717094819.279417 rhel swi-a-s---   2.00g      root   0.01                                   
  swap                           rhel -wi-ao---- 200.00m      



Expected results:
When I used fssnap_percentage=1 in yum.conf I got.
Notice the LSize of created snapshot after running lvs. It says 24.00m.
[root]# lvs
  LV                             VG   Attr       LSize   Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
  root                           rhel owi-aos---   2.00g                                                    
  root_yum_20150717095218.474308 rhel swi-a-s---  24.00m      root   0.52                                   
  swap                           rhel -wi-ao---- 200.00m

Comment 1 Marek Marusic 2015-07-17 08:24:03 UTC
The same thing happens with option fssnap_automatic_devices.
Option fssnap_automatic_devices is in yum.conf manpage but yum ignores it. You have to use fssnap_devices option which works fine.

Comment 7 errata-xmlrpc 2015-11-19 12:39:00 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2015-2095.html