Bug 919883 - [abrt] system-storage-manager-0.2-1.fc18: misc.py:140:get_real_size:Exception: Not supported unit in the size '100GB' argument.
Summary: [abrt] system-storage-manager-0.2-1.fc18: misc.py:140:get_real_size:Exception...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: system-storage-manager
Version: 18
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lukáš Czerner
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:9bd1c3e74682a2a58b6d62d6557...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-03-10 16:47 UTC by Dean Hunter
Modified: 2014-01-22 13:10 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-01-22 13:10:28 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (651 bytes, text/plain)
2013-03-10 16:47 UTC, Dean Hunter
no flags Details
File: core_backtrace (386 bytes, text/plain)
2013-03-10 16:47 UTC, Dean Hunter
no flags Details
File: environ (2.74 KB, text/plain)
2013-03-10 16:47 UTC, Dean Hunter
no flags Details

Description Dean Hunter 2013-03-10 16:47:01 UTC
Description of problem:
parted reported the partition size as 100GB, so I used that size for the new volume, bu apparently 100GB is not recognized by ssm. I do not know whether parted or ssm or both need to be changed, but it would be very nice if they both used the same size syntax.

[root@host ~]# parted /dev/sdb1 print
Error: /dev/sdb1: unrecognised disk label
Model: Unknown (unknown)                                                  
Disk /dev/sdb1: 100GB
Sector size (logical/physical): 512B/4096B
Partition Table: unknown
Disk Flags: 

[root@host ~]# ssm create --pool Setup --name ISO --size 100GB --fstype ext4 /dev/sdb1 /home/qemu/ISO
Traceback (most recent call last):
  File "/usr/bin/ssm", line 33, in <module>
    sys.exit(main.main())
  File "/usr/lib/python2.7/site-packages/ssmlib/main.py", line 1485, in main
    args.func(args)
  File "/usr/lib/python2.7/site-packages/ssmlib/main.py", line 904, in create
    args.size = misc.get_real_size(args.size)
  File "/usr/lib/python2.7/site-packages/ssmlib/misc.py", line 140, in get_real_size
    "size \'{}\' argument.".format(size))
Exception: Not supported unit in the size '100GB' argument.
[root@host ~]# 

Version-Release number of selected component:
system-storage-manager-0.2-1.fc18

Additional info:
cmdline:        /usr/bin/python /usr/bin/ssm create --pool Setup --name ISO --size 100GB --fstype ext4 /dev/sdb1 /home/qemu/ISO
executable:     /usr/bin/ssm
kernel:         3.8.1-201.fc18.x86_64
uid:            0

Truncated backtrace:
misc.py:140:get_real_size:Exception: Not supported unit in the size '100GB' argument.

Traceback (most recent call last):
  File "/usr/bin/ssm", line 33, in <module>
    sys.exit(main.main())
  File "/usr/lib/python2.7/site-packages/ssmlib/main.py", line 1485, in main
    args.func(args)
  File "/usr/lib/python2.7/site-packages/ssmlib/main.py", line 904, in create
    args.size = misc.get_real_size(args.size)
  File "/usr/lib/python2.7/site-packages/ssmlib/misc.py", line 140, in get_real_size
    "size \'{}\' argument.".format(size))
Exception: Not supported unit in the size '100GB' argument.

Local variables in innermost frame:
size: '100GB'

Comment 1 Dean Hunter 2013-03-10 16:47:05 UTC
Created attachment 707994 [details]
File: backtrace

Comment 2 Dean Hunter 2013-03-10 16:47:07 UTC
Created attachment 707995 [details]
File: core_backtrace

Comment 3 Dean Hunter 2013-03-10 16:47:08 UTC
Created attachment 707996 [details]
File: environ

Comment 4 Dean Hunter 2013-03-10 16:53:39 UTC
The units do not agree even within ssm:

[root@host ~]# ssm list devices
-----------------------------------------------------------------------------
Device          Free       Used      Total  Pool         Mount point           
-----------------------------------------------------------------------------
/dev/sda                         149.05 GB               PARTITIONED           
/dev/sda1                        500.00 MB               /boot                 
/dev/sda2    0.00 KB  148.56 GB  148.56 GB  fedora_host                        
/dev/sdb                           1.82 TB                                     
/dev/sdb1  931.32 GB    0.00 KB   93.13 GB  Setup                              
/dev/sdb2                        838.19 GB                                     
/dev/sdc                           3.75 GB                                     
/dev/sdc1                          3.74 GB               /run/media/root/LIVE  
-----------------------------------------------------------------------------

[root@host ~]# ssm create --pool Setup --name ISO --size 93.13GB --fstype ext4 /dev/sdb1 /home/qemu/ISO
Traceback (most recent call last):
  File "/usr/bin/ssm", line 33, in <module>
    sys.exit(main.main())
  File "/usr/lib/python2.7/site-packages/ssmlib/main.py", line 1485, in main
    args.func(args)
  File "/usr/lib/python2.7/site-packages/ssmlib/main.py", line 904, in create
    args.size = misc.get_real_size(args.size)
  File "/usr/lib/python2.7/site-packages/ssmlib/misc.py", line 140, in get_real_size
    "size \'{}\' argument.".format(size))
Exception: Not supported unit in the size '93.13GB' argument.
[root@host ~]#

Comment 5 Fedora End Of Life 2013-12-21 12:02:29 UTC
This message is a reminder that Fedora 18 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 18. 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 WONTFIX if it remains open with a Fedora 
'version' of '18'.

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 prior to Fedora 18's end of life.

Thank you for reporting this issue and we are sorry that we may not be 
able to fix it before Fedora 18 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 to Fedora 18's end of life.

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 6 Lukáš Czerner 2014-01-22 13:10:28 UTC
Please see the ssm manual page:

"Gives the size to allocate for the new logical volume A size suffix K|k, M|m, G|g, T|t, P|p, E|e can be used to define 'power of  two'  units.  If  no  unit  is  provided,  it defaults  to  kilobytes. This is optional if if not given maximum possible size will be used."

It means that units in format such as GB are not supported.

Although this might change in the new version of ssm, we're not going to change it in f18.

Thanks!
-Lukas


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