Bug 871022
| Summary: | satellite-sync from dump fails with "[Errno 22] Invalid argument" in fcntl.fcntl | |||
|---|---|---|---|---|
| Product: | [Community] Spacewalk | Reporter: | Jan Hutař <jhutar> | |
| Component: | Server | Assignee: | Michael Mráka <mmraka> | |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Red Hat Satellite QA List <satqe-list> | |
| Severity: | unspecified | Docs Contact: | ||
| Priority: | unspecified | |||
| Version: | 1.8 | |||
| Target Milestone: | --- | |||
| Target Release: | --- | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | spacewalk-backend-1.9.5-1 | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1130767 (view as bug list) | Environment: | ||
| Last Closed: | 2013-03-06 18:34:11 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: | 917805 | |||
|
Description
Jan Hutař
2012-10-29 12:21:15 UTC
Traceback from mail:
22:49:15
SYNC ERROR: unhandled exception occurred:
Exception reported from <fqdn>
Time: Thu Nov 1 22:49:15 2012
Exception type <type 'exceptions.IOError'>
Exception Handler Information
Traceback (most recent call last):
File "/bin/satellite-sync", line 139, in main
return satsync.Runner().main()
File "/usr/lib/python2.7/site-packages/spacewalk/satellite_tools/satsync.py", line 225, in main
ret = method()
File "/usr/lib/python2.7/site-packages/spacewalk/satellite_tools/satsync.py", line 301, in _step_channels
self.syncer.process_channels()
File "/usr/lib/python2.7/site-packages/spacewalk/satellite_tools/satsync.py", line 682, in process_channels
ch = self._channel_collection.get_channel(label, timestamp)
File "/usr/lib/python2.7/site-packages/spacewalk/satellite_tools/sync_handlers.py", line 135, in get_channel
return self._cache.cache_get(channel_label, timestamp=timestamp)
File "/usr/lib/python2.7/site-packages/spacewalk/satellite_tools/syncCache.py", line 41, in cache_get
compressed=self._compressed)
File "/usr/lib/python2.7/site-packages/spacewalk/common/rhnCache.py", line 80, in get
return cache.get(name, modified)
File "/usr/lib/python2.7/site-packages/spacewalk/common/rhnCache.py", line 396, in get
return self.cache.get(name, modified)
File "/usr/lib/python2.7/site-packages/spacewalk/common/rhnCache.py", line 366, in get
pickled = self.cache.get(name, modified)
File "/usr/lib/python2.7/site-packages/spacewalk/common/rhnCache.py", line 324, in get
fd = self.get_file(name, modified)
File "/usr/lib/python2.7/site-packages/spacewalk/common/rhnCache.py", line 351, in get_file
compressed_file = self.cache.get_file(name, modified)
File "/usr/lib/python2.7/site-packages/spacewalk/common/rhnCache.py", line 293, in get_file
fd = ReadLockedFile(name, modified)
File "/usr/lib/python2.7/site-packages/spacewalk/common/rhnCache.py", line 187, in __init__
self.fd = self.get_fd(name, user, group, mode)
File "/usr/lib/python2.7/site-packages/spacewalk/common/rhnCache.py", line 216, in get_fd
_lock(fd.fileno(), RDLOCK)
File "/usr/lib/python2.7/site-packages/spacewalk/common/rhnCache.py", line 60, in _lock
fcntl.fcntl(fd, fcntl.F_SETLKW, lock)
IOError: [Errno 22] Invalid argument
This issue should be fixed in spacewalk master since
commit c72371474ca4d874027babb7918ed496425cc98e
Using fcntl.lockf should avoid any need for packing.
Marking bug as ON_QA since tonight's build of Spacewalk nightly is a release candidate for Spacewalk 1.9. Spacewalk 1.9 has been released. https://fedorahosted.org/spacewalk/wiki/ReleaseNotes19 |