Bug 1057382 - btrfs.py, line 244, KeyError: 'mount'
Summary: btrfs.py, line 244, KeyError: 'mount'
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: system-storage-manager
Version: 20
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lukáš Czerner
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-01-23 23:51 UTC by Chris Murphy
Modified: 2015-06-29 14:42 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2015-06-29 14:42:27 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
strace ssm list (684.06 KB, text/plain)
2014-01-23 23:52 UTC, Chris Murphy
no flags Details

Description Chris Murphy 2014-01-23 23:51:28 UTC
Description of problem:


Version-Release number of selected component (if applicable):
system-storage-manager-0.4-4.fc20.noarch
python-2.7.5-9.fc20.x86_64
btrfs-progs-3.12-1.fc20.x86_64
kernel-3.13.0-1.fc21.x86_64.fc21

How reproducible:
Always

Steps to Reproduce:
1. ssm list
2.
3.

Actual results:

# ssm list
--------------------------------------------------------------------
Device          Free       Used      Total  Pool         Mount point
--------------------------------------------------------------------
/dev/sda                         465.76 GB               PARTITIONED
/dev/sda1                        200.00 MB                          
/dev/sda2                         27.46 GB                          
/dev/sda3                        619.89 MB                          
/dev/sda4  239.93 GB  189.07 GB  429.00 GB  fedora_f20s             
/dev/sda5                        250.00 MB               /boot/efi  
/dev/sda6                        250.00 MB                          
/dev/sda7                          8.01 GB               SWAP       
/dev/sdb   100.05 GB  198.04 GB  298.09 GB  320stuff                
--------------------------------------------------------------------
------------------------------------------------------------
Pool         Type   Devices       Free       Used      Total  
------------------------------------------------------------
320stuff     btrfs  1        117.13 GB  298.09 GB  298.09 GB  
fedora_f20s  btrfs  1        406.83 GB  429.00 GB  429.00 GB  
------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/bin/ssm", line 48, in <module>
    sys.exit(main.main())
  File "/usr/lib/python2.7/site-packages/ssmlib/main.py", line 1851, in main
    args.func(args)
  File "/usr/lib/python2.7/site-packages/ssmlib/main.py", line 1211, in list
    self.vol.ptable(more_data=self.dev.filesystems())
  File "/usr/lib/python2.7/site-packages/ssmlib/main.py", line 836, in vol
    self._volumes = Volumes(options=self.options)
  File "/usr/lib/python2.7/site-packages/ssmlib/main.py", line 737, in __init__
    self._data['btrfs'] = btrfs.BtrfsVolume(options=self.options)
  File "/usr/lib/python2.7/site-packages/ssmlib/backends/btrfs.py", line 321, in __init__
    self._fill_subvolumes()
  File "/usr/lib/python2.7/site-packages/ssmlib/backends/btrfs.py", line 244, in _fill_subvolumes
    if self._subvolumes[prev_sv]['mount'] == '':
KeyError: 'mount'

Expected results:

No crash.


Additional info:

Comment 1 Chris Murphy 2014-01-23 23:52:30 UTC
Created attachment 854639 [details]
strace ssm list

Comment 2 Chris Murphy 2014-01-23 23:53:44 UTC
# cat /proc/self/mount
mountinfo   mounts      mountstats  
[root@f20s ~]# cat /proc/self/mountinfo
16 37 0:3 / /proc rw,nosuid,nodev,noexec,relatime shared:5 - proc proc rw
17 37 0:15 / /sys rw,nosuid,nodev,noexec,relatime shared:6 - sysfs sysfs rw,seclabel
18 37 0:5 / /dev rw,nosuid shared:2 - devtmpfs devtmpfs rw,seclabel,size=2014904k,nr_inodes=503726,mode=755
19 17 0:16 / /sys/kernel/security rw,nosuid,nodev,noexec,relatime shared:7 - securityfs securityfs rw
20 17 0:14 / /sys/fs/selinux rw,relatime shared:8 - selinuxfs selinuxfs rw
21 18 0:17 / /dev/shm rw,nosuid,nodev shared:3 - tmpfs tmpfs rw,seclabel
22 18 0:11 / /dev/pts rw,nosuid,noexec,relatime shared:4 - devpts devpts rw,seclabel,gid=5,mode=620,ptmxmode=000
23 37 0:18 / /run rw,nosuid,nodev shared:22 - tmpfs tmpfs rw,seclabel,mode=755
24 17 0:19 / /sys/fs/cgroup rw,nosuid,nodev,noexec shared:9 - tmpfs tmpfs rw,seclabel,mode=755
25 24 0:20 / /sys/fs/cgroup/systemd rw,nosuid,nodev,noexec,relatime shared:10 - cgroup cgroup rw,xattr,release_agent=/usr/lib/systemd/systemd-cgroups-agent,name=systemd
26 17 0:21 / /sys/fs/pstore rw,nosuid,nodev,noexec,relatime shared:20 - pstore pstore rw
27 17 0:22 / /sys/firmware/efi/efivars rw,nosuid,nodev,noexec,relatime shared:21 - efivarfs efivarfs rw
28 24 0:23 / /sys/fs/cgroup/cpuset rw,nosuid,nodev,noexec,relatime shared:11 - cgroup cgroup rw,cpuset
29 24 0:24 / /sys/fs/cgroup/cpu,cpuacct rw,nosuid,nodev,noexec,relatime shared:12 - cgroup cgroup rw,cpuacct,cpu
30 24 0:25 / /sys/fs/cgroup/memory rw,nosuid,nodev,noexec,relatime shared:13 - cgroup cgroup rw,memory
31 24 0:26 / /sys/fs/cgroup/devices rw,nosuid,nodev,noexec,relatime shared:14 - cgroup cgroup rw,devices
32 24 0:27 / /sys/fs/cgroup/freezer rw,nosuid,nodev,noexec,relatime shared:15 - cgroup cgroup rw,freezer
33 24 0:28 / /sys/fs/cgroup/net_cls rw,nosuid,nodev,noexec,relatime shared:16 - cgroup cgroup rw,net_cls
34 24 0:29 / /sys/fs/cgroup/blkio rw,nosuid,nodev,noexec,relatime shared:17 - cgroup cgroup rw,blkio
35 24 0:30 / /sys/fs/cgroup/perf_event rw,nosuid,nodev,noexec,relatime shared:18 - cgroup cgroup rw,perf_event
36 24 0:31 / /sys/fs/cgroup/hugetlb rw,nosuid,nodev,noexec,relatime shared:19 - cgroup cgroup rw,hugetlb
37 1 0:32 /root / rw,noatime shared:1 - btrfs /dev/sda4 rw,seclabel,compress=lzo,space_cache
38 16 0:35 / /proc/sys/fs/binfmt_misc rw,relatime shared:23 - autofs systemd-1 rw,fd=40,pgrp=1,timeout=300,minproto=5,maxproto=5,direct
39 17 0:6 / /sys/kernel/debug rw,relatime shared:24 - debugfs debugfs rw
40 17 0:36 / /sys/kernel/config rw,relatime shared:25 - configfs configfs rw
41 18 0:37 / /dev/hugepages rw,relatime shared:26 - hugetlbfs hugetlbfs rw,seclabel
42 18 0:13 / /dev/mqueue rw,relatime shared:27 - mqueue mqueue rw,seclabel
43 37 0:38 / /tmp rw shared:28 - tmpfs tmpfs rw,seclabel
44 37 0:40 / /var/lib/nfs/rpc_pipefs rw,relatime shared:29 - rpc_pipefs sunrpc rw
45 16 0:41 / /proc/fs/nfsd rw,relatime shared:30 - nfsd sunrpc rw
46 37 0:32 /home /home rw,noatime shared:31 - btrfs /dev/sda4 rw,seclabel,compress=lzo,space_cache
50 37 0:32 /systemd-journal /var/log/journal rw,noatime shared:32 - btrfs /dev/sda4 rw,seclabel,compress=lzo,space_cache
48 37 0:32 /boot /boot rw,noatime shared:33 - btrfs /dev/sda4 rw,seclabel,compress=lzo,space_cache
47 48 8:5 / /boot/efi rw,relatime shared:34 - hfsplus /dev/sda5 rw,umask=22,uid=0,gid=0,nls=utf8
49 37 0:45 /isos /mnt/isos rw,relatime shared:35 - btrfs /dev/sdb rw,seclabel,compress=lzo,space_cache

Comment 3 Fedora End Of Life 2015-05-29 10:38:51 UTC
This message is a reminder that Fedora 20 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 20. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '20'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 20 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 4 Fedora End Of Life 2015-06-29 14:42:27 UTC
Fedora 20 changed to end-of-life (EOL) status on 2015-06-23. Fedora 20 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


Note You need to log in before you can comment on or make changes to this bug.