diff options
-rw-r--r-- | doc/rados/operations/crush-map.rst | 3 | ||||
-rw-r--r-- | src/ceph-volume/ceph_volume/tests/functional/batch/tox.ini | 1 | ||||
-rw-r--r-- | src/ceph-volume/ceph_volume/tests/functional/lvm/tox.ini | 1 | ||||
-rw-r--r-- | src/ceph-volume/ceph_volume/tests/functional/simple/tox.ini | 1 | ||||
-rw-r--r-- | src/ceph-volume/ceph_volume/util/system.py | 4 | ||||
-rw-r--r-- | src/test/bufferlist.cc | 5 | ||||
-rw-r--r-- | src/tools/osdmaptool.cc | 5 |
7 files changed, 12 insertions, 8 deletions
diff --git a/doc/rados/operations/crush-map.rst b/doc/rados/operations/crush-map.rst index 792bbcdf219..90a3871144f 100644 --- a/doc/rados/operations/crush-map.rst +++ b/doc/rados/operations/crush-map.rst @@ -953,8 +953,7 @@ release notes and documentation carefully before changing the profile on a running cluster, and consider throttling recovery/backfill parameters to limit the impact of a bolus of backfill. - -.. _CRUSH - Controlled, Scalable, Decentralized Placement of Replicated Data: https://ceph.com/wp-content/uploads/2016/08/weil-crush-sc06.pdf +.. _CRUSH - Controlled, Scalable, Decentralized Placement of Replicated Data: https://ceph.com/assets/pdfs/weil-crush-sc06.pdf Primary Affinity diff --git a/src/ceph-volume/ceph_volume/tests/functional/batch/tox.ini b/src/ceph-volume/ceph_volume/tests/functional/batch/tox.ini index 508d1b4c6cd..4556af9b1aa 100644 --- a/src/ceph-volume/ceph_volume/tests/functional/batch/tox.ini +++ b/src/ceph-volume/ceph_volume/tests/functional/batch/tox.ini @@ -34,6 +34,7 @@ changedir= commands= git clone -b {env:CEPH_ANSIBLE_BRANCH:master} --single-branch {env:CEPH_ANSIBLE_CLONE:"https://github.com/ceph/ceph-ansible.git"} {envdir}/tmp/ceph-ansible python -m pip install -r {envdir}/tmp/ceph-ansible/tests/requirements.txt + ansible-galaxy install -r {envdir}/tmp/ceph-ansible/requirements.yml -v # bash {toxinidir}/../scripts/vagrant_up.sh {env:VAGRANT_UP_FLAGS:""} {posargs:--provider=virtualbox} bash {toxinidir}/../scripts/vagrant_up.sh {posargs:--provider=virtualbox} diff --git a/src/ceph-volume/ceph_volume/tests/functional/lvm/tox.ini b/src/ceph-volume/ceph_volume/tests/functional/lvm/tox.ini index bec30e6d7cb..9da13be2820 100644 --- a/src/ceph-volume/ceph_volume/tests/functional/lvm/tox.ini +++ b/src/ceph-volume/ceph_volume/tests/functional/lvm/tox.ini @@ -32,6 +32,7 @@ changedir= commands= git clone -b {env:CEPH_ANSIBLE_BRANCH:master} --single-branch {env:CEPH_ANSIBLE_CLONE:"https://github.com/ceph/ceph-ansible.git"} {envdir}/tmp/ceph-ansible pip install -r {envdir}/tmp/ceph-ansible/tests/requirements.txt + ansible-galaxy install -r {envdir}/tmp/ceph-ansible/requirements.yml -v bash {toxinidir}/../scripts/vagrant_up.sh {env:VAGRANT_UP_FLAGS:"--no-provision"} {posargs:--provider=virtualbox} bash {toxinidir}/../scripts/generate_ssh_config.sh {changedir} diff --git a/src/ceph-volume/ceph_volume/tests/functional/simple/tox.ini b/src/ceph-volume/ceph_volume/tests/functional/simple/tox.ini index 1fdfe26a876..f5f9c8024b9 100644 --- a/src/ceph-volume/ceph_volume/tests/functional/simple/tox.ini +++ b/src/ceph-volume/ceph_volume/tests/functional/simple/tox.ini @@ -28,6 +28,7 @@ changedir= commands= git clone -b {env:CEPH_ANSIBLE_BRANCH:master} --single-branch https://github.com/ceph/ceph-ansible.git {envdir}/tmp/ceph-ansible pip install -r {envdir}/tmp/ceph-ansible/tests/requirements.txt + ansible-galaxy install -r {envdir}/tmp/ceph-ansible/requirements.yml -v bash {toxinidir}/../scripts/vagrant_up.sh {env:VAGRANT_UP_FLAGS:"--no-provision"} {posargs:--provider=virtualbox} bash {toxinidir}/../scripts/generate_ssh_config.sh {changedir} diff --git a/src/ceph-volume/ceph_volume/util/system.py b/src/ceph-volume/ceph_volume/util/system.py index 2563c736fea..ed1fb8ed2a2 100644 --- a/src/ceph-volume/ceph_volume/util/system.py +++ b/src/ceph-volume/ceph_volume/util/system.py @@ -59,10 +59,10 @@ def find_executable_on_host(locations=[], executable='', binary_check='/bin/ls') stdout = as_string(process.stdout.read()) if stdout: executable_on_host = stdout.split('\n')[0] - mlogger.info('Executable {} found on the host, will use {}'.format(executable, executable_on_host)) + logger.info('Executable {} found on the host, will use {}'.format(executable, executable_on_host)) return executable_on_host else: - mlogger.warning('Executable {} not found on the host, will return {} as-is'.format(executable, executable)) + logger.warning('Executable {} not found on the host, will return {} as-is'.format(executable, executable)) return executable def which(executable, run_on_host=False): diff --git a/src/test/bufferlist.cc b/src/test/bufferlist.cc index cf182f01748..99e954ff597 100644 --- a/src/test/bufferlist.cc +++ b/src/test/bufferlist.cc @@ -1860,8 +1860,9 @@ TEST(BufferList, rebuild_aligned_size_and_memory) { bl.append(ptr, 0, 0); EXPECT_EQ(bl.get_num_buffers(), 2); EXPECT_EQ(bl.back().length(), 0); - /* rebuild_aligned() calls rebuild_aligned_size_and_memory() */ - bl.rebuild_aligned(4096); + /* rebuild_aligned() calls rebuild_aligned_size_and_memory(). + * we assume the rebuild always happens. */ + EXPECT_TRUE(bl.rebuild_aligned(4096)); EXPECT_EQ(bl.get_num_buffers(), 1); } } diff --git a/src/tools/osdmaptool.cc b/src/tools/osdmaptool.cc index 3b4cbff3578..15264645b94 100644 --- a/src/tools/osdmaptool.cc +++ b/src/tools/osdmaptool.cc @@ -693,9 +693,10 @@ skip_upmap: for (unsigned i=0; i<osds.size(); i++) { //cout << " rep " << i << " on " << osds[i] << std::endl; - count[osds[i]]++; + if (osds[i] != CRUSH_ITEM_NONE) + count[osds[i]]++; } - if (osds.size()) + if (osds.size() && osds[0] != CRUSH_ITEM_NONE) first_count[osds[0]]++; if (primary >= 0) primary_count[primary]++; |