Commit Graph

40038 Commits

Author SHA1 Message Date
Jason Dillaman
fb2caa0141 librbd: add log message for completion of AioRequest
The log message will simplify future debugging activities.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-03-02 21:18:39 -05:00
Loic Dachary
1e3f814869 mon: ignore crushtool validation if too long
The crushtool is aborted if it takes more than mon lease seconds. Since
the monitor blocks while running it, this is mandatory otherwise the
monitor will be considered down and new elections triggered.

http://tracker.ceph.com/issues/10947 Fixes: #10947

Signed-off-by: Loic Dachary <ldachary@redhat.com>
2015-03-03 02:13:27 +01:00
Loic Dachary
7a5a635ffb mon: do not hardwire crushtool command line
Make crushtool a configuration value that defaults to crushtool and
allow it to be injected. It helps with testing: the command can be
replaced with another that misbehaves in various ways.

Signed-off-by: Loic Dachary <loic@dachary.org>
2015-03-03 02:13:08 +01:00
Josh Durgin
8a83c824a0 Merge pull request #3850 from ceph/wip-10962
test/cli-integration/rbd: updated to new CLI 

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-03-02 16:53:29 -08:00
Jason Dillaman
eca153e910 test/cli-integration/rbd: updated to new CLI
rbd CLI now includes rbd image flags and no longer defaults
to enabling the new exclusive locking feature.

Fixes: #10962
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-03-02 18:47:54 -05:00
Jason Dillaman
6c2d92948c rbd: permit v2 striping for clones and imports
rbd did not previously support specifying striping params
for cloned and imported images.  Extend the behavior to
these other CLI commands.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-03-02 18:46:56 -05:00
Josh Durgin
0d468ae352 Merge pull request #3831 from dachary/wip-qemu-iotests
Maipo should also use the local qemu clone

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-03-02 15:34:39 -08:00
Jason Dillaman
b5050b6ac5 rbd: fixed formatted output of rbd image features
All feature flags were being displayed when using JSON/XML
formatted output.  Now use the same formatting routing for
plain/JSON/XML output for features and flags.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-03-02 17:39:20 -05:00
Josh Durgin
172f24ccc6 Merge pull request #3848 from ceph/wip-10990
qa/workunits/rbd/copy.sh: remove all image locks

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-03-02 14:28:47 -08:00
Jason Dillaman
6cff494e18 qa/workunits/rbd/copy.sh: remove all image locks
If the exclusive lock feature is enabled, all locks need
to be removed prior removing the image.

Fixes: #10990
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-03-02 16:24:17 -05:00
Danny Al-Gaaf
be7b4c38e3 update some .gitignore files
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2015-03-02 21:10:35 +01:00
Danny Al-Gaaf
a7b344388b submodules: --recursive needed for gtest in gmock
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2015-03-02 21:10:24 +01:00
Danny Al-Gaaf
dbcd55f93f gmock: add git submodule
Add gmock submodule and point to ceph-release-1.7.0 branch.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2015-03-02 21:08:46 +01:00
Danny Al-Gaaf
7b41871171 gmock: remove in-tree code copy
Step needed to replace by git submodules.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2015-03-02 21:05:46 +01:00
Jason Dillaman
0e584635f9 librbd: missing callback log message for CopyupRequest object map update
Add log message to assist in future debugging of the CopyupRequest
state machine.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-03-02 14:19:06 -05:00
Jason Dillaman
ed9e358244 librbd: hide flush log message if no flushes are pending
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-03-02 14:19:06 -05:00
Yehuda Sadeh
fea8ea057a Merge pull request #3818 from rzarzynski/wip-10661
rgw: generate Content-Length in response for POST on Swift containter/object

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2015-03-02 10:55:34 -08:00
Yehuda Sadeh
522a8f99fe Merge pull request #3761 from rzarzynski/wip-10873
rgw: generate the "Date" HTTP header.

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2015-03-02 10:50:42 -08:00
Dmytro Iurchenko
d3a3d5ae58 rgw: Swift API. Complement the response to "show container details"
OpenStack Object Storage API v1 states that X-Container-Object-Count, X-Container-Bytes-Used and user-defined metadata headers should be included in a response.

Fixes: #10666
Backport: hammer
Reported-by: Ahmad Faheem <ahmad.faheem@ril.com>
Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
Signed-off-by: Dmytro Iurchenko <diurchenko@mirantis.com>
2015-03-02 10:32:04 -08:00
Sage Weil
b65f8fa422 Merge remote-tracking branch 'gh/hammer' 2015-03-02 09:11:11 -08:00
Josh Durgin
6864dc9ae9 Merge pull request #3844 from ceph/wip-10965
Wip 10965

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-03-02 08:53:50 -08:00
Josh Durgin
594737e4bf Merge pull request #3843 from ceph/wip-10978
rgw: don't overwrite bucket / object owner when setting acls

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-03-02 08:51:54 -08:00
Josh Durgin
206cb706bf Merge pull request #3812 from ceph/wip-10958
librbd: flush pending AIO before resize

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-03-02 08:30:45 -08:00
Yehuda Sadeh
eb13f2d4b6 rgw: don't overwrite bucket / object owner when setting acls
Fixes: #10978
Backport: hammer, firefly

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2015-03-02 08:09:59 -08:00
Loic Dachary
70fdbc01e1 tests: keep intermediate docker build layers
Because the docker devmapper backend has an intermittent bug

   https://github.com/docker/docker/issues/4036

the build of the image will sometime fail. It will eventually succeed if
the command is repeated enough times. Not removing the intermediate
layers helps speed up the operation: when repeating the command, only
the layer that failed because of the above bug is rebuilt.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
2015-03-02 14:37:55 +01:00
Jason Dillaman
e2283e3066 librbd: flush pending AIO after acquiring lock
There was a potential race condition between a delayed AIO
operation waiting on acquiring a lock and a snap_create
flushing all pending IO.  Since snap_create owned md_lock, the
delayed AIO would not be allowed to complete -- deadlocking the
flush.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-03-02 08:31:45 -05:00
Jason Dillaman
472db64e2e librbd: hold snap_lock between clipping IO and registering AIO
In the case where concurrent IO is occurring when a trim resize
operation is initiated, hold the snap_lock between clipping the
IO operation and registering the pending op.  That allows the
resize state machine to properly flush all operations issued
before the clip region was updated.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-03-02 08:31:43 -05:00
Loic Dachary
122ca1ea44 Merge pull request #3839 from dachary/wip-documentation
doc: ext4 has a journal

Reviewed-by: Simon Guinot <simon.guinot@sequanux.org>
2015-03-02 13:03:59 +01:00
Loic Dachary
7f36312ab6 doc: ext4 has a journal
Signed-off-by: Loic Dachary <ldachary@redhat.com>
2015-03-02 12:09:13 +01:00
Loic Dachary
7e89f51d8f mon: do not pollute directory with cvs files from crushtool
The --output-csv option to crushtool will create files in the current
directory of the monitor. The only reason for using it is because
crushtool requires at least one option for display. Relax this
constraint in crushtool and remove the option from the call made by the
monitor to validate a new crushmap.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
2015-03-02 11:09:28 +01:00
Joao Eduardo Luis
2e749599ac mon: Monitor: fix timecheck rounds period
Fixes: #10546
Backports: dumpling?,firefly,giant

Signed-off-by: Joao Eduardo Luis <joao@redhat.com>
2015-03-01 10:20:43 +00:00
Joao Eduardo Luis
3f73eb4975 test: encoding: add LevelDBStoreStats and ceph_data_stats to types.h
Signed-off-by: Joao Eduardo Luis <joao@redhat.com>
2015-03-01 10:12:42 +00:00
Joao Eduardo Luis
028806a567 mon/mon_types.h: allow testing encode/decode of LevelDBStoreStats
Signed-off-by: Joao Eduardo Luis <joao@redhat.com>
2015-03-01 10:11:24 +00:00
Joao Eduardo Luis
6c7f3a7dbc include/util.h: allow testing encoding/decoding of ceph_data_stats
Signed-off-by: Joao Eduardo Luis <joao@redhat.com>
2015-03-01 10:11:24 +00:00
Joao Eduardo Luis
b8c7baec84 include/util.h: initialize ceph_data_stats to zero
We decode this struct on the monitor.  Although at the moment there's no
reports of any weird behavior by not initializing it, let's avoid it
completely by setting member values to zero -- just in case and because
it's a good policy.

Signed-off-by: Joao Eduardo Luis <joao@redhat.com>
2015-03-01 10:11:24 +00:00
Joao Eduardo Luis
6c2dea9703 mon: mon_types.h: initialize LevelDBStoreStats and avoid craziness
On a mixed-version cluster, say firefly and dumpling, the first round of
data health checks could end up with crazy values being reported for
data usage/availability for dumpling monitors.

This would be caused by dumpling not supporting reporting of store
stats, and by not assuming values as zero on decoding we would end up
decoding trash.

Signed-off-by: Joao Eduardo Luis <joao@redhat.com>
2015-03-01 10:11:24 +00:00
Loic Dachary
3b424bfe22 Merge pull request #3834 from linuxbox2/xio-build
cmake:  build fixes

Reviewed-by: Loic Dachary <ldachary@redhat.com>
2015-03-01 00:27:06 +01:00
Matt Benjamin
9ad02c9303 cmake: build fixes
* librbd
* test/ceph_dencoder

Signed-off-by: Matt Benjamin <matt@cohortfs.com>
2015-02-28 13:58:44 -05:00
Yehuda Sadeh
caa90225ba rgw: update makefile to enable civetweb config
Fixes: #10965
Backport: hammer, firefly

Civetweb compilation now includes conf header to enable ipv6.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2015-02-28 08:54:51 -08:00
Yehuda Sadeh
0f8be6f086 civetweb: update submodule
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2015-02-28 08:51:39 -08:00
Haomai Wang
721b3a0897 Merge pull request #3833 from yuyuyu101/temp
TestAsyncDriver: Fix typo in ceph_test_async_driver
2015-02-28 18:10:36 +08:00
Haomai Wang
4698fbe84e TestAsyncDriver: Fix typo in ceph_test_async_driver
Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
2015-02-28 17:42:52 +08:00
Loic Dachary
c6d4d84c21 Merge pull request #3832 from tchaikov/fix-doc
doc/install/manual-deployment: fix osd install doc

Reviewed-by: Loic Dachary <ldachary@redhat.com>
2015-02-28 10:35:18 +01:00
Kefu Chai
3cea092bf9 doc/install/manual-deployment: fix osd install doc
* should be using /var/lib/ceph/osd/{cluster-name}-{osd-num}/sysvinit
  instead of var/lib/ceph/osd/{cluster-name}-{hostname}/sysvinit, thanks
  to Kyle Hutson <kylehutson@ksu.edu>

Fixes: #10957
Signed-off-by: Kefu Chai <kchai@redhat.com>
2015-02-28 10:59:55 +08:00
Loic Dachary
a23b348979 Maipo should also use the local qemu clone
http://tracker.ceph.com/issues/10975 Fixes: #10975

Signed-off-by: Loic Dachary <loic@dachary.org>
2015-02-28 01:20:05 +01:00
Sage Weil
843ba7d42e doc/release-notes: fix Takeshi's name
Signed-off-by: Sage Weil <sage@redhat.com>
2015-02-27 14:19:06 -08:00
Jenkins
6d0c464897 Merge branch 'hammer' of jenkins.front.sepia.ceph.com:ceph/ceph into hammer 2015-02-27 13:21:03 -08:00
Sage Weil
bc638cf953 doc/release-notes: fix typo
Signed-off-by: Sage Weil <sage@redhat.com>
2015-02-27 13:21:00 -08:00
Sage Weil
6e308dc2cc doc/release-notes: v0.80.9 firefly
Signed-off-by: Sage Weil <sage@redhat.com>
2015-02-27 13:16:23 -08:00
Sage Weil
3e03b2fcb3 doc/release-notes: v0.93 release notes
Signed-off-by: Sage Weil <sage@redhat.com>
2015-02-27 11:09:45 -08:00