Default of osd_request_timeout in krbd is 0 means no timeout,
but we sometimes need to set this value by rbd command. then
pass osd_request_timeout to kernel rbd in rbd mapping.
Fixes: http://tracker.ceph.com/issues/23073
Signed-off-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
rgw: s3website error handler uses original object name
Reviewed-by: Robin H. Johnson <robin.johnson@dreamhost.com>
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
Previously we got these through sys/types.h, but that's now deprecated:
warning: In the GNU C Library, "major" is defined
by <sys/sysmacros.h>. For historical compatibility, it is
currently defined by <sys/types.h> as well, but we plan to
remove this soon. To use "major", include <sys/sysmacros.h>
directly. If you did not intend to use a system-defined macro
"major", you should undefine it after including <sys/types.h>.
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
* restructure dashboard tests so they follow the model of other tests
based on ceph-helpers.sh. i.e. extract the TEST_* out of run()
function.
* expose mon-host using CEPH_ARGS env variable.
* mgr-dashboard_v2-smoke.sh: do not export CEPH_ARGS in a subshell, so
the run_mgr() and ceph cli can also have access to the updated
CEPH_ARGS, and hence they will be able to locate the mon. and because
auth-supported=none is populated using CEPH_ARGS, this test won't fail
because of missing keyring.
Signed-off-by: Kefu Chai <kchai@redhat.com>
and allows use to specify the path in which npm is installed. in my
case, if $HOME/.npmrc points "prefix" to ${HOME}/.npm-packages, i will
be able to run
NPM_ROOT=${HOME}/.npm-packages cmake ..
Signed-off-by: Kefu Chai <kchai@redhat.com>
* refs/pull/20472/head:
mds: add DUMP_DIRFRAGS to CInode and DUMP_ITEMS to CDir
mds: Enhance dump_tree performance by traversing the tree directly
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
* refs/pull/20502/head:
test: cap waits in delegation tests at 60s
tests: add a test for doing a getattr while caps are recalled but before returned
client: allow getattr, lookup, fstatx, and readdir to use implemented caps
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Zheng Yan <zyan@redhat.com>
* refs/pull/20575/head:
mds: set journaler iohint correctly when mds daemon going to active
Reviewed-by: dongdong tao <tdd21151186@gmail.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
* refs/pull/20615/head:
mds: modify help info of dump_historic_ops and dump_historic_ops_by_duration
mds:fix typo in MDSRank
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
It's possible that we successfully set active_con *and* time out the
cond WaitUntil. Only set the error if we don't have a connection; if we
set it *and* time out then let's call it success.
Signed-off-by: Sage Weil <sage@redhat.com>
The keyfile arg might be - (stdin), which we can only read once. Ensure
that we consume it once by intercepting the CLI value early and inserting
the value into the 'key' option.
This robs future code of the knowledge that the key came from --keyfile
and not --key, but avoids the issue of multiple users (notably, KeyRing.cc
and the OSD mkfs code).
Remove the - special case from OSD at the same time, since it can no
longer be reached (unless something other than the CLI specified '-', but
neither ceph.conf nor the mon config make sense here).
Signed-off-by: Sage Weil <sage@redhat.com>
Common_init_finish does start_service_thread and does
set_safe_to_start_threads() on the cct, which switches us to 'runtime'
mode where we can't accept many config options. Do that *after* we fetch
our config from the mon so that we can accept+set runtime options (and
not complain to stderr about it).
Signed-off-by: Sage Weil <sage@redhat.com>
If we are looking at a new value from the mon and comparing it to what we
already have active, compare the non-meta-substituted form. This way a
value from the mon that can't update at runtime but we have already set to
the same value will not be falsely flagged as ignored.
Signed-off-by: Sage Weil <sage@redhat.com>
The normal timeouts automatically apply during the authenticate() stage,
but not to the explicit wait for a config. If we don't get that quickly
we shoudl retry another monitor because it is possible we will connect to
an out-of-quorum (or otherwise unresponsive) mon.
Signed-off-by: Sage Weil <sage@redhat.com>
Some of these cases make sense to fetch mon configs, but we are deprecating
ceph-disk anyway, and the tests currently make use of ceph-disk in places
that do not have a mon_host defined via a ceph.conf or other environment.
This avoids breaking those test cases without any real impact on users
(which will either use ceph-volume or presumably remain in a legacy config
environment).
Signed-off-by: Sage Weil <sage@redhat.com>
In order to get mon configs we need to authenticate as somebody.
Infer it from the data directory.
Note that this won't work for --op mkfs. Those users need to pass
--no-mon-config or -n.
Signed-off-by: Sage Weil <sage@redhat.com>