Bug 907634

Summary: [abrt] system-storage-manager-0.2-1.fc18: misc.py:397:run:RuntimeError: ERROR running command: "lvm lvcreate guests -L 52428800.00K -n ipa"
Product: [Fedora] Fedora Reporter: Dean Hunter <deanhunter>
Component: system-storage-managerAssignee: Lukáš Czerner <lczerner>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 18CC: lczerner
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:0dfe568d60311a12564bfc3eac0aa788fd326a14
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-22 13:15:54 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: backtrace
none
File: core_backtrace
none
File: environ none

Description Dean Hunter 2013-02-04 21:52:07 UTC
Version-Release number of selected component:
system-storage-manager-0.2-1.fc18

Additional info:
cmdline:        /usr/bin/python /bin/ssm create -n ipa --size 50G --fs ext4 -p guests
executable:     /bin/ssm
kernel:         3.7.4-204.fc18.x86_64
uid:            0

Truncated backtrace:
misc.py:397:run:RuntimeError: ERROR running command: "lvm lvcreate guests -L 52428800.00K -n ipa"

Traceback (most recent call last):
  File "/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 952, in create
    name=args.name)
  File "/usr/lib/python2.7/site-packages/ssmlib/main.py", line 356, in _new_func
    return func(self.name, **kwargs)
  File "/usr/lib/python2.7/site-packages/ssmlib/backends/lvm.py", line 186, in create
    self.run_lvm(command, noforce=True)
  File "/usr/lib/python2.7/site-packages/ssmlib/backends/lvm.py", line 60, in run_lvm
    misc.run(command, stdout=True)
  File "/usr/lib/python2.7/site-packages/ssmlib/misc.py", line 397, in run
    raise RuntimeError(err_msg)
RuntimeError: ERROR running command: "lvm lvcreate guests -L 52428800.00K -n ipa"

Local variables in innermost frame:
return_stdout: True
cmd: ['lvm', 'lvcreate', 'guests', '-L', '52428800.00K', '-n', 'ipa']
stdout: None
show_cmd: False
stdin_data: None
stdin: None
err_msg: 'ERROR running command: "lvm lvcreate guests -L 52428800.00K -n ipa"'
can_fail: False
stderr: -2
error: None
output: None
proc: <subprocess.Popen object at 0x7f94aa49cc10>

Comment 1 Dean Hunter 2013-02-04 21:52:09 UTC
Created attachment 693007 [details]
File: backtrace

Comment 2 Dean Hunter 2013-02-04 21:52:10 UTC
Created attachment 693008 [details]
File: core_backtrace

Comment 3 Dean Hunter 2013-02-04 21:52:12 UTC
Created attachment 693009 [details]
File: environ

Comment 4 Dean Hunter 2013-02-22 21:20:59 UTC
Bugs 912549, 907634, and 907633 all appear to be cases where prerequisites were not met and were not handled gracefully by ssm. I am sorry, but I can no longer recreate the errors as, now that I have learned how to use ssm correctly, I can not remember what I was doing wrong. I hope the bug report captured the information necessary to improve the error handling.

Comment 5 Lukáš Czerner 2013-02-25 08:14:38 UTC
*** Bug 907633 has been marked as a duplicate of this bug. ***

Comment 6 Lukáš Czerner 2013-02-25 08:14:40 UTC
*** Bug 912549 has been marked as a duplicate of this bug. ***

Comment 7 Lukáš Czerner 2013-02-25 08:16:33 UTC
Hi Dean,

thanks for the bug report. Error handling in ssm is know to have some problems and I am working on resolving it.

Thanks!
-Lukas

Comment 8 Fedora End Of Life 2013-12-21 11:09:03 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 9 Lukáš Czerner 2014-01-22 13:15:54 UTC
This is not a bug, but rather wrong usage of ssm. Missing devices in the example case. Even though error handling can be improved, we're not going to do this in f18.

Thanks!
-Lukas