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>
* 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>
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>
* The return value of auth v2/v4 in RGW is different from that in AWS:
* 1. When 'Expires' is missing in auth v2 query string request, AWS
* returns AccessDenied while RGW returns SignatureDoesNotMatch;
* 2. When 'X-Amz-Expires' is missing in auth v4 query string
* request, AWS returns AuthorizationQueryParametersError while RGW
* returns RequestTimeTooSkewed;
* Changes:
* 1. When 'Expires' is missing in auth v2 query string request,
* change RGW's return value to AccessDenied;
* 2. When 'X-Amz-Expires' is missing in auth v4 query string
* request, change RGW's return value to AccessDenied;
* 3. remove time skew check from parse_v4_query_string;
Fixes: http://tracker.ceph.com/issues/22439
Signed-off-by: Bingyin Zhang <zhangbingyin@cloudin.cn>
C++14 provides the ability to define template variables, which the C++17
library puts to good use. We define those same aliases.
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
"Accept-ranges" is missing from the Response header of swift API
returned by Ceph rgw.
Fixes: http://tracker.ceph.com/issues/21554
Signed-off-by: Tone Zhang <tone.zhang@arm.com>
osd/PrimaryLogPG: cleanup do_sub_op && do_sub_op_reply and define soid in prepare_transaction more appropriate
Reviewed-by: Sage Weil <sage@redhat.com>
These configs were used for initialization but it is more appropriate to
require setting these file system attributes via `ceph fs set`. This is similar
to what was already done with max_mds. There are new variables added for `fs
set` where missing.
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
This commit prevents unnecessary stat that
invokes promote_object()
promote_object() makes object clean state
Signed-off-by: Myoungwon Oh <omwmw@sk.com>
current chunked object and ChunkReadOp are
only for the read case.
write op and promote_object() still be tested without ChunkReadOp
by another ceph_test_rados in the same test suite (with --set_chunk)
Signed-off-by: Myoungwon Oh <omwmw@sk.com>
upmap_max_iterations and other config vals need to be numeric.
Cast them appropriately.
Signed-off-by: Dan van der Ster <daniel.vanderster@cern.ch>
Fixes: http://tracker.ceph.com/issues/22429
The related code has been cleaned in https://github.com/ceph/ceph/pull/17247,
but it seems something was missed.
Signed-off-by: Enming Zhang <enming.zhang@umcloud.com>
Define the soid just before using it to avoid a redundant
definition if an error happens and function prepare_transaction
returns directly.
Signed-off-by: Enming Zhang <enming.zhang@umcloud.com>
We were handling the load case and the pool change case, but not newly
created PG.
Fixes: http://tracker.ceph.com/issues/22419
Signed-off-by: Sage Weil <sage@redhat.com>