Use of python-swift on Ubuntu buildd fails, attempts to access /dev/log
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Object Storage (swift) |
Fix Released
|
Medium
|
Soren Hansen | ||
swift (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Other openstack components may be importing python's libraries to be used in middleware during unit tests. Keystone is one such package, and its swift tests fail to build on Ubuntu buildds:
=======
ERROR: test_operator_roles (test_swift_
-------
Traceback (most recent call last):
File "/build/
self.test_auth = self.auth.
File "/build/
return SwiftAuth(app, conf)
File "/build/
self.logger = swift_utils.
File "/usr/lib/
handler = SysLogHandler(
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
while not socket_connect(fd, address):
File "/usr/lib/
raise socket.error(err, errno.errorcode
error: [Errno 2] ENOENT
It appears that swift unconditionally sets its logging to use syslog via /dev/log, even if (in this case) the log handlers will probably never be used. There is no way for users of library (keystone's swift_auth middleware, in this case) to specify alternative log methods, or to disable entirely. This is a problem for anyone attempting to run unit tests in a constrained environment.
Changed in swift (Ubuntu): | |
status: | Confirmed → Fix Released |
Changed in swift: | |
status: | Confirmed → Fix Committed |
Changed in swift: | |
milestone: | none → 1.7.5 |
status: | Fix Committed → Fix Released |
Confirmed
https:/ /launchpadlibra rian.net/ 97810153/ buildlog_ ubuntu- precise- i386.keystone_ 2012.1% 2Bgit2012032121 10-0ubuntu1_ FAILEDTOBUILD. txt.gz