]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
qa/suites: add librados2 to "extra_packages" for upgrade tests
authorKefu Chai <kchai@redhat.com>
Thu, 15 Nov 2018 03:34:29 +0000 (11:34 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 15 Nov 2018 03:56:24 +0000 (11:56 +0800)
commitae36a614465dc4ddba830ca9a89d1d106ee8890b
tree81a8e2aef63c0447fb15b7f561ee42aef1965bda
parenteaf8e409806a1a0cb4cacc36857daa99a80bac66
qa/suites: add librados2 to "extra_packages" for upgrade tests

we use the playbook of "testnodes.yml" defined by ceph-cm-ansible for
initializing test nodes, and the role of "testnode" is used by
testnodes.yml. "testnode" requires "qemu-system-x86" or "qemu-kvm"
package to be installed. the qemu in turn depends on librbd1 and
librados2.

before librados3 was introduced, this worked perfectly. because in ceph
repo, qa/packages/packages.yaml defines the default set of packages the
"install" tasks should install. and in that yaml file, librados2 was
listed. so the package management system will overwrite the librados2
installed by ansible playbook with the version specified by the
"install" task, as apt/yum thinks this is what user requires explicitly,
so it's fine to install a different version of librados2.

after librados3 was introduced, librados2 was removed from
qa/packages/packages.yaml. because, by default, we need to install
librados3 instead of librados2 for ready a nautilus cluster. but the
problem is, the packge list also applies to "install" tasks installing
releases before nautilus, where we still need to replace the librados2
installed by ansible.

so, to address this issue, "librados2" is added to "extra_packages" of
the "install" tasks of tests installing old releases to install
librados2 explicitly instead of as a dependency of other ceph packages
like librbd1.

Signed-off-by: Kefu Chai <kchai@redhat.com>
qa/suites/fs/upgrade/featureful_client/old_client/tasks/0-luminous.yaml
qa/suites/fs/upgrade/featureful_client/upgraded_client/tasks/0-luminous.yaml
qa/suites/fs/upgrade/snaps/tasks/0-luminous.yaml
qa/suites/rados/thrash-old-clients/1-install/hammer.yaml
qa/suites/rados/thrash-old-clients/1-install/jewel.yaml
qa/suites/rados/thrash-old-clients/1-install/luminous.yaml
qa/suites/rados/upgrade/luminous-x-singleton/1-install/luminous.yaml
qa/suites/upgrade/mimic-x/parallel/1-ceph-install/mimic.yaml
qa/suites/upgrade/mimic-x/stress-split/1-ceph-install/mimic.yaml