Since
e5b585d15de8b07e0a179344d4187582a5c069f2 ceph-volume depends on
python-ceph-common. This commit introduces this dependency for the
ceph-osd rpm (which includes ceph-volume) and installs the dependency
for tox runs.
Fixes: https://tracker.ceph.com/issues/46772
Fixes: e5b585d15de8b07e0a179344d4187582a5c069f2
Signed-off-by: Jan Fajerski <jfajerski@suse.com>
(cherry picked from commit
cb432fe41d4ea8cb71aa592e0727d2da1978121f)
Requires: lvm2
Requires: sudo
Requires: libstoragemgmt
+Requires: python%{python3_pkgversion}-ceph-common = %{_epoch_prefix}%{version}-%{release}
%description osd
ceph-osd is the object storage daemon for the Ceph distributed file
system. It is responsible for storing objects on a local file system
@pytest.mark.parametrize('dev',[
'/dev/sdb',
api.VolumeGroup(vg_name='foo'),
- api.Volume(lv_name='vg/no_osd', lv_tags=''),
- api.Volume(lv_name='vg/no_osd', lv_tags='ceph.osd_id=null'),
+ api.Volume(lv_name='vg/no_osd', lv_tags='', lv_path='lv/path'),
+ api.Volume(lv_name='vg/no_osd', lv_tags='ceph.osd_id=null', lv_path='lv/path'),
None,
])
def test_is_not_ceph_device(self, dev):
tests_require=[
'pytest >=2.1.3',
'tox',
+ 'ceph',
],
entry_points = dict(
console_scripts = [
[tox]
-envlist = py27, py35, py36
+envlist = py36, py3
skip_missing_interpreters = true
[testenv]
[tox]
-envlist = py27, py35, py36, flake8
+envlist = py36, py3, flake8
skip_missing_interpreters = true
[testenv]
deps=
pytest
mock
+install_command=./tox_install_command.sh {opts} {packages}
commands=py.test -v {posargs:ceph_volume/tests} --ignore=ceph_volume/tests/functional
[testenv:flake8]
--- /dev/null
+#!/bin/bash
+python -m pip install --editable="file://`pwd`/../python-common"
+python -m pip install $@