Project

General

Profile

Bug #36768

tests failures when /dev/sda doesn't exist

Added by Alfredo Deza 10 months ago. Updated 9 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
-
Start date:
11/12/2018
Due date:
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:

Description

PR https://github.com/ceph/ceph/pull/24859 introduced new unit tests that rely implicitly on systems that have devices like `/dev/sda`

tests/util/test_device.py:6: in <module>
    class TestDevice(object):
tests/util/test_device.py:120: in TestDevice
    disk1 = device.Device("/dev/sda")
util/device.py:81: in __init__
    self._parse()
util/device.py:105: in _parse
    lv = lvm.get_lv_from_argument(self.path)
api/lvm.py:353: in get_lv_from_argument
    lv = get_lv(lv_path=argument)
api/lvm.py:374: in get_lv
    lvs = Volumes()
api/lvm.py:764: in __init__
    self._populate()
api/lvm.py:768: in _populate
    for lv_item in get_api_lvs():
api/lvm.py:317: in get_api_lvs
    verbose_on_failure=False
process.py:201: in call
    **kw
/usr/local/Cellar/python/2.7.14/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py:390: in __init__
    errread, errwrite)
/usr/local/Cellar/python/2.7.14/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py:1025: in _execute_child
    raise child_exception
E   OSError: [Errno 2] No such file or directory
-------------------------------------------------------------------------------- Captured stdout ---------------------------------------------------------------------------------
--> Absolute path not found for executable: lvs
--> Ensure $PATH environment variable contains common executable locations

History

#1 Updated by Alfredo Deza 10 months ago

  • Status changed from New to Need Review

#2 Updated by Alfredo Deza 9 months ago

  • Status changed from Need Review to Resolved

Also available in: Atom PDF