Red Hat Bugzilla – Bug 1477998
pdata_tools killed by SIGABRT after cache_restore --debug-override-metadata-version $bad_version
Last modified: 2018-04-10 09:18:07 EDT
Description of problem: Running cache_restore with option "--debug-override-metadata-version" with specified wrong metadata version leads to SIGABRT. Version-Release number of selected component (if applicable): 0.7.0-0.1.rc6.el7 How reproducible: 100% Steps to Reproduce: 1.get valid metada input and output 2.cache_restore -i metadata -o metadata2 --debug-override-metadata-version $bad_version Actual results: [root@storageqe-21 cache]# cache_restore -i metadata -o metadata2 --debug-override-metadata-version 1 Restoring: [==================================================] 100% [root@storageqe-21 cache]# cache_restore -i metadata -o metadata2 --debug-override-metadata-version 2 cache_restore: /usr/include/boost/optional/optional.hpp:631: boost::optional<T>::reference_type boost::optional<T>::get() [with T = long unsigned int; boost::optional<T>::reference_type = long unsigned int&]: Assertion `this->is_initialized()' failed. Aborted (core dumped) Expected results: Either force restore or warning. Additional info: Aug 3 08:15:40 localhost abrt-hook-ccpp: Process 12534 (pdata_tools) of user 0 killed by SIGABRT - dumping core
Fixed by recent changes. Passing test here: https://github.com/jthornber/thin-provisioning-tools/blob/master/functional-tests/cache-functional-tests.scm#L207 New release in next few days.
Fixed in device-mapper-persistent-data-0.7.2-1.el7 # cache_restore -i /tmp/metadata -o /dev/mapper/vgtest-swapvol --debug-override-metadata-version 2134654 Restoring: [==================================================] 100% # cache_check /dev/mapper/vgtest-swapvol examining superblock superblock is invalid version incorrect: 2134654 # cache_restore -i /tmp/metadata -o /dev/mapper/vgtest-swapvol --debug-override-metadata-version 1 Restoring: [==================================================] 100% # cache_check /dev/mapper/vgtest-swapvol examining superblock examining mapping array examining hint array examining discard bitset
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://access.redhat.com/errata/RHEA-2018:0776