Commit Graph

40861 Commits

Author SHA1 Message Date
Josh Durgin
04566f5c54 Merge pull request #3980 from ceph/wip-rbd-update-features
librbd: add support for updating image features 

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-04-06 15:33:53 -07:00
Sage Weil
1594daecc6 Merge remote-tracking branch 'gh/hammer'
Conflicts:
	src/gmock
2015-04-06 13:43:01 -07:00
Yehuda Sadeh
405003b313 Merge pull request #4133 from rzarzynski/wip-10645
rgw: improve metadata handling on object copy operation of Swift API.

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2015-04-06 11:49:50 -07:00
Sage Weil
f028b25f81 Merge pull request #4280 from jdurgin/wip-lttng-build
debian: remove lttng checking from rules

Reviewed-by: Sage Weil <sage@redhat.com>
2015-04-06 11:36:50 -07:00
Josh Durgin
4347a3207d debian: remove lttng checking from rules
This can be done better in a separate script, which puts these in
CEPH_EXTRA_CONFIGURE_ARGS. In particular, this lets us enable
lttng for gitbuilder builds, but not release builds.

Fixes: #11333
Signed-off-by: Josh Durgin <jdurgin@redhat.com>
(cherry picked from commit a294daff0b)
2015-04-06 11:36:35 -07:00
Josh Durgin
a294daff0b debian: remove lttng checking from rules
This can be done better in a separate script, which puts these in
CEPH_EXTRA_CONFIGURE_ARGS. In particular, this lets us enable
lttng for gitbuilder builds, but not release builds.

Fixes: #11333
Signed-off-by: Josh Durgin <jdurgin@redhat.com>
2015-04-06 11:29:39 -07:00
Yehuda Sadeh
efb1a2dd1e Update PendingReleaseNotes for firefly change, rgw socket path related
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2015-04-06 10:38:57 -07:00
Jason Dillaman
37b1996bf3 librbd: remove object maps when disabling
If the object map feature is disabled, remove any object maps
prior to disabling the feature.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-04-06 13:14:35 -04:00
Jason Dillaman
5bc3a454ef librbd: flag the snapshot object map as invalid when error occurs
Instead of flagging the HEAD image object map as invalid when an
error occurs with a snapshot object map, properly flag the snapshot
as invalid.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-04-06 13:14:35 -04:00
Jason Dillaman
3a7b28d9a2 rbd: add feature enable/disable support
Mutable image features can now be enabled/disabled via
the rbd CLI.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-04-06 13:14:35 -04:00
Jason Dillaman
d1348e5cfe tests: add update_features test to test_librbd
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-04-06 13:14:34 -04:00
Jason Dillaman
28557c3e17 tests: add update_features test for pybind
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-04-06 13:14:34 -04:00
Jason Dillaman
82affca727 pybind: add update_features to rbd.py
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-04-06 13:14:34 -04:00
Jason Dillaman
7cff359188 librbd: add update_features to librbd API
Allow mutable features to be enabled / disabled.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-04-06 13:14:34 -04:00
Jason Dillaman
34c347becb tests: add test case for cls_rbd set_features
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-04-06 13:14:34 -04:00
Jason Dillaman
71b4c12478 cls_rbd_client: add set_features helper method
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-04-06 13:14:34 -04:00
Jason Dillaman
71dcee745b cls_rbd: add set_features class method
Allow certain mutable feature flags to be updated within
an image.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-04-06 13:14:34 -04:00
Jason Dillaman
2e26309329 librbd: remove usage of snapshot features
The features for the image HEAD now apply to all
snapshots within the image.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-04-06 13:14:34 -04:00
Jason Dillaman
59b6801976 tests: update cls_rbd_client tests for get_features changes
Images no longer track per-snapshot features. snapshot_list
no longer needs to retrieve per-snapshot features.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-04-06 13:14:34 -04:00
Jason Dillaman
58d59d6e52 cls_rbd_client: snapshot_list no longer retrieves features
Features should now be consistent across snapshots, so
no reason to retrieve them.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-04-06 13:14:34 -04:00
Jason Dillaman
281f87f9ee cls_rbd: get_features on snapshots returns HEAD image features
In preparation for dynamic feature bits, it probably doesn't
make sense to have snapshots have different features enabled.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-04-06 13:14:34 -04:00
Sage Weil
557715049a Merge pull request #4246 from ceph/wip-11113-hammer
librbd: snap_remove should ignore -ENOENT errors
2015-04-06 08:55:51 -07:00
Sage Weil
8f4551c15e doc/release-notes: 0.67.12 are draft notes
Signed-off-by: Sage Weil <sage@redhat.com>
2015-04-06 08:36:24 -07:00
Sage Weil
97dfde8dc7 Merge pull request #4250 from athanatos/wip-11265
ECTransaction: write out the hinfo key on touch as well

Reviewed-by: Sage Weil <sage@redhat.com>
2015-04-06 08:07:28 -07:00
Sage Weil
ad8481b708 Merge pull request #4251 from athanatos/wip-11284
ReplicatedPG::promote_object: do not create obc if not promoting

Reviewed-by: Sage Weil <sage@redhat.com>
2015-04-06 08:07:15 -07:00
Ken Dreyer
471271b353 Merge pull request #4278 from nilamdyuti/wip-doc-ceph-object-gateway
doc: Corrects some content for Debian-based distros in simple gateway
configuration file.

Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
2015-04-06 08:23:11 -06:00
Mykola Golub
c0c55c99ba doc: add daemon and daemonperf commands description to man
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
2015-04-06 16:55:08 +03:00
Mykola Golub
983958474b ceph daemonperf: add watch interval and count parameters
Fixes: #11319
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
2015-04-06 16:55:08 +03:00
Mykola Golub
8881441db1 ceph daemonperf: make error message less confusing
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
2015-04-06 16:22:27 +03:00
Nilamdyuti Goswami
54c808577b doc: Corrects some content for Debian-based distros in simple gateway
configuration file.

Signed-off-by: Nilamdyuti Goswami <ngoswami@redhat.com>
2015-04-06 18:51:17 +05:30
Loic Dachary
c78940714c Merge pull request #4238 from ceph/wip-9580
ceph-disk: make journal setup conditional on osd backend

Reviewed-by: Travis Rhoden <trhoden@redhat.com>
Reviewed-by: Loic Dachary <ldachary@redhat.com>
2015-04-06 12:15:38 +02:00
Sage Weil
7b19d8f33c Merge pull request #4244 from dachary/wip-9580
tests for ceph-disk: make journal setup conditional on osd backend
2015-04-05 17:25:05 -07:00
Loic Dachary
106d006787 tests: add ceph-disk.sh activate for memstore
Add a test for the activation of the memstore objectstore and verify
that it works without specifying a journal.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
2015-04-06 01:58:19 +02:00
Loic Dachary
4601e10800 tests: move rados put/get tests in a function
Add the test_pool_read_write function to share the rados put / get test
that demonstrate the osd that has been created can actually be used. Use
it from the both the regular device and dmcrypt tests.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
2015-04-06 01:58:19 +02:00
Loic Dachary
8db870edf1 tests: ceph-disk.sh dmcrypt tests use test_setup_dev_and_run
Instead of duplicating the device construction / destruction logic for
dmcrypt tests, use test_setup_dev_and_run to do it. It is now able to
recover from devmapper leftover which may occur when a cryptsetup test
fails.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
2015-04-06 01:58:19 +02:00
Loic Dachary
8c6d209650 tests: merge ceph-disk.sh activate dmcrypt functions
The activate_dmcrypt_plain_dev_body and activate_dmcrypt_dev_body
functions are almost identical, merge them and differentiate with an
argument.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
2015-04-06 01:58:18 +02:00
Loic Dachary
282ccce16a tests: add test_setup_dev_and_run to ceph-disk.sh
Move test_activate_dev to test_setup_dev_and_run and make it
run the function given in argument. test_activate_dev calls
test_setup_dev_and_run and no longer needs to implement device
allocation or destruction.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
2015-04-06 01:58:18 +02:00
Loic Dachary
c583b57670 tests: improve ceph-disk.sh setup/teardown
Address all possible failure cases, when ceph-disk.sh completes or when
it starts with leftover from a previous interrupted run. It is assumed
that ceph-disk.sh will crash at any point.

* umount all mount points that belong to ceph-disk.sh (check the
  absolute path of the directory)
* dmsetup remove all device mapper nodes found to hold a loop device
  that ceph-disks.sh no longer uses
* losetup --detach all loop devices that ceph-disks.sh no longer uses

Signed-off-by: Loic Dachary <ldachary@redhat.com>
2015-04-06 01:58:18 +02:00
Loic Dachary
eaf89661d9 tests: do not use -e in ceph-disk.sh
The tests explicitly return on error when relevant. Add two error cases:

* detect when the allocation of a loop device fails.
* in the outer loop, return immediately if one of the test fails

Signed-off-by: Loic Dachary <ldachary@redhat.com>
2015-04-06 01:58:18 +02:00
Loic Dachary
28269d7cb8 tests: reduce ceph-disk.sh verbosity
Signed-off-by: Loic Dachary <ldachary@redhat.com>
2015-04-06 01:58:18 +02:00
Loic Dachary
123230ce55 tests: docker-test must bind mount .ccache
run-make-check.sh relies on ccache. If ~/.ccache is not bind mounted and
$HOME is not bind mounted either, ./configure will fail with an obscure
error because it cannot create the directory. Create the directory if it
does not exist already and avoid this problem. The worst that can happen
is that an empty .ccache directory is created and never used which
should not be a major inconvenience.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
2015-04-05 21:27:28 +02:00
Sage Weil
3fa859af07 osd: kill ager
This is more or less dead.  Definitely unused.

Signed-off-by: Sage Weil <sage@redhat.com>
2015-04-05 10:56:04 -07:00
Sage Weil
b1ab103412 osd: remove osd_auto_weight function
This is essentially dead code.

Signed-off-by: Sage Weil <sage@redhat.com>
2015-04-05 10:56:02 -07:00
Sage Weil
23549bfbbd Merge pull request #4256 from dachary/wip-dumpling-release-notes
doc/release-notes: final dumpling v0.67.12 release notes
2015-04-05 10:35:26 -07:00
Mykola Golub
46103b2c3b ceph_argparse: don't die when called by injectargs
Fixes: #11261
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
2015-04-04 10:55:04 +03:00
Mykola Golub
c579ebfebb common: ceph_argparse_witharg: pass oss by reference
It is always supposed to be a valid pointer here.

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
2015-04-04 10:07:33 +03:00
Guang Yang
366e8a85c0 rgw : Issue AIO for next chunk first before flush the (cached) data.
When handling GET request for large object (with multiple chunks), currently it will first flush the
cached data, and then issue AIO request for next chunk, this has the potential issue to make the retriving
from OSD and sending to client serialized. This patch switch the two operations.

Fixes: 11322
Signed-off-by: Guang Yang <yguang@yahoo-inc.com>
2015-04-03 12:27:04 +00:00
Ved-vampir
fa359ae72c client: remove useless perf counters
Sign-off-by: Alyona Kiseleva <akiselyova@mirantis.com>
2015-04-03 13:33:59 +03:00
Ved-vampir
66aa905f7b client: add perf counters description
Sign-off-by: Alyona Kiseleva <akiselyova@mirantis.com>
2015-04-03 13:31:59 +03:00
Ved-vampir
2d6e0695ce os: add perf counters description
Sign-off-by Alyona Kiseleva <akiselyova@mirantis.com>
2015-04-03 13:22:59 +03:00