Commit Graph

81119 Commits

Author SHA1 Message Date
Kefu Chai
4ec785b945 qa/suites/fs: use ubuntu_latest for libcephfs_java
* instead of using ubuntu 14.04, use ubuntu_latest.since we want
  to drop the support of this release.
* refactor this test to use the facet of ubuntu_latest.yaml.

Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit aa89bb2f93)
2017-12-19 11:12:28 -06:00
Kefu Chai
4d266e3347 qa/tasks: remove test_buildpackages
the buildpackages feature is not part of ceph. and its test was moved to
teuthology in 5a43f8d5. let's remove the leftovers from ceph/ceph. BTW,
we have not run this test suite since then. and its dependency cannot be
fulfilled.

Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 582f04508f)
2017-12-19 11:12:25 -06:00
Patrick Donnelly
2f7765a8dc
Merge PR #19534 into mimic-dev1
* refs/pull/19534/head:
	qa: don't configure ec data pool with memstore

Reviewed-by: Zheng Yan <zyan@redhat.com>
2017-12-18 21:31:35 -08:00
Patrick Donnelly
b2284f23b8
qa: don't configure ec data pool with memstore
Fixes: http://tracker.ceph.com/issues/22436

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2017-12-18 21:12:22 -08:00
Yuri Weinstein
53b0a7b46d
Merge pull request #19438 from cbodley/wip-qa-rgw-multisite-trim
qa/rgw: disable log trim in multisite suite
2017-12-18 08:46:03 -08:00
Sage Weil
886af910ce
Merge pull request #19548 from tchaikov/mimic-gcc-7
build mimic-dev1 with gcc 7
2017-12-16 10:52:14 -06:00
Kefu Chai
6c13ea9a6a
Merge pull request #19542 from tchaikov/mimic-22093
qa: decrease the msg_inject_socket_failures from 1/500 to 1/1000

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
2017-12-16 12:27:00 +08:00
Kefu Chai
77f083fb35 cmake: link libcommon with libstdc++ statically if WITH_STATIC_LIBSTDCXX
this matches the linkage of libceph-common, because valgrind reports
Leak_StillReachable if daemons are linked against libceph-common, will
link daemons against common instead, and let common link libstdc++
statically, if WITH_STATIC_LIBSTDCXX=ON.

this change also reverts e6695bb6

Fixes: http://tracker.ceph.com/issues/22438
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit df9a598942)
2017-12-15 19:16:12 +08:00
Kefu Chai
f40a3fb873 cmake: link global-static against common
* as global-static references symbols offered by common.
* and remove DPDK_LIBRARIES from global, as it is libcommon which
  is using DPDK.

Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit a2cad3bb1c)
2017-12-15 19:16:12 +08:00
Kefu Chai
76ed2c4035 cmake: link executables against ceph-common
so they can have access to libstdc++ if it is linked statically.

Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit e6695bb63a)
2017-12-15 19:16:12 +08:00
Kefu Chai
c869054645 cmake: add WITH_STATIC_LIBSTDCXX option
to link libceph-common with libstdc++ if it is enabled.

Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 4c2216de6a)
2017-12-15 19:16:12 +08:00
Kefu Chai
020f641bdf install-deps.sh: use tee for writing a file
because the stdout redirect is performed by current shell not `$SUDO
cat`, so $SUDO does not help here. use `$SUDO tee` instead, which is
able to read the stdin and write to the given file just as expected.

Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 0beb846e57)
2017-12-15 19:11:52 +08:00
Kefu Chai
eba0fca4f6 install-deps.sh: avoid re-installing g++-7
* add ubuntu-toolchain-r mirrors in case the ppa.launchpad.net is not
  accessible
* add ppa repo manually, it's faster than installing
  `software-properties-common` and then launch `add-apt-repository`
* hardwire $old to the gcc version shipped by the distro, simpler this
  way.

Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit b69e3efe64)
2017-12-15 19:11:52 +08:00
Kefu Chai
acfc351095 install-deps.sh: use GCC-7 on xenial also
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 8a0935988f)
2017-12-15 19:11:51 +08:00
Kefu Chai
f95ab869e8 install-deps.sh: install new gcc as the default the right way
* should install software-properties-common beforehand, otherwise
  the `add-apt-repository` command will not be available.
* the update-alternative commandline were copied from ceph-build,
  should remove the escape characters.

Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 3882deae8c)
2017-12-15 19:11:51 +08:00
Kefu Chai
ebe7ed686e install-deps.sh: enable testing repo on centos on aarch64
the DTS-6 is only available in the testing repo

Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 4cedada14e)
2017-12-15 19:11:51 +08:00
Kefu Chai
b936ac82a5 install-deps.sh: use DTS on centos if GCC is too old
please note, run-make-check.sh sources install-deps.sh here to import
the $PATH and other environmental variables, which could be changed by
the the DTS "enable" script.

Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 3f8647a7e8)
2017-12-15 19:11:51 +08:00
Kefu Chai
c2d1e02675 install-deps.sh: install centos-release-scl-rh on aarch64
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 84660c977c)
2017-12-15 19:11:51 +08:00
Kefu Chai
0b7b53a4a9 install-deps.sh: use gcc-7 on trusty
* always install gcc-7 on trusty
* point g++ to g++-7 if not yet

Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 24d0f935dc)
2017-12-15 19:11:51 +08:00
Kefu Chai
dba0028ba1 install-deps.sh: always use yum-config-manager for consistency
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit eccc961c728153c928baa4478e9c8d5a1139a834)
2017-12-15 19:11:51 +08:00
Kefu Chai
a2f6690136 install-deps.sh: install devtoolset-7 for centos/rhel
ready them for gcc7 and libstdc++-7 for better performance.

Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit f9aa49cee1)
2017-12-15 19:11:50 +08:00
Kefu Chai
4ddd6b5b0e cmake: disable FAIL_ON_WARNINGS for rocksdb
otherwise -Werror=implicit-fallthrough will fail the build with GCC-7

Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 6559a85051)
2017-12-15 19:07:26 +08:00
Kefu Chai
6b3d0f61f9 qa: decrease the msg_inject_socket_failures from 1/500 to 1/1000
Fixes: http://tracker.ceph.com/issues/22093
Signed-off-by: Kefu Chai <kchai@redhat.com>
2017-12-15 14:21:43 +08:00
Patrick Donnelly
255453442f
Merge PR #19462 into mimic-dev1
* refs/pull/19462/head:
	memstore: write fsid to fsid not fs_fsid

Reviewed-by: Sage Weil <sage@redhat.com>
2017-12-13 15:30:34 -08:00
Patrick Donnelly
e8c6882cc9
memstore: write fsid to fsid not fs_fsid
Fixes: http://tracker.ceph.com/issues/20736

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2017-12-12 21:07:29 -08:00
Casey Bodley
f8909bb6a6 qa/rgw: disable log trim in multisite suite
the multisite tests run manual trim operations with radosgw-admin, which
can race with internal log trimming to produce tests failures

Signed-off-by: Casey Bodley <cbodley@redhat.com>
2017-12-11 16:48:02 -05:00
Sage Weil
a5eb976cb3 qa/suites/rados: add missing openstack volumes
Signed-off-by: Sage Weil <sage@redhat.com>
2017-12-09 10:20:19 -06:00
David Zafman
0f764890d9
Merge pull request #19368 from dzafman/wip-22086
ceph-objectstore-tool: Add option "dump-import" to examine an export

Reviewed-by: Sage Weil <sage@redhat.com>
2017-12-08 19:37:45 -08:00
David Zafman
c4602c9ac8 test: ceph_objectstore_tool.py: Perform dump-import
Signed-off-by: David Zafman <dzafman@redhat.com>
2017-12-08 18:50:04 -08:00
Sage Weil
32f67852af
Merge pull request #19356 from tchaikov/wip-18589-mimic-dev1
debian/control: adjust ceph-{osdomap,kvstore,monstore}-tool feature move

Reviewed-by: Sage Weil <sage@redhat.com>
2017-12-07 21:19:26 -06:00
Alfredo Deza
c0dd4a8314 ceph-volume test logging ignored ceph.conf file
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-12-07 15:03:52 -05:00
Alfredo Deza
c1d2bd52c0 ceph-volume main warn on inability to load ceph.conf, don't raise
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-12-07 15:03:45 -05:00
Alfredo Deza
38c3547a1b ceph-volume tests.api ensure that we can handle non-ceph tags in lvs
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-12-07 14:55:17 -05:00
Alfredo Deza
9306504f0a ceph-volume api.lvm only consider 'ceph.' tags in logical volumes
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-12-07 14:55:12 -05:00
Alfredo Deza
e1b77cf714 ceph-volume configuration allow inlined comments for # and ;
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-12-07 14:45:39 -05:00
Alfredo Deza
d72b8a91c0 ceph-volume tests verify that INI comments can be inlined
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-12-07 14:45:39 -05:00
Alfredo Deza
fc5ed0cae1 ceph-volume lvm.create rollback osd creation when prepare or activate fails
Signed-off-by: Alfredo Deza <adeza@redhat.com>
(cherry picked from commit 07be6fe0ab)
2017-12-07 14:41:05 -05:00
Alfredo Deza
e03a967b78 ceph-volume lvm.create fallback to bluestore when objectstore is not specified
Signed-off-by: Alfredo Deza <adeza@redhat.com>
(cherry picked from commit 6781d6498e)
2017-12-07 14:41:05 -05:00
Alfredo Deza
b50912204d ceph-volume lvm.prepare fallback to bluestore when objectstore is not specified
Signed-off-by: Alfredo Deza <adeza@redhat.com>
(cherry picked from commit 9b17ad2f8f)
2017-12-07 14:41:05 -05:00
Alfredo Deza
5704b5053e ceph-volume lvm.prepare rollback osd when prepare fails and an osd id was generated
Signed-off-by: Alfredo Deza <adeza@redhat.com>
(cherry picked from commit 579d12806b)
2017-12-07 14:41:05 -05:00
Alfredo Deza
f0b407bf47 ceph-volume lvm.common create a rollback_osd utility to cleanup failed osd prepare/create calls
Signed-off-by: Alfredo Deza <adeza@redhat.com>
(cherry picked from commit e533792e0d)
2017-12-07 14:41:05 -05:00
Alfredo Deza
3b9fade2b8
Merge pull request #19363 from ceph/wip-rm22282
ceph-volume: removed the explicit use of sudo

Reviewed-by: Alfredo Deza <adeza@redhat.com>
2017-12-07 09:38:20 -05:00
David Zafman
a8b8d541dd ceph-objectstore-tool: Add option "dump-import" to examine an export
Fixes: http://tracker.ceph.com/issues/22086

Signed-off-by: David Zafman <dzafman@redhat.com>
2017-12-06 17:30:47 -08:00
Andrew Schoen
aee71a3f51 ceph-volume: removed the explicit use of sudo
This will allow users to run ceph-volume on systems that do
not have sudo installed.

Fixes: http://tracker.ceph.com/issues/22282

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
2017-12-06 10:40:55 -06:00
Kefu Chai
cdf49ba664 debian/control: adjust ceph-{osdomap,kvstore,monstore}-tool feature move
this is a follow-up of #19328. we need to get this change into 12.2.3.
so better off do the switch somewhere after 12.2.2 which has been
tagged, and before 12.2.3, which is not tagged yet.

please note, this is not targetting master, because i want to make
sure the change number (the <num> in << 12.2.2-<num>) is correct. it
does not hurt if it's not, as long as it is ">> 12.2.2", so the replace
machinery in 12.2.3 works, and it covers the releases where the
ceph-{osdomap,kvstore,monstore}-tool are not move yet. but why don't
make it more right?

Signed-off-by: Kefu Chai <kchai@redhat.com>
2017-12-06 17:02:07 +08:00
David Zafman
b20eeada31 ceph-objectstore-tool: Remove unused map section from log dump
Caused by: 44cb6d3064

Signed-off-by: David Zafman <dzafman@redhat.com>
2017-12-05 21:08:25 -08:00
David Zafman
5083287845 ceph-objectstore-tool: Fix output of section type number
Signed-off-by: David Zafman <dzafman@redhat.com>
2017-12-05 19:40:33 -08:00
David Zafman
c6896cccc3 ceph-objectstore-tool: Improve ceph-objectstore-tool usage output
Remove unused argument test-align

Caused by: 1c8731c31e

Positional arguments are described by usage() because
the parsing code creates descriptions like "--object" for the
object positional argument.

Signed-off-by: David Zafman <dzafman@redhat.com>
2017-12-05 19:37:37 -08:00
Sage Weil
9255516b77 qa/suites/rados/upgrade: whitelist MON_DOWN, MGR_DOWN
They get restarted.

Signed-off-by: Sage Weil <sage@redhat.com>
2017-12-05 12:26:12 -06:00
Sage Weil
6dc46fc6c1
Merge pull request #19328 from liewegas/wip-fix-tools-deb
debian/control: adjust ceph-{osdomap,kvstore,monstore}-tool feature move

Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-12-04 21:28:21 -06:00