client test failure due to missing /etc/swift/

Bug #1243323 reported by Jerry Seutter
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Landscape Client
Invalid
Medium
Unassigned

Bug Description

I have no /etc/swift/ directory on my system. It should not cause test failures.

===============================================================================
[ERROR]
Traceback (most recent call last):
  File "/home/jseutterlsr/src/landscape-client/trunk/landscape/tests/mocker.py", line 146, in test_method_wrapper
    result = test_method()
  File "/home/jseutterlsr/src/landscape-client/trunk/landscape/monitor/tests/test_swiftdeviceinfo.py", line 314, in test_wb_get_swift_devices_no_swift_python_libs_available
    self.assertEqual(plugin._get_swift_devices(), [])
  File "/home/jseutterlsr/src/landscape-client/trunk/landscape/monitor/swiftdeviceinfo.py", line 113, in _get_swift_devices
    ring = self._get_ring()
  File "/home/jseutterlsr/src/landscape-client/trunk/landscape/monitor/swiftdeviceinfo.py", line 183, in _get_ring
    return Ring(self._swift_ring)
  File "/usr/lib/python2.7/dist-packages/swift/common/ring/ring.py", line 134, in __init__
    validate_configuration()
  File "/usr/lib/python2.7/dist-packages/swift/common/utils.py", line 144, in validate_configuration
    sys.exit("Error: [swift-hash]: both swift_hash_path_suffix "
exceptions.SystemExit: Error: [swift-hash]: both swift_hash_path_suffix and swift_hash_path_prefix are missing from /etc/swift/swift.conf

landscape.monitor.tests.test_swiftdeviceinfo.SwiftDeviceInfoTest.test_wb_get_swift_devices_no_swift_python_libs_available
-------------------------------------------------------------------------------
Ran 2298 tests in 144.073s

Revision history for this message
🤖 Landscape Builder (landscape-builder) wrote :

This bug has not seen any activity in the last 6 months, so it is being automatically closed.

If you are still experiencing this issue, please feel free to re-open.

Landscape Team

Changed in landscape-client:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.