Bug 1138573 - Create_fs function failed with signal only works in main thread error
Summary: Create_fs function failed with signal only works in main thread error
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: openlmi-tools
Version: 20
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Peter Hatina
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-09-05 08:34 UTC by Timothy Asir
Modified: 2014-10-08 18:53 UTC (History)
4 users (show)

Fixed In Version: openlmi-tools-0.9.2-3.fc20
Clone Of:
Environment:
Last Closed: 2014-10-08 18:53:11 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Timothy Asir 2014-09-05 08:34:00 UTC
Description of problem:
Create_fs function failed with signal only works in main thread error
when its called thru vdsm client.

Version-Release number of selected component (if applicable):
openlmi-scripts version: 0.3.0-1

How reproducible:
It works well if its been called directly, however
it fails when its been consumed by another client like vdsm-client
and called.

Actual results:
MainProcess|Thread-16::ERROR::2014-09-05 13:26:45,847::storageconf::445::Openlmi::(brickCreate) signal only works in main thread
Traceback (most recent call last):
  File "/usr/share/vdsm/gluster/storageconf.py", line 438, in brickCreate
    fs.create_fs(ns, [lvName], fsys)
  File "/usr/lib/python2.7/site-packages/lmi/scripts/storage/fs.py", line 194, in create_fs
    (ret, outparams, err) = service.SyncLMI_CreateFileSystem(**args)
  File "/usr/lib/python2.7/site-packages/lmi/shell/LMIMethod.py", line 550, in __call__
    (rval, call_rparams, call_errorstr) = self.__handle_synchro_method_call_polling(job_inst)
  File "/usr/lib/python2.7/site-packages/lmi/shell/LMIMethod.py", line 422, in __handle_synchro_method_call_polling
    LMISignalHelper().signal_attach()
  File "/usr/lib/python2.7/site-packages/lmi/shell/LMIMethod.py", line 86, in signal_attach
    self._handler_sigint  = signal.signal(signal.SIGINT,  LMISignalHelper.__signal_handler)
ValueError: signal only works in main thread

Comment 1 Fedora Update System 2014-09-22 07:19:03 UTC
openlmi-tools-0.9.2-3.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/openlmi-tools-0.9.2-3.fc20

Comment 2 Fedora Update System 2014-09-25 10:31:48 UTC
Package openlmi-tools-0.9.2-3.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing openlmi-tools-0.9.2-3.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-11337/openlmi-tools-0.9.2-3.fc20
then log in and leave karma (feedback).

Comment 3 Fedora Update System 2014-10-08 18:53:11 UTC
openlmi-tools-0.9.2-3.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.


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