Commit Graph

56165 Commits

Author SHA1 Message Date
Kefu Chai
bfc25cbc93 cmake: cleanup Findbabeltrace.cmake
* we don't need the BABELTRACE_PATH_HINT setting, as packaging script
  requires the the babeltrace pacakges explicitly.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2016-07-25 15:39:02 +08:00
Kefu Chai
03a860ed11 cmake: add missing FindBacktrace.cmake
FindBacktrace.cmake is missing in older versions of cmake. so put a copy
in our tree.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2016-07-25 15:39:02 +08:00
Kefu Chai
89521942c9 cmake: add "make uninstall" support
following https://cmake.org/Wiki/RecipeAddUninstallTarget

Signed-off-by: Kefu Chai <kchai@redhat.com>
2016-07-25 15:39:02 +08:00
Kefu Chai
d4104b747f cmake: add "WITH_SUBMAN" option
it is used by ceph.spec.in for installing subscription manager cron job
on rhel.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2016-07-25 15:39:01 +08:00
Kefu Chai
e21d98aed4 cmake: cleanup FindOpenLdap.cmake
* use find_package_handle_standard_args() and remove unused bits.
* rename OPENLDAP_LIBS to OPENLDAP_LIBRARIES, to be consistent with
  find_package() modules.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2016-07-25 15:39:01 +08:00
Kefu Chai
3f6fd585f8 cmake: cleanup Findtcmalloc.cmake
use find_package_handle_standard_args() and remove unused bits.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2016-07-25 15:39:01 +08:00
Kefu Chai
3170f16e86 cmake: do not check libuuid anymore
libuuid dependency is not found in ceph.spec.in or debian/control.
and we are not using libuuid since 62bfc7a.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2016-07-25 15:39:01 +08:00
Kefu Chai
b44ed47c71 Merge pull request #10319 from wjwithagen/wip-wjw-fix-posix-tests
src/test/cli/* tests: POSIX Convert grep -P to grep -E

Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-07-25 14:35:33 +08:00
Kefu Chai
88c604dfc4 Merge pull request #10308 from xiexingguo/xxg-wip-fix-osd-df
mon/osdmonitor: fix incorrect output of "osd df" due to osd out

Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-07-25 13:23:07 +08:00
Kefu Chai
03a3f71a32 Merge pull request #10091 from rubenk/add-osd-id-to-service-description
systemd: add osd id to service description

Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-07-25 12:58:16 +08:00
Kefu Chai
b96cfc34f4 Merge pull request #10089 from gaowanlong/omapbench_usage
test: fix usage info of omapbench

Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-07-25 12:54:52 +08:00
Kefu Chai
a048e19589 Merge pull request #10251 from stiopaa1/osd_watch_addConsts
osd/Watch: add consts to member functions

Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-07-25 12:43:14 +08:00
Yan, Zheng
16ce830ce7 Merge pull request #10419 from jcsp/wip-16764
client: fix shutdown with open inodes
2016-07-24 21:42:06 -05:00
John Spray
d642b4faec client: fix shutdown with open inodes
This piece of code was dereferencing an invalid
iterator (invalidated by call to erase())

Fixes:  http://tracker.ceph.com/issues/16764
Signed-off-by: John Spray <john.spray@redhat.com>
2016-07-24 17:21:24 +01:00
Jason Dillaman
b0029b3d3d Merge pull request #9724 from vumrao/wip-vumrao-16130
rbd: cleanup - Proxied operations shouldn't result in error messages if replayed

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2016-07-24 11:13:44 -04:00
Jason Dillaman
ab5ebdef32 Merge pull request #10123 from trociny/wip-16449
librbd: prevent creation of clone from non-primary mirrored image

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2016-07-24 11:12:57 -04:00
Jason Dillaman
d808091402 Merge pull request #10348 from trociny/wip-16717
test: use wrapper that respects RBD_FEATURES when creating rbd image

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2016-07-24 11:07:28 -04:00
Kefu Chai
af1598a3b3 Merge pull request #10352 from wjwithagen/wip-wjw-freebsd-cmake-2
cmake: work to get inital FreeBSD stuff

Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-07-24 18:18:45 +08:00
Kefu Chai
b1f084a8a9 Merge pull request #10354 from stiopaa1/msg_message_addConst
msg/Message.h: add const to member function

Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-07-24 15:17:57 +08:00
Loic Dachary
e990bde08d Merge pull request #10413 from SUSE/wip-doc-dev
doc: add Prepare tenant section to Testing in the cloud chapter

Reviewed-by: Loic Dachary <ldachary@redhat.com>
2016-07-23 21:24:31 +02:00
Nathan Cutler
e6f2d4e8fc doc: add "Prepare tenant" section to "Testing in the cloud" chapter
Signed-off-by: Nathan Cutler <ncutler@suse.com>
2016-07-23 19:24:18 +02:00
Orit Wasserman
7e87eaf570 Merge pull request #10162 from gaurav36/bug-16444-radosgw-error-message
rgw: better error message when user has no bucket created yet
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
2016-07-23 15:37:59 +02:00
Josh Durgin
f84be8f6a6 Merge pull request #10405 from athanatos/wip-ec-pg-log
osd: fixups to explicitly persistenting missing sets

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2016-07-22 15:11:08 -07:00
Samuel Just
45995c9f63 osd_types: fix type of ChangeTracker::clean()
Signed-off-by: Samuel Just <sjust@redhat.com>
2016-07-22 14:31:09 -07:00
Samuel Just
379fa35750 osd_types: rename swap to claim, restrict to the non-tracking variant
Signed-off-by: Samuel Just <sjust@redhat.com>
2016-07-22 14:30:58 -07:00
Josh Durgin
b0e239da95 Merge pull request #10334 from ceph/wip-ec-pg-log
osd: persist the missing set explicitly

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2016-07-22 14:27:19 -07:00
Nathan Cutler
ea437e4c05 Merge pull request #10363 from SUSE/wip-16645
Fix libatomic_ops-devel in SUSE and specfile cleanup

Reviewed-by: Boris Ranto <branto@redhat.com>
Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
2016-07-22 22:31:33 +02:00
Yehuda Sadeh
81aef8ce43 Merge pull request #10241 from Yan-waller/yj-wip-rgwrests3-0710
rgw: add return value checking to avoid possible subsequent `parse` exception

Reviewed-by: Abhishek Lekshmanan <abhishek@suse.com>
Reviewed-by: Yehuda  Sadeh <yehuda@redhat.com>
2016-07-22 13:21:39 -07:00
Yehuda Sadeh
05f634c9b7 Merge pull request #10331 from rzarzynski/wip-rgw-keystone-doc-fix
rgw, doc: fix formatting around Keystone-related options.

Reviewed-by: Abhishek Lekshmanan <abhishek@suse.com>
2016-07-22 13:13:13 -07:00
Nathan Cutler
94e4f2190b rpm: move libatomic_ops-devel to non-distro-specific section
Signed-off-by: Nathan Cutler <ncutler@suse.com>
2016-07-22 20:42:02 +02:00
Nathan Cutler
06940e29b7 rpm: move gperftools-devel to non-distro-specific section
Signed-off-by: Nathan Cutler <ncutler@suse.com>
2016-07-22 20:42:02 +02:00
Nathan Cutler
c835f6ddf5 rpm: use new name of libatomic_ops-devel
The previous form, libatomic-ops-devel, has been deprecated since May 23, 2012.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
2016-07-22 20:42:02 +02:00
Dan Mick
8c48f87ee7 Merge pull request #10322 from ceph/wip-debian-python-warnings
debian: python related changes

Reviewed-by: Dan Mick <dmick@redhat.com>
2016-07-22 11:31:30 -07:00
Ali Maredia
42916c016b Merge pull request #10400 from tchaikov/wip-test_async_compressor
cmake: fix the build of unittest_async_compressor

Reviewed-by: Ali Maredia <amaredia@redhat.com>
2016-07-22 11:43:34 -04:00
Kefu Chai
f4cbfec581 cmake: fix the build of unittest_async_compressor
it was broken by 1e8388c

Signed-off-by: Kefu Chai <kchai@redhat.com>
2016-07-22 23:13:20 +08:00
Kefu Chai
65bd58b4f6 Merge pull request #8943 from tchaikov/wip-12287
pybind/ceph_argparse: handle non ascii unicode args

Reviewed-by: Loic Dachary <ldachary@redhat.com>
2016-07-22 22:53:31 +08:00
Daniel Gryniewicz
b3782f5bed Merge pull request #9737 from chenji-kael/wip-rgw-lifecycle
rgw:lifecycle feature [rebased]
2016-07-22 10:47:53 -04:00
Casey Bodley
74144bca3a Merge pull request #10397 from theanalyst/wip-rgw-non-ec
wip: rgw multisite: preserve zone's extra pool

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2016-07-22 10:19:13 -04:00
Haomai Wang
4e7946c2f1 Merge pull request #10394 from tchaikov/wip-16772
cmake: disable unittest_async_compressor

Reviewed-by: Haomai Wang <haomai@xsky.com>
2016-07-22 18:23:09 +08:00
Gaurav Kumar Garg
b9a2048c66 rgw: better error message when user has no bucket created yet
Currently when there is no bucket in the cluster and user execute
 "$radosgw-admin user  stats --uid=testid" command then rgw admin
not throwing meaningful error message.

With this fix it will show proper meaningful error message.

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

Reported-by: Abhishek Lekshmanan <abhishek@suse.com>
Signed-off-by: Gaurav Kumar Garg <garg.gaurav52@gmail.com>
2016-07-22 12:14:23 +02:00
Orit Wasserman
95b46c9d5c Merge pull request #10381 from SUSE/wip-doc-rgw-cgi-warning
doc/radosgw: rename config.rst to config-fcgi.rst
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
2016-07-22 12:01:20 +02:00
Abhishek Lekshmanan
d4ecc956f6
rgw multisite: preserve zone's extra pool
In current multisite scenarios,if a bucket is created in master, we end
up storing multipart metadata in `$source-zone.rgw.buckets.non-ec` pool
instead of the zone's own non-ec pool, so we end up additionally
creating this pool and storing multipart metadata entries in it. Also if
a bucket is created in a secondary zone, and we initiate a multipart
upload, before mdlog sync with master, we end up getting errors during
complete multipart requests as omap entries are partly stored in the
`$zone.rgw.buckets.non-ec` as well as `$source-zone.rgw.buckets.non-ec`
pools which leads to total number of parts mismatch.

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

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
2016-07-22 10:57:45 +02:00
Kefu Chai
1e8388c345 cmake: disable unittest_async_compressor
as async compressor is not used anywhere. and haomai agrees to disable
this test.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2016-07-22 16:04:30 +08:00
Kefu Chai
5864626d27 pybind/ceph_argparse: handle non ascii unicode args
we raise UnicodeDecodeError at seeing non-ascii args if we fail to match
it with any command signatures. instead, we should use a unicode string
for representing the error in that case. please note, the exception is
not printed at all in real-world. =)

Fixes: http://tracker.ceph.com/issues/12287
Signed-off-by: Kefu Chai <kchai@redhat.com>
2016-07-22 15:55:18 +08:00
Kefu Chai
f11acf2b15 debian: use python:Depends for ceph-{common,base,osd}'s deps
* ceph-base: use ${python:Depends} instead of listing the python
  dependencies manually, dh_python2 will scan the requirements
  of ceph-detect-init. and fill the subst var for us.
* ceph-common: add ${python:Depends}, as it packages ceph,
  and ceph-brag client.
* ceph-osd: it packages ceph-disk, so should add ${python:Depends}
  as its dependencies.

dh_python2 will figure them out.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2016-07-22 15:02:12 +08:00
Kefu Chai
7db7f236b3 debian: depends on python-all-dev instead of python-dev
* debian/control: Build-Depends: s/python-dev/python-all-dev/, per
    https://wiki.debian.org/Python/FAQ#Build_dependencies

Signed-off-by: Kefu Chai <kchai@redhat.com>
2016-07-22 15:02:12 +08:00
Kefu Chai
48f4576de1 debian: remove ${shlibs:Depends} from python-* packages
* debian/control:
  as we have listed the linked libraries in Depends section, for example,
  python-rados depends on librados. and we don't need `dpkg-shlibdeps` to
  help figure out shared library substvar dependencies for us. by removing
  them, we can silence the warnings of
```
warning: dpkg-shlibdeps: package could avoid a useless dependency if
debian/python-rados/usr/lib/python2.7/dist-packages/rados.x86_64-linux-gnu.so
was not linked against libpthread.so.0 (it uses none of the library's
symbols)
```
  -lpthread is introduced by `python-config --ldflags` but it turns out we
  are not using any symbols from pthread in the extension directly. and
  pthread is included in glibc. so this does not added any extra
  dependency to python-* pacakges. but it's desirable to have less
  warnings.
* debian/rules: exclude python-* packages from dh_shlibdeps, as we will
  not use it to prepare the shlib deps substvars for these packages any
  more.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2016-07-22 15:02:12 +08:00
Kefu Chai
abe5da0e3a debian: do not run dh-python against non-python packages
some packages do not package python modules or scripts. so override
dh_python2 to exclude them.

this change silences warnings like:
```
warning: dpkg-gencontrol: package ceph-mon: unused substitution
variable ${python:Provides}
```

Signed-off-by: Kefu Chai <kchai@redhat.com>
2016-07-22 14:23:30 +08:00
Kefu Chai
aacba7f1e8 Merge pull request #8150 from wjwithagen/patch-3
.gitignore: exclude coredumps, logfiles and temporary testresults

Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-07-22 13:39:21 +08:00
Daniel Gryniewicz
1756b74935 Add op to get Lifecycle configuration
Signed-off-by: Daniel Gryniewicz <dang@redhat.com>
2016-07-22 12:22:23 +08:00