Commit Graph

112865 Commits

Author SHA1 Message Date
Kefu Chai
3573f33744 qa/tasks/workunit: drop py2 support
Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-07-05 10:58:28 +08:00
Kefu Chai
5d56234b45 qa/tasks/s3tests: drop py2 support
Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-07-05 10:58:28 +08:00
Kefu Chai
29ac8118a3 qa/tasks/rbd: drop py2 support
Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-07-05 10:58:28 +08:00
Kefu Chai
4d9cca04e5 qa/tasks/radosgw_admin: drop py2 support
Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-07-05 10:58:28 +08:00
Kefu Chai
2ade261bc6 qa/tasks/osd_failsafe_enospc: drop py2 support
Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-07-05 10:58:28 +08:00
Kefu Chai
a7f18e46b9 qa/tasks/{ceph,ceph_manager}: drop py2 support
Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-07-05 10:58:28 +08:00
Kefu Chai
51efa33ac8 test/pybind: drop py2 support
Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-07-05 10:58:28 +08:00
Kefu Chai
cf7632cfd5 pybind/mgr/dashboard: drop py2 support
Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-07-05 10:58:28 +08:00
Kefu Chai
b81778c313 pybind: drop py2 support
the python bindings are compiled using python3-cython, and packaged as
python3-{rados,rbd,cephfs,rgw}, so there is no need and is wrong to
claim that they are python2 compatible.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-07-05 10:58:28 +08:00
Kefu Chai
0a8188e461 qa/workunits: drop py2 support
Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-07-05 10:58:28 +08:00
Kefu Chai
91b76afa20 qa/tasks/vstart_runner: drop py2 support
Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-07-05 10:58:28 +08:00
Kefu Chai
ee90f40905 qa/tasks/cephfs: drop py2 support
Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-07-05 10:58:28 +08:00
Kefu Chai
0ac787be2a qa/standalone: drop py2 support
Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-07-05 10:58:28 +08:00
Kefu Chai
3bb47bc41c crimson/os/seastore: s/assert/ceph_abort_msg/ when hitting unreachable code
clang++ complains with
```
crimson/os/seastore/root_block.h💯3: warning: control reaches end of non-void function [-Wreturn-type]
  }
  ^
```

Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-07-04 00:17:38 +08:00
Kefu Chai
6b43a39518 crimson: silence -Wunused-lambda-capture warnings
they are pointed out by clang++.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-07-04 00:17:38 +08:00
Kefu Chai
7b8c3e5792 crimson/common: make FixedKVNodeLayout::set_val() public
otherwise clang++ fails with
```
mson/os/seastore/lba_manager/btree/lba_btree_node_impl.cc:183:10: error: 'set_val' is a private member of 'crimson::common::FixedKVNodeLayout<255, unsigned long, ceph_le<unsigned long long>,
crimson::os::seastore::paddr_t, crimson::os::seastore::paddr_le_t, true>::iter_t<false>'
      i->set_val(updated);
         ^
/home/jenkins-build/build/workspace/ceph-perf-crimson/ceph-master/src/crimson/common/fixed_kv_node_layout.h:148:10: note: declared private here
    void set_val(V val) const {
         ^
```

Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-07-04 00:17:38 +08:00
Mykola Golub
f202994fcf
Merge pull request #35855 from dillaman/wip-45986
librbd: new 'write_zeroes' API methods to suppliment the `discard` APIs

Reviewed-by: Mykola Golub <mgolub@suse.com>
2020-07-03 17:57:15 +03:00
Ulrich Weigand
e26612d32b unittest_cdc: fix test on big-endian hosts
The specific_result test hardcodes a particular output.  However,
the input buffer used by the test is currently initialized to a
different byte string depending host the host byte order, which
makes the expected result not match on big-endian hosts.

Fixed by always initializing the input buffer to the same string.

Signed-off-by: Ulrich Weigand <ulrich.weigand@de.ibm.com>
2020-07-03 15:57:59 +02:00
Ulrich Weigand
31da17378b msg/msg_types: entity_addrvec_t: fix decode on big-endian hosts
When decoding an entity_addrvec_t with marker 1, we just have
a single (non-legacy) entity_addr_t.  This should be decoded
exactly the same as done by entity_addr_t::decode, but it
currently is not.  Specifically, the sa_family member of
the sockaddr is not converted from the on-wire little-endian
format to host byte order (as done by entity_addr_t::decode).

Fixed by using the same code as in entity_addr_t::decode.

Signed-off-by: Ulrich Weigand <ulrich.weigand@de.ibm.com>
2020-07-03 15:47:00 +02:00
Lenz Grimmer
319d123cfe
Merge pull request #35859 from tspmelo/wip-remove-ngx-bootstrap
mgr/dashboard: Remove ngx-bootstrap

Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
2020-07-03 15:40:35 +02:00
Abutalib Aghayev
da70e5e6c1 doc/dev: Update zoned-storage.rst to indicate that OSDs can now be written to after restart on zoned devices.
Signed-off-by: Abutalib Aghayev <agayev@cs.cmu.edu>
2020-07-03 09:34:31 -04:00
Abutalib Aghayev
e6046074bb os/bluestore: Introduce zoned freelist manager.
Introduced ZonedFreelistManager, which tracks the write pointer and the number
of dead bytes per zone.

Signed-off-by: Abutalib Aghayev <agayev@cs.cmu.edu>
2020-07-03 09:34:18 -04:00
Lenz Grimmer
00251f4355
Merge pull request #35875 from Devp00l/wip-46303
mgr/dashboard: Fixes regression in device selection modal

Reviewed-by: Kiefer Chang <kiefer.chang@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
2020-07-03 13:53:46 +02:00
Kefu Chai
dda2815f46
Merge pull request #35912 from tchaikov/wip-crimson-osd-flush-pg-stats
crimson/osd: implement flush_pg_stats command

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
2020-07-03 18:51:19 +08:00
Sebastian Wagner
7b05e649a8
Merge pull request #35374 from jschmid1/activate_osdspec_affinity
mgr/cephadm: re-enable osdspec affinity passing

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
2020-07-03 12:01:53 +02:00
Kefu Chai
0b8cc7ea8b crimson/osd: avoid -Wunused-but-set-variable warning
in release build, `found` is not used at all. but GCC complains with a
`-Wunused-but-set-variable` warning.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-07-03 17:15:13 +08:00
Lenz Grimmer
37ba4b8123
Merge pull request #35704 from Devp00l/wip-46135
mgr/dashboard: Fixes typeahead regression in the silence matcher 

Reviewed-by: Tiago Melo <tmelo@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
2020-07-03 10:50:18 +02:00
Kefu Chai
0816f16069 crimson/osd: update the osd stats with hb peers
just to align with classic OSD

Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-07-03 16:09:38 +08:00
Kefu Chai
5bbbbc66ce crimson/osd: implement flush_pg_stats command
this command is used by teuthology based tests for updating the mgr with
the lastes pg stats on OSD.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-07-03 16:09:38 +08:00
Kefu Chai
d5e1d104ff crimson/{mgr,osd}: add WithStats::update_stats()
because we need to implement a tell command which forces osd to
send the latest pg stats to mgr, and the command returns the user with
the sequence id of the report, and `mgr::Client::report()` does not
return a future, so we have to update the seq id before sending
the report. the solution is to update the seq id in a separated
method, so in this change:

* add `const` to `WithStats::get_stats()
* add a dedicated method of `WithStats::update_stats()` to update
  the stats to be collected by mgr::Client.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-07-03 16:09:38 +08:00
Kefu Chai
99067b8dc6
Merge pull request #35887 from joscollin/wip-update-kyr
.githubmap: add Kyr

Reviewed-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
2020-07-03 09:48:55 +08:00
Kefu Chai
9e5da00b74
Merge pull request #35845 from tchaikov/wip-rpm-crimson
rpm: package crimson-osd in ceph-osd

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
Reviewed-by: Deepika Upadhyay <dupadhya@redhat.com>
2020-07-03 09:46:31 +08:00
Neha Ojha
c36c96d2fa
Merge pull request #35867 from jwilk-forks/spelling
doc/dev/osd_internals: fix typos

Reviewed-by: Neha Ojha <nojha@redhat.com>
2020-07-02 17:48:50 -07:00
Matthew Oliver
c64d273084 cephadm: Make list_networks ipv6 enabled
Currently the list_network command and methods in cephadm only run and
parse ipv4 output from `ip route`.

This patch extends the list_network command and internal methods to be
ipv6 enabled. It now also checks `ip -6 route` and `ip -6 addr` to
gather gather all networks from both protocol families.

Signed-off-by: Matthew Oliver <moliver@suse.com>
2020-07-03 10:13:59 +10:00
Kefu Chai
0e6004cc6e
Merge pull request #35894 from tchaikov/wip-crimson-os
crimson/os: pin the last cpu core for the alien worker threads 

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
Reviewed-by: Deepika Upadhyay <dupadhya@redhat.com>
2020-07-02 22:48:00 +08:00
Lenz Grimmer
6e90a165c2
Merge pull request #35745 from votdev/issue_46146_delete_host
mgr/dashboard: Host delete action should be disabled if not managed by Orchestrator

Reviewed-by: Kiefer Chang <kiefer.chang@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
2020-07-02 15:52:18 +02:00
Lenz Grimmer
a1d5a6e32c
Merge pull request #35642 from tspmelo/wip-fix-flicker
mgr/dashboard: Re-enable OSD's table autoReload

Reviewed-by: Kiefer Chang <kiefer.chang@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
2020-07-02 15:50:06 +02:00
Lenz Grimmer
74f42ec2ce
Merge pull request #34889 from votdev/issue_43120_tabs
Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
2020-07-02 15:47:10 +02:00
Kefu Chai
ddfba53b1c crimson/os/alienstore: assert on failure
before we have a failure recovery, better off failing fast.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-07-02 19:38:16 +08:00
Kefu Chai
2ba13668a6 crimson/os: pin the last cpu core for the alien worker threads
before this change, we assume that we have at least current_shared + 10
cores. but that's not always true. so in this change, the last core
is used for performing the alien tasks scheduled by reactor.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-07-02 19:38:16 +08:00
Ishan Rai
f49fe38ff0 mgr/dashboard: use relative font sizes
Fixes: https://tracker.ceph.com/issues/38890

Signed-off-by: Ishan Rai <ishanrai05@gmail.com>
2020-07-02 09:17:43 +00:00
Volker Theile
5c5d0bac4f mgr/dashboard: stay on active tab (accessible via URL)
This PR refactors the /monitoring page by introducing a new component which is responsible for rendering the tabs. All tabs have a dedicated route/URL now, no fragments are used anymore, thus they will act like the iSCSI and RBD pages.

Fixes: https://tracker.ceph.com/issues/45375

Signed-off-by: Volker Theile <vtheile@suse.com>
2020-07-02 11:11:57 +02:00
Ilya Dryomov
0195fd53f1
Merge pull request #35816 from idryomov/wip-msgr21-fix-reuse
msg/async/ProtocolV2: take care of features when replacing the socket

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
2020-07-02 10:54:16 +02:00
Lenz Grimmer
3343e87350
Merge pull request #35854 from tspmelo/wip-fix-nfs-loading
mgr/dashboard: Fix NFS Edit page loading problem

Reviewed-by: Kiefer Chang <kiefer.chang@suse.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
2020-07-02 10:29:13 +02:00
Sebastian Wagner
faf701d787
Merge pull request #35823 from bk201/wip-46245
mgr/cephadm: reconfig ssh after setting or clearing ssh_config

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
2020-07-02 10:22:32 +02:00
Lenz Grimmer
fe9b920d6d
Merge pull request #35765 from votdev/issue_46145_reset_action_button
mgr/dashboard: Action button is not reset after switching tabs

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
2020-07-02 10:20:46 +02:00
Lenz Grimmer
74ba53be98
Merge pull request #35803 from s0nea/wip-dashboard-remove-formatted-attr
mgr/dashboard: remove cdCopy2ClipboardButton `formatted` attribute

Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
2020-07-02 09:59:24 +02:00
Lenz Grimmer
ea7fd5fc35
Merge pull request #35828 from votdev/issue_46249_rm_tab
mgr/dashboard: Remove useless tab in monitoring/alerts datatable details

Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
2020-07-02 09:57:37 +02:00
Laura Paduano
44908df6e5
Merge pull request #35564 from rhcs-dashboard/wip-45957-fixUiApiEndpoints
mgr/dashboard: fix ui api endpoints
2020-07-02 09:08:07 +02:00
Jos Collin
dd7e753c9d
.githubmap: add Kyr
Signed-off-by: Jos Collin <jcollin@redhat.com>
2020-07-02 12:05:54 +05:30