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.
Description of problem:
After installing yum-plugin-fs-snapshot snapshotting operations fail and yum functionality is broken.
Version-Release number of selected component (if applicable):
1.1.31-24.el7
How reproducible:
always
Steps to Reproduce:
1. yum install yum-plugin-fs-snapshot
2. yum install whatever
3.
Actual results:
Running transaction
fs-snapshot: snapshotting /: /yum_20140427124336
Traceback (most recent call last):
File "/bin/yum", line 29, in <module>
yummain.user_main(sys.argv[1:], exit_code=True)
File "/usr/share/yum-cli/yummain.py", line 355, in user_main
errcode = main(args)
File "/usr/share/yum-cli/yummain.py", line 261, in main
return_code = base.doTransaction()
File "/usr/share/yum-cli/cli.py", line 771, in doTransaction
resultobject = self.runTransaction(cb=cb)
File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 1761, in runTransaction
self.plugins.run('pretrans')
File "/usr/lib/python2.7/site-packages/yum/plugins.py", line 188, in run
func(conduitcls(self, self.base, conf, **kwargs))
File "/usr/lib/yum-plugins/fs-snapshot.py", line 326, in pretrans_hook
create_snapshots(conduit)
File "/usr/lib/yum-plugins/fs-snapshot.py", line 316, in create_snapshots
rc = _create_snapshot(conduit, snapshot_tag, volume)
File "/usr/lib/yum-plugins/fs-snapshot.py", line 191, in _create_snapshot
return _create_btrfs_snapshot(conduit, snapshot_tag, volume)
File "/usr/lib/yum-plugins/fs-snapshot.py", line 215, in _create_btrfs_snapshot
p = Popen(["/sbin/btrfsctl", "-c", mntpnt], stdout=PIPE, stderr=PIPE)
File "/usr/lib64/python2.7/subprocess.py", line 711, in __init__
errread, errwrite)
File "/usr/lib64/python2.7/subprocess.py", line 1308, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
btrfs subvolume list /
ID 257 gen 1598 top level 5 path root
Expected results:
yum transaction should complete and snapshot taken
Additional info:
It seems to want "/sbin/btrfsctl" which does not exist in EL7 RC, perhaps related to http://lists.baseurl.org/pipermail/yum-devel/2013-September/010371.html
Please ignore the previous. I misunderstood the email. The required change is a bit more involved.
A command like `btrfsctl -s ...` needs to be something like `btrfs subvolume snapshot <fs> <fs>/<snapname>` now.
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-2016-2187.html
Description of problem: After installing yum-plugin-fs-snapshot snapshotting operations fail and yum functionality is broken. Version-Release number of selected component (if applicable): 1.1.31-24.el7 How reproducible: always Steps to Reproduce: 1. yum install yum-plugin-fs-snapshot 2. yum install whatever 3. Actual results: Running transaction fs-snapshot: snapshotting /: /yum_20140427124336 Traceback (most recent call last): File "/bin/yum", line 29, in <module> yummain.user_main(sys.argv[1:], exit_code=True) File "/usr/share/yum-cli/yummain.py", line 355, in user_main errcode = main(args) File "/usr/share/yum-cli/yummain.py", line 261, in main return_code = base.doTransaction() File "/usr/share/yum-cli/cli.py", line 771, in doTransaction resultobject = self.runTransaction(cb=cb) File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 1761, in runTransaction self.plugins.run('pretrans') File "/usr/lib/python2.7/site-packages/yum/plugins.py", line 188, in run func(conduitcls(self, self.base, conf, **kwargs)) File "/usr/lib/yum-plugins/fs-snapshot.py", line 326, in pretrans_hook create_snapshots(conduit) File "/usr/lib/yum-plugins/fs-snapshot.py", line 316, in create_snapshots rc = _create_snapshot(conduit, snapshot_tag, volume) File "/usr/lib/yum-plugins/fs-snapshot.py", line 191, in _create_snapshot return _create_btrfs_snapshot(conduit, snapshot_tag, volume) File "/usr/lib/yum-plugins/fs-snapshot.py", line 215, in _create_btrfs_snapshot p = Popen(["/sbin/btrfsctl", "-c", mntpnt], stdout=PIPE, stderr=PIPE) File "/usr/lib64/python2.7/subprocess.py", line 711, in __init__ errread, errwrite) File "/usr/lib64/python2.7/subprocess.py", line 1308, in _execute_child raise child_exception OSError: [Errno 2] No such file or directory btrfs subvolume list / ID 257 gen 1598 top level 5 path root Expected results: yum transaction should complete and snapshot taken Additional info: It seems to want "/sbin/btrfsctl" which does not exist in EL7 RC, perhaps related to http://lists.baseurl.org/pipermail/yum-devel/2013-September/010371.html