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 1094646

Summary: ssm list fail due the snapshots created by yum-fs-snapshot plugin
Product: Red Hat Enterprise Linux 7 Reporter: Aram Kananov <akananov>
Component: system-storage-managerAssignee: Lukáš Czerner <lczerner>
Status: CLOSED ERRATA QA Contact: Boyang Xue <bxue>
Severity: unspecified Docs Contact:
Priority: medium    
Version: 7.0CC: agk, akananov, avaddara, dwysocha, eguan, esandeen, jdeenada, lczerner, lilu, prajnoha, sauchter, swhiteho, zkabelac
Target Milestone: rcKeywords: Patch
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: system-storage-manager-0.4-6.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-04 07:53:31 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:
Bug Depends On:    
Bug Blocks: 1113520, 1203710, 1205796, 1295577, 1313485    
Attachments:
Description Flags
full ssm list output including error message
none
lvdisplay output none

Description Aram Kananov 2014-05-06 08:36:43 UTC
Created attachment 892805 [details]
full ssm list output including error message

Description of problem:
ssm list command fail if there are snapshots on the system created by yum-fs-snapshot plugin. 

Version-Release number of selected component (if applicable):
7.0 RC

How reproducible:



Steps to Reproduce:
1. FS layout is LVMthinp + crypt + XFS 
2. enable yum-fs-snapshot 
3. install any package with yum 
4. ru ssm list  

Actual results:
ssm list fails with following errors
Traceback (most recent call last):
  File "/bin/ssm", line 48, in <module>
    sys.exit(main.main())
  File "/usr/lib/python2.7/site-packages/ssmlib/main.py", line 1855, in main
    args.func(args)
  File "/usr/lib/python2.7/site-packages/ssmlib/main.py", line 1216, in list
    self.snap.ptable()
  File "/usr/lib/python2.7/site-packages/ssmlib/main.py", line 851, in snap
    self._snapshots = Snapshots(options=self.options)
  File "/usr/lib/python2.7/site-packages/ssmlib/main.py", line 770, in __init__
    self._data['lvm'] = lvm.SnapInfo(options=self.options)
  File "/usr/lib/python2.7/site-packages/ssmlib/backends/lvm.py", line 403, in __init__
    self._parse_data(command)
  File "/usr/lib/python2.7/site-packages/ssmlib/backends/lvm.py", line 110, in _parse_data
    self._fill_aditional_info(row)
  File "/usr/lib/python2.7/site-packages/ssmlib/backends/lvm.py", line 420, in _fill_aditional_info
    size = float(snap['vol_size']) * float(snap['snap_size'])
ValueError: could not convert string to float: 

Expected results:
ssm list lists snapshots created by yum-fs-snapshot plugin

Additional info:

Comment 1 Aram Kananov 2014-05-06 08:37:28 UTC
Created attachment 892806 [details]
lvdisplay output

Comment 2 Aram Kananov 2014-05-06 08:54:51 UTC
ssm fails because of Data% column of snapshot created by yum-fs-snapshot is empty. 

lvs
  LV                      VG          Attr       LSize   Pool   Origin Data%  Move Log Cpy%Sync Convert
  home                    rhel_krutik Vwi-aotz--  15.86g pool00         28.59                          
  pool00                  rhel_krutik twi-a-tz-- 140.77g                 6.71                          
  root                    rhel_krutik owi-aotz--  15.86g pool00         30.79                          
  root_yum_20140506105211 rhel_krutik Vwi---tz-k  15.86g pool00 root                                   
  snap20140506T105146     rhel_krutik swi-a-s---   3.17g        root     0.41                          
  swap                    rhel_krutik -wi-ao----   7.64g

Comment 11 Jayaraj 2015-11-12 02:51:44 UTC
Hi Team,

Can you please let me know when can we see a resolution on this?
Can this be considered for 7.3?

Please let me know to update the customer effectively.

Thanks,
Jay

Comment 12 Lukáš Czerner 2015-11-12 09:12:22 UTC
Hi, we already have an upstream fix (9020b749e7151f0076ba6ecccf28c0576966fa7d) so this will go in for 7.3.

Thanks!
-Lukas

Comment 15 Jayaraj 2016-05-24 05:41:09 UTC
Lukas,
As you mentioned that there is already a fix available, please confirm if this can go in RHEL 7.3 to advice customer accordingly.
Thanks,
Jay

Comment 16 Lukáš Czerner 2016-05-31 14:36:06 UTC
Hi, yes this can go into RHEL 7.3

-Lukas

Comment 25 errata-xmlrpc 2016-11-04 07:53:31 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-2016-2528.html