Bug 1091698
| Summary: | yum-plugin-fs-snapshot fails to take a BTRFS snapshot | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Nux <nux> | ||||||
| Component: | yum-utils | Assignee: | Michal Domonkos <mdomonko> | ||||||
| Status: | CLOSED ERRATA | QA Contact: | Eva Mrakova <emrakova> | ||||||
| Severity: | high | Docs Contact: | |||||||
| Priority: | unspecified | ||||||||
| Version: | 7.0 | CC: | alexander.strachan, alexandre.chanu, brendan, dkochuka, emrakova, jzeleny, riehecky, tbabut, vmukhame, warren | ||||||
| Target Milestone: | rc | ||||||||
| Target Release: | --- | ||||||||
| Hardware: | x86_64 | ||||||||
| OS: | Linux | ||||||||
| Whiteboard: | |||||||||
| Fixed In Version: | yum-utils-1.1.31-35.el7 | Doc Type: | If docs needed, set a value | ||||||
| Doc Text: | Story Points: | --- | |||||||
| Clone Of: | Environment: | ||||||||
| Last Closed: | 2016-11-04 00:13: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: | |||||||||
| Attachments: |
|
||||||||
Workaround to remove the plugin: edit /etc/yum/pluginconf.d/fs-snapshot.conf change "enabled" from "1" to "0" $ yum remove yum-plugin-fs-snapshot I received a report via private email that simply changing the btrfsctl command to btrfs fixes it. 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. Created attachment 1127982 [details]
patch
Patch in upstream, backporting.
> 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
Yes, it indeed is. Thanks for the reference!
Created attachment 1127984 [details]
spec file patch
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