]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
6 years agocrimson/net: apply strict checks when handle addresses 29057/head
Yingxin Cheng [Tue, 16 Jul 2019 08:53:40 +0000 (16:53 +0800)]
crimson/net: apply strict checks when handle addresses

* Apply strict checks at each step of addresses exchange, make sure we
  fail early when notice inconsistent addresses sent from peer;
* Throw error::bad_peer_address for address validation from peer;
* Stop learning my address before sending it out for peer as identity;
* Fix potential racing when try to learn my address by submit to core 0;

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
6 years agocrimson/net: fix crimson-osd msgr policies
Yingxin Cheng [Tue, 16 Jul 2019 08:48:17 +0000 (16:48 +0800)]
crimson/net: fix crimson-osd msgr policies

Also add checks to make sure we have a valid target address with
lossless policy.

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
6 years agocrimson/net: use target_addr to store the address to reconnect
Yingxin Cheng [Tue, 16 Jul 2019 08:29:30 +0000 (16:29 +0800)]
crimson/net: use target_addr to store the address to reconnect

With lossless policy, we will use target_addr to reconnect to peer,
which would be more useful when we switch to entity_addrvec_t.

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
6 years agotest/crimson: remove duplicated logging when connected
Yingxin Cheng [Tue, 16 Jul 2019 08:20:06 +0000 (16:20 +0800)]
test/crimson: remove duplicated logging when connected

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
6 years agocrimson/net: set connection policy for v1 protocol
Yingxin Cheng [Tue, 16 Jul 2019 08:18:14 +0000 (16:18 +0800)]
crimson/net: set connection policy for v1 protocol

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
6 years agocrimson/net: use set_ephemeral_port() for non-bound port
Yingxin Cheng [Tue, 16 Jul 2019 08:11:57 +0000 (16:11 +0800)]
crimson/net: use set_ephemeral_port() for non-bound port

Ephemeral port is different from the bound port when connecting, and
different from the peer_addr port when accepting.

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
6 years agocrimson/net: printable accept address
Yingxin Cheng [Tue, 16 Jul 2019 08:02:16 +0000 (16:02 +0800)]
crimson/net: printable accept address

entity_addr_t::TYPE_NONE is not printable, change to TYPE_ANY.

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
6 years agocrimson/net: unify loggings for message exchange
Yingxin Cheng [Thu, 11 Jul 2019 13:10:00 +0000 (21:10 +0800)]
crimson/net: unify loggings for message exchange

* remove duplicated information in message logs,
  because connection prefix already contains information about:
  "[my_name(my_logic_name) my_addr >> peer_name peer_addr]"
* unify message logs for both v1 and v2;
* continue to use familiar identifiers to highlight message logs:
  - received messages identified by "<== #seq === msg (type)";
  - sent messages identified by "--> #seq === msg (type)";

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
6 years agocrimson/net: clean up loggings in v2 protocol
Yingxin Cheng [Thu, 11 Jul 2019 12:38:25 +0000 (20:38 +0800)]
crimson/net: clean up loggings in v2 protocol

Defind log levels in V2 Protocol:
* error level, something error that cause connection to terminate:
  - fatal errors;
  - bugs;
* warn level: something unusual that identifies connection fault or replacement:
  - unstable network;
  - incompatible peer;
  - auth failure;
  - connection race;
  - connection reset;
* info level, something very important to show connection lifecycle,
  which doesn't happen very frequently;
* debug level, important logs for debugging, including:
  - all the messages sent/received (-->/<==);
  - all the frames exchanged (WRITE/GOT);
  - important fields updated (UPDATE);
  - connection state transitions (TRIGGER);
* trace level, trivial logs showing:
  - the exact bytes being sent/received (SEND/RECV(bytes));
  - detailed information of sub-frames;
  - integrity checks;
  - etc.

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
6 years agocrimson/net: cleanup, rename _peer_addr to _my_addr_from_peer
Yingxin Cheng [Tue, 16 Jul 2019 11:39:30 +0000 (19:39 +0800)]
crimson/net: cleanup, rename _peer_addr to _my_addr_from_peer

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
6 years agocrimson/net: abort with unhandled exceptions from dispatcher
Yingxin Cheng [Tue, 16 Jul 2019 11:38:51 +0000 (19:38 +0800)]
crimson/net: abort with unhandled exceptions from dispatcher

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
6 years agocrimson/net: cleanup, fix spelling error
Yingxin Cheng [Tue, 16 Jul 2019 11:36:54 +0000 (19:36 +0800)]
crimson/net: cleanup, fix spelling error

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
6 years agocrimson/net: cleanup, return void from unexpected_tag()
Yingxin Cheng [Tue, 16 Jul 2019 11:34:32 +0000 (19:34 +0800)]
crimson/net: cleanup, return void from unexpected_tag()

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
6 years agocrimson/net: unify the usage of entity_type_t and entity_name_t
Yingxin Cheng [Thu, 11 Jul 2019 09:47:20 +0000 (17:47 +0800)]
crimson/net: unify the usage of entity_type_t and entity_name_t

* use standard entity_type_t(uint8_t) in favor of peer_type_t(int);
* use standard ceph_entity_type_name() to print where possible;
* use peer_name to encapsulate peer_type and peer_id in Connection.h;
* clean related interfaces in Messenger and Connection;
* print peer_name in Connection logging prefix;

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
6 years agoMerge pull request #29033 from neha-ojha/wip-add-yt
Neha Ojha [Mon, 15 Jul 2019 18:31:45 +0000 (11:31 -0700)]
Merge pull request #29033 from neha-ojha/wip-add-yt

doc/dev/developer_guide/index.rst: add youtube references

Reviewed-by: Noah Watkins <nwatkins@redhat.com>
6 years agoMerge pull request #28649 from votdev/issue_40427
Ricardo Marques [Mon, 15 Jul 2019 17:51:16 +0000 (18:51 +0100)]
Merge pull request #28649 from votdev/issue_40427

mgr/dashboard: Pool form uses different loading spinner

Reviewed-by: Lenz Grimmer <lgrimmer@suse.com>
Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
6 years agomgr/dashboard: Pool form uses different loading spinner 28649/head
Volker Theile [Fri, 5 Jul 2019 08:40:01 +0000 (10:40 +0200)]
mgr/dashboard: Pool form uses different loading spinner

Use the 'cd-loading-panel' element to display the loading progress.

Fixes: https://tracker.ceph.com/issues/40427
Signed-off-by: Volker Theile <vtheile@suse.com>
6 years agoMerge pull request #29043 from votdev/issue_40778
Ricardo Marques [Mon, 15 Jul 2019 14:30:01 +0000 (15:30 +0100)]
Merge pull request #29043 from votdev/issue_40778

mgr/dashboard: Form fields do not show error messages/hints.

Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
6 years agoMerge PR #28951 into master
Patrick Donnelly [Mon, 15 Jul 2019 14:00:46 +0000 (07:00 -0700)]
Merge PR #28951 into master

* refs/pull/28951/head:
mds: apply configuration changes through MDSRank
common/TrackedOp: make settings atomic

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #28964 from cbodley/wip-qa-workunit-s3tests
Casey Bodley [Mon, 15 Jul 2019 13:14:41 +0000 (09:14 -0400)]
Merge pull request #28964 from cbodley/wip-qa-workunit-s3tests

qa/rgw: update run-s3tests.sh

Reviewed-by: Abhishek Lekshmanan <abhishek@suse.com>
6 years agomgr/dashboard: Form fields do not show error messages/hints. 29043/head
Volker Theile [Mon, 15 Jul 2019 10:09:57 +0000 (12:09 +0200)]
mgr/dashboard: Form fields do not show error messages/hints.

Fixes: https://tracker.ceph.com/issues/40778
Signed-off-by: Volker Theile <vtheile@suse.com>
6 years agoMerge pull request #28682 from cyx1231st/wip-seastar-msgr-socket2
Kefu Chai [Mon, 15 Jul 2019 07:46:13 +0000 (15:46 +0800)]
Merge pull request #28682 from cyx1231st/wip-seastar-msgr-socket2

crimson/net: implement preemptive shutdown/close

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge PR #26104 into master
Patrick Donnelly [Sat, 13 Jul 2019 00:18:02 +0000 (17:18 -0700)]
Merge PR #26104 into master

* refs/pull/26104/head:
client/Client: change dir's size delta to current write file size delta

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge PR #28683 into master
Patrick Donnelly [Sat, 13 Jul 2019 00:16:53 +0000 (17:16 -0700)]
Merge PR #28683 into master

* refs/pull/28683/head:
mon/MDSMonitor: use stringstream instead of dout for mds repaired

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge PR #28710 into master
Patrick Donnelly [Sat, 13 Jul 2019 00:16:02 +0000 (17:16 -0700)]
Merge PR #28710 into master

* refs/pull/28710/head:
cephfs-shell: Remove undefined variable files in do_rm()

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge PR #28831 into master
Patrick Donnelly [Sat, 13 Jul 2019 00:15:01 +0000 (17:15 -0700)]
Merge PR #28831 into master

* refs/pull/28831/head:
client: support the fallocate() when fuse version >= 2.9

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Zheng Yan <zyan@redhat.com>
6 years agoMerge PR #28906 into master
Patrick Donnelly [Sat, 13 Jul 2019 00:14:20 +0000 (17:14 -0700)]
Merge PR #28906 into master

* refs/pull/28906/head:
cephfs-shell: Fix TypeError in poutput()

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agomds: apply configuration changes through MDSRank 28951/head
Patrick Donnelly [Mon, 8 Jul 2019 17:30:26 +0000 (10:30 -0700)]
mds: apply configuration changes through MDSRank

This avoids the need to acquire the mds_lock prior to responding to config
changes. The MDSRank can create a finisher context that acquires the lock
later.

Fixes: https://tracker.ceph.com/issues/40694
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agocommon/TrackedOp: make settings atomic
Patrick Donnelly [Mon, 8 Jul 2019 19:42:18 +0000 (12:42 -0700)]
common/TrackedOp: make settings atomic

To avoid locks on configuration changes.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agodoc/dev/developer_guide/index.rst: add youtube references 29033/head
Neha Ojha [Fri, 12 Jul 2019 23:27:56 +0000 (16:27 -0700)]
doc/dev/developer_guide/index.rst: add youtube references

Signed-off-by: Neha Ojha <nojha@redhat.com>
6 years agoMerge PR #28978 into master
Sage Weil [Fri, 12 Jul 2019 22:21:05 +0000 (17:21 -0500)]
Merge PR #28978 into master

* refs/pull/28978/head:
qa/tasks/mgr/dashboard/test_health: fix test_full_health test
mon: use per-pool stats only when all OSDs are reporting
osd: report whether we have per-pool stats
osd/osd_types: osd_stat_t: include num_per_pool_osds member

Reviewed-by: Igor Fedotov <ifedotov@suse.com>
6 years agoMerge PR #29003 into master
Sage Weil [Fri, 12 Jul 2019 22:20:47 +0000 (17:20 -0500)]
Merge PR #29003 into master

* refs/pull/29003/head:
qa/standalone/scrub/osd-scrub-snaps.sh: adjust expected output
osd/SnapMapper: to_raw_key: use hobject pool member, not SnapMapper:pool
ceph-objectstore-tool: fix use of SnapSet::snaps
qa/standalone/scrub/osd-scrub-snaps: fix kv grep

Reviewed-by: David Zafman <dzafman@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge PR #29013 into master
Sage Weil [Fri, 12 Jul 2019 22:20:21 +0000 (17:20 -0500)]
Merge PR #29013 into master

* refs/pull/29013/head:
qa/tasks/ceph_manager: 5s -> 15s for 'osd out' to be visible

Reviewed-by: Neha Ojha <nojha@redhat.com>
6 years agoMerge pull request #28998 from alfredodeza/wip-rm40664
Andrew Schoen [Fri, 12 Jul 2019 18:17:38 +0000 (13:17 -0500)]
Merge pull request #28998 from alfredodeza/wip-rm40664

ceph-volume  zap always skips block.db, leaves them around

Reviewed-by: Andrew Schoen <aschoen@redhat.com>
6 years agomgr/dashboard: controllers/grafana is not Python3 compatible (#28956)
Lenz Grimmer [Fri, 12 Jul 2019 15:02:42 +0000 (17:02 +0200)]
mgr/dashboard: controllers/grafana is not Python3 compatible (#28956)

mgr/dashboard: controllers/grafana is not Python3 compatible

Reviewed-by: Sebastian Wagner <swagner@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
6 years agoMerge pull request #28979 from falcon78921/wip-doc-18197
Jason Dillaman [Fri, 12 Jul 2019 15:00:34 +0000 (11:00 -0400)]
Merge pull request #28979 from falcon78921/wip-doc-18197

doc: updated OpenStack rbd documentation

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
6 years agoqa/standalone/scrub/osd-scrub-snaps.sh: adjust expected output 29003/head
Sage Weil [Thu, 11 Jul 2019 22:23:57 +0000 (17:23 -0500)]
qa/standalone/scrub/osd-scrub-snaps.sh: adjust expected output

SnapSet now dumps just seq, not a (fake) SnapContext.

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoosd/SnapMapper: to_raw_key: use hobject pool member, not SnapMapper:pool
Sage Weil [Thu, 11 Jul 2019 22:21:23 +0000 (17:21 -0500)]
osd/SnapMapper: to_raw_key: use hobject pool member, not SnapMapper:pool

Some callers (ceph-objectstore-tool) instantiate SnapMapper with a bogus
pool id (0) and want to use it to adjust mappings.  We have the hobj
available, so use its pool member instead.

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoceph-objectstore-tool: fix use of SnapSet::snaps
Sage Weil [Thu, 11 Jul 2019 22:20:19 +0000 (17:20 -0500)]
ceph-objectstore-tool: fix use of SnapSet::snaps

Instead, use clone_snaps to identify clones.

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agomgr/dashboard: Minor fixes (#29009)
Lenz Grimmer [Fri, 12 Jul 2019 14:01:11 +0000 (16:01 +0200)]
mgr/dashboard: Minor fixes (#29009)

mgr/dashboard: Minor fixes

- Fix radio input display
- Fix the close button on initiators card
- Fix missing 'fa-' prefix in spinner icon
- Fix label font-weight

Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
6 years agoMerge PR #28945 into master
Sage Weil [Fri, 12 Jul 2019 14:00:23 +0000 (09:00 -0500)]
Merge PR #28945 into master

* refs/pull/28945/head:
os/bluestore: StupidAllocator stucks on 4GB allocations
os/bluestore: avoid length overflow in extents returned by Stupid

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoMerge PR #28990 into master
Sage Weil [Fri, 12 Jul 2019 13:58:45 +0000 (08:58 -0500)]
Merge PR #28990 into master

* refs/pull/28990/head:
qa: vstart_runner fails because of string index out of range

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
6 years agoqa/tasks/ceph_manager: 5s -> 15s for 'osd out' to be visible 29013/head
Sage Weil [Fri, 12 Jul 2019 13:56:50 +0000 (08:56 -0500)]
qa/tasks/ceph_manager: 5s -> 15s for 'osd out' to be visible

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoceph-volume tests: verify that wipefs tries several times 28998/head
Alfredo Deza [Thu, 11 Jul 2019 15:56:07 +0000 (11:56 -0400)]
ceph-volume tests: verify that wipefs tries several times

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoceph-volume lvm.zap: retry wipefs several times to prevent race condition failures
Alfredo Deza [Thu, 11 Jul 2019 13:34:10 +0000 (09:34 -0400)]
ceph-volume lvm.zap: retry wipefs several times to prevent race condition failures

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoqa/tasks/mgr/dashboard/test_health: fix test_full_health test 28978/head
Sage Weil [Fri, 12 Jul 2019 13:15:15 +0000 (08:15 -0500)]
qa/tasks/mgr/dashboard/test_health: fix test_full_health test

New fields!

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoqa/standalone/scrub/osd-scrub-snaps: fix kv grep
Sage Weil [Thu, 11 Jul 2019 22:04:32 +0000 (17:04 -0500)]
qa/standalone/scrub/osd-scrub-snaps: fix kv grep

SnapMapper keys are now SNA_, not MAP_.

Fixes: http://tracker.ceph.com/issues/40725
Signed-off-by: Sage Weil <sage@redhat.com>
6 years agomgr/dashboard: Remove button and badge radius (#29001)
Lenz Grimmer [Fri, 12 Jul 2019 12:56:24 +0000 (14:56 +0200)]
mgr/dashboard: Remove button and badge radius (#29001)

mgr/dashboard: Remove button and badge radius

Reviewed-by: Patrick Seidensal <pnawracay@suse.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
6 years agomgr/dashboard: Fix form validation problems in RGW user form (#29000)
Lenz Grimmer [Fri, 12 Jul 2019 12:55:49 +0000 (14:55 +0200)]
mgr/dashboard: Fix form validation problems in RGW user form (#29000)

mgr/dashboard: Fix form validation problems in RGW user form

Reviewed-by: Tatjana Dehler <tdehler@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
6 years agoMerge pull request #28267 from flumm/ceph-volume-zap-fix
Alfredo Deza [Fri, 12 Jul 2019 11:58:08 +0000 (07:58 -0400)]
Merge pull request #28267 from flumm/ceph-volume-zap-fix

ceph-volume lvm.zap fix cleanup for db partitions

Reviewed-by: Alfredo Deza <adeza@redhat.com>
6 years agomgr/dashboard: Fix label font-weight 29009/head
Tiago Melo [Fri, 12 Jul 2019 11:32:58 +0000 (11:32 +0000)]
mgr/dashboard: Fix label font-weight

Some labels were not bold, because the css rule didn't apply to them.
I have improved the css rule and also add missing classes in some labels.

Signed-off-by: Tiago Melo <tmelo@suse.com>
6 years agomgr/dashboard: Fix missing 'fa-' prefix in spinner icon
Tiago Melo [Fri, 12 Jul 2019 10:32:32 +0000 (10:32 +0000)]
mgr/dashboard: Fix missing 'fa-' prefix in spinner icon

This was causing the submit button to not show the spinner.

Signed-off-by: Tiago Melo <tmelo@suse.com>
6 years agomgr/dashboard: Add nolockdep option to e2e-script (#28981)
Lenz Grimmer [Fri, 12 Jul 2019 11:05:05 +0000 (13:05 +0200)]
mgr/dashboard: Add nolockdep option to e2e-script (#28981)

mgr/dashboard: Add nolockdep option to e2e-script

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Sebastian Wagner <swagner@suse.com>
6 years agomgr/dashboard: Fix the close button on initiators card
Tiago Melo [Fri, 12 Jul 2019 10:27:52 +0000 (10:27 +0000)]
mgr/dashboard: Fix the close button on initiators card

Signed-off-by: Tiago Melo <tmelo@suse.com>
6 years agomgr/dashboard: Fix radio input display
Tiago Melo [Fri, 12 Jul 2019 10:25:14 +0000 (10:25 +0000)]
mgr/dashboard: Fix radio input display

We were using the wrong class for the labels.

Signed-off-by: Tiago Melo <tmelo@suse.com>
6 years agoMerge pull request #28957 from mgerstner/sfw2
Nathan Cutler [Fri, 12 Jul 2019 10:09:54 +0000 (12:09 +0200)]
Merge pull request #28957 from mgerstner/sfw2

rpm,etc/sysconfig: remove SuSEfirewall2 support

Reviewed-by: Tim Serong <tserong@suse.com>
Reviewed-by: Nathan Cutler <ncutler@suse.com>
6 years agopackaging: remove SuSEfirewall2 support 28957/head
Matthias Gerstner [Wed, 10 Jul 2019 11:00:14 +0000 (13:00 +0200)]
packaging: remove SuSEfirewall2 support

removal of SuSEfirewall2 service, since SuSEfirewall2 has been replaced
by firewalld, see [1].

[1]: https://lists.opensuse.org/opensuse-factory/2019-01/msg00490.html

Fixes: http://tracker.ceph.com/issues/40738
Signed-off-by: Matthias Gerstner <matthias.gerstner@suse.de>
6 years agoMerge pull request #28802 from lixiaoy1/cmake_pmdk
Kefu Chai [Fri, 12 Jul 2019 06:55:34 +0000 (14:55 +0800)]
Merge pull request #28802 from lixiaoy1/cmake_pmdk

cmake: pmem/pmdk changes to cmake

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #28984 from tchaikov/wip-cmake-rebuild-cleanup
Kefu Chai [Fri, 12 Jul 2019 06:54:30 +0000 (14:54 +0800)]
Merge pull request #28984 from tchaikov/wip-cmake-rebuild-cleanup

cmake: use BUILD_ALWAYS for rebuilding external project

Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agoMerge PR #29002 into master
Sage Weil [Fri, 12 Jul 2019 00:00:54 +0000 (19:00 -0500)]
Merge PR #29002 into master

* refs/pull/29002/head:
qa/tasks/ceph_deploy: do not rely on ceph-create-keys

Reviewed-by: Vasu Kulkarni <vasu@redhat.com>
6 years agoMerge PR #28643 into master
Patrick Donnelly [Thu, 11 Jul 2019 22:05:41 +0000 (15:05 -0700)]
Merge PR #28643 into master

* refs/pull/28643/head:
doc: removed old EOL Ceph versions from the list
doc: added openSUSE distros to the list and updated the releases
doc: updated the OS recommendations to reflect the Nautilus release

Reviewed-by: Lenz Grimmer <lgrimmer@suse.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agodoc: updated OpenStack rbd documentation 28979/head
James McClune [Thu, 11 Jul 2019 02:14:44 +0000 (22:14 -0400)]
doc: updated OpenStack rbd documentation

Removed references to older OpenStack releases. Updated
documentation in regards to using QCOW2 as a virtual machine
disk type.

Fixes: https://tracker.ceph.com/issues/18197
Signed-off-by: James McClune <jmcclune@mcclunetechnologies.net>
6 years agoMerge PR #28944 into master
Sage Weil [Thu, 11 Jul 2019 21:28:34 +0000 (16:28 -0500)]
Merge PR #28944 into master

* refs/pull/28944/head:
qa/workunits/rados/test_cache_pool.sh: s/forward/proxy/
qa/workunits/cephtool/test.sh: cache forward mode is no longer allowed
mon/OSDMonitor: forward -> proxy, readforward -> readproxy on octopus
mon/OSDMonitor: disallow FORWARD and READFORWARD cache modes
osd: do proxy when in forward/readforward cache modes

Reviewed-by: Neha Ojha <nojha@redhat.com>
6 years agomgr/dashboard: Fix form validation problems in RGW user form 29000/head
Tiago Melo [Thu, 11 Jul 2019 17:46:15 +0000 (17:46 +0000)]
mgr/dashboard: Fix form validation problems in RGW user form

ng-bootstrap-form-validation requires that every "form-control" has
an associated "formControlName".

Since these didn't had one, we had to either removed the "form-control" class
or rename it to "cd-form-control" (which will apply the same style without
triggering the validation).

Signed-off-by: Tiago Melo <tmelo@suse.com>
6 years agomgr/dashboard: Remove button and badge radius 29001/head
Tiago Melo [Thu, 11 Jul 2019 17:36:45 +0000 (17:36 +0000)]
mgr/dashboard: Remove button and badge radius

Fixes: http://tracker.ceph.com/issues/38953
Signed-off-by: Tiago Melo <tmelo@suse.com>
6 years agoqa/tasks/ceph_deploy: do not rely on ceph-create-keys 29002/head
Sage Weil [Thu, 11 Jul 2019 16:15:55 +0000 (11:15 -0500)]
qa/tasks/ceph_deploy: do not rely on ceph-create-keys

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoMerge pull request #28426 from mkogan1/wip-rgw-40183
Casey Bodley [Thu, 11 Jul 2019 15:18:32 +0000 (11:18 -0400)]
Merge pull request #28426 from mkogan1/wip-rgw-40183

rgw: save an unnecessary copy of RGWEnv

Reviewed-by: Matt Benjamin <mbenjamin@redhat.com>
6 years agoMerge PR #28969 into master
Sage Weil [Thu, 11 Jul 2019 14:33:28 +0000 (09:33 -0500)]
Merge PR #28969 into master

* refs/pull/28969/head:
qa/tasks/ceph_manager: make is_{clean,recovered,active_or_down} less racy

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
6 years agoMerge PR #28943 into master
Sage Weil [Thu, 11 Jul 2019 14:32:59 +0000 (09:32 -0500)]
Merge PR #28943 into master

* refs/pull/28943/head:
qa: stop testing on 16.04 xenial

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agomon: use per-pool stats only when all OSDs are reporting
Sage Weil [Wed, 10 Jul 2019 22:12:16 +0000 (17:12 -0500)]
mon: use per-pool stats only when all OSDs are reporting

Previously, we would start using the per-pool stat sums as soon as *any*
OSDs were reporting.  For a legacy cluster, that meant that as soon as
one bluestore instance is updated or one new bluestore OSD is created, the
usage stats per pool would become useless.

Instead, only use the per-pool stats once *all* OSDs are reporting the new
values.  This mostly aligns with the health warning when one more bluestore
OSDs are not reporting; once they are update the warning goes away.  (That
does not factor in fielstore OSDs, though; all OSDs need to be new *and*
bluestore.)

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoqa: vstart_runner fails because of string index out of range 28990/head
Volker Theile [Thu, 11 Jul 2019 13:15:10 +0000 (15:15 +0200)]
qa: vstart_runner fails because of string index out of range

Fix problem in LocalRemote::_perform_checks_and_return_list_of_args() when LocalCephManager::raw_cluster_cmd() is called with a empty command parameter.

Fixes: https://tracker.ceph.com/issues/40729
Signed-off-by: Volker Theile <vtheile@suse.com>
6 years agocmake: do not always build brotli or zstd 28984/head
Kefu Chai [Thu, 11 Jul 2019 11:31:47 +0000 (19:31 +0800)]
cmake: do not always build brotli or zstd

these two libraries are relatively stable, and Ceph developers are not
likely to hack them. so no need to rebuild them every time.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agocmake/modules/BuildRocksDB.cmake: use BUILD_ALWAYS
Kefu Chai [Thu, 11 Jul 2019 11:30:26 +0000 (19:30 +0800)]
cmake/modules/BuildRocksDB.cmake: use BUILD_ALWAYS

this option was introduced by cmake 3.1, and we require cmake 3.5.1, so
we can use it without using the homebrew solution.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agomgr/dashboard: Add nolockdep option to e2e-script 28981/head
Laura Paduano [Thu, 11 Jul 2019 10:38:49 +0000 (12:38 +0200)]
mgr/dashboard: Add nolockdep option to e2e-script

Adding the --nolockdep option to the vstart command
seems to fix the current issue where vstart just
hangs at the dashboard ac-user-create command.
Hopefully we can get the e2e tests to run again
in Jenkins by applying this change.
Note that this might be a workaround only.

Fixes: https://tracker.ceph.com/issues/40688
Signed-off-by: Laura Paduano <lpaduano@suse.com>
6 years agoMerge pull request #28766 from liewegas/wip-clean-out-nibblewise
Kefu Chai [Thu, 11 Jul 2019 10:30:03 +0000 (18:30 +0800)]
Merge pull request #28766 from liewegas/wip-clean-out-nibblewise

osd/osd_types: drop last_backfill_bitwise member

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #28801 from ideepika/wip-update-dump-historic-ops
Kefu Chai [Thu, 11 Jul 2019 10:27:52 +0000 (18:27 +0800)]
Merge pull request #28801 from ideepika/wip-update-dump-historic-ops

osd: add duration field to dump_historic_ops method

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Mark Nelson <mnelson@redhat.com>
6 years agomgr/dashboard: fix icons variable assignment (#28961)
Lenz Grimmer [Thu, 11 Jul 2019 10:24:12 +0000 (12:24 +0200)]
mgr/dashboard: fix icons variable assignment (#28961)

mgr/dashboard: fix icons variable assignment

Reviewed-by: Tiago Melo <tmelo@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
6 years agomgr/dashboard: Update bootstrap (#25188)
Lenz Grimmer [Thu, 11 Jul 2019 10:15:20 +0000 (12:15 +0200)]
mgr/dashboard: Update bootstrap (#25188)

mgr/dashboard: Update bootstrap

Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
6 years agoMerge pull request #28797 from simon-rock/simon_bug_fix
Kefu Chai [Thu, 11 Jul 2019 08:12:00 +0000 (16:12 +0800)]
Merge pull request #28797 from simon-rock/simon_bug_fix

mgr/status: fix 'ceph osd status' ZeroDivisionError

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #28687 from hsiang41/mgr/diskprediction_cloud_service_unavailable
Kefu Chai [Thu, 11 Jul 2019 07:57:59 +0000 (15:57 +0800)]
Merge pull request #28687 from hsiang41/mgr/diskprediction_cloud_service_unavailable

mgr/diskprediction_cloud: Service unavailable

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoMerge pull request #28950 from tchaikov/wip-corpus-gen
Kefu Chai [Thu, 11 Jul 2019 07:32:05 +0000 (15:32 +0800)]
Merge pull request #28950 from tchaikov/wip-corpus-gen

script,doc: add gen-corpus.sh

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
6 years agodoc/dev/corpus.rst: updates to match gen-corpus.sh 28950/head
Kefu Chai [Wed, 10 Jul 2019 04:39:07 +0000 (12:39 +0800)]
doc/dev/corpus.rst: updates to match gen-corpus.sh

* to reference the script to generate corpus
* use qa/workunits/rgw/run-s3tests.sh for producing rgw corpus

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoscript: add gen-corpus.sh
Kefu Chai [Wed, 3 Jul 2019 13:08:55 +0000 (21:08 +0800)]
script: add gen-corpus.sh

to automate generation of ceph-object-corpus objects. it facilitate the
process of cutting a new release

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #28070 from badone/wip-lazy-omap-test
Brad Hubbard [Wed, 10 Jul 2019 23:52:12 +0000 (09:52 +1000)]
Merge pull request #28070 from badone/wip-lazy-omap-test

Wip lazy omap test

Reviewed-by: Greg Farnum gfarnum@redhat.com
6 years agoqa/workunits/rados/test_cache_pool.sh: s/forward/proxy/ 28944/head
Sage Weil [Wed, 10 Jul 2019 14:58:39 +0000 (09:58 -0500)]
qa/workunits/rados/test_cache_pool.sh: s/forward/proxy/

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoqa/workunits/cephtool/test.sh: cache forward mode is no longer allowed
Sage Weil [Wed, 10 Jul 2019 14:58:23 +0000 (09:58 -0500)]
qa/workunits/cephtool/test.sh: cache forward mode is no longer allowed

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agomon/OSDMonitor: forward -> proxy, readforward -> readproxy on octopus
Sage Weil [Tue, 9 Jul 2019 16:13:57 +0000 (11:13 -0500)]
mon/OSDMonitor: forward -> proxy, readforward -> readproxy on octopus

Adjust cache modes on upgrade.

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agomon/OSDMonitor: disallow FORWARD and READFORWARD cache modes
Sage Weil [Tue, 9 Jul 2019 16:09:21 +0000 (11:09 -0500)]
mon/OSDMonitor: disallow FORWARD and READFORWARD cache modes

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoosd: report whether we have per-pool stats
Sage Weil [Wed, 10 Jul 2019 21:16:57 +0000 (16:16 -0500)]
osd: report whether we have per-pool stats

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoosd/osd_types: osd_stat_t: include num_per_pool_osds member
Sage Weil [Wed, 10 Jul 2019 21:16:46 +0000 (16:16 -0500)]
osd/osd_types: osd_stat_t: include num_per_pool_osds member

Count OSDs that are reporting per-pool stats.

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoMerge pull request #28949 from adamemerson/wip-40416
Casey Bodley [Wed, 10 Jul 2019 17:25:45 +0000 (13:25 -0400)]
Merge pull request #28949 from adamemerson/wip-40416

Don't crash on copy when metadata directive not supplied

Reviewed-by: Matt Benjamin <mbenjamin@redhat.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agoqa/tasks/ceph_manager: make is_{clean,recovered,active_or_down} less racy 28969/head
Sage Weil [Wed, 10 Jul 2019 16:04:49 +0000 (11:04 -0500)]
qa/tasks/ceph_manager: make is_{clean,recovered,active_or_down} less racy

Currently these can be thrown off if the cluster is creating or removing
pools at the same time.  Fix by taking a single snapshot of the pg stats
and based our judgement on that.

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoMerge PR #28940 into master
Sage Weil [Wed, 10 Jul 2019 15:53:14 +0000 (10:53 -0500)]
Merge PR #28940 into master

* refs/pull/28940/head:
common/config: Remove unused code.

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoqa/rgw: run-s3tests.sh runs in s3tests directory 28964/head
Casey Bodley [Wed, 10 Jul 2019 15:39:45 +0000 (11:39 -0400)]
qa/rgw: run-s3tests.sh runs in s3tests directory

something looks for request_decision_graph.yml in the working directory

Signed-off-by: Casey Bodley <cbodley@redhat.com>
6 years agocmake: Add the support to use system PMDK library 28802/head
lixiaoy1 [Wed, 10 Jul 2019 15:30:47 +0000 (11:30 -0400)]
cmake: Add the support to use system PMDK library

Signed-off-by: Scott Peterson <scott.d.peterson@intel.com>
Signed-off-by: Xiaoyan Li <xiaoyan.li@intel.com>
6 years agocmake: move pmdk build script to Buildpmem.cmake
lixiaoy1 [Wed, 10 Jul 2019 15:20:48 +0000 (11:20 -0400)]
cmake: move pmdk build script to Buildpmem.cmake

Signed-off-by: Scott Peterson <scott.d.peterson@intel.com>
Signed-off-by: Xiaoyan Li <xiaoyan.li@intel.com>
6 years agocmake: update HAVE_PMEM to HAVE_BLUESTORE_PMEM
lixiaoy1 [Wed, 10 Jul 2019 15:10:27 +0000 (11:10 -0400)]
cmake: update HAVE_PMEM to HAVE_BLUESTORE_PMEM

Signed-off-by: Scott Peterson <scott.d.peterson@intel.com>
Signed-off-by: Xiaoyan Li <xiaoyan.li@intel.com>
6 years agomgr/dashboard: Use bootstrap custom-select 25188/head
Tiago Melo [Fri, 3 May 2019 15:16:29 +0000 (15:16 +0000)]
mgr/dashboard: Use bootstrap custom-select

Signed-off-by: Tiago Melo <tmelo@suse.com>
6 years agomgr/dashboard: Use ng-bootstrap-form-validation
Tiago Melo [Thu, 2 May 2019 14:17:09 +0000 (14:17 +0000)]
mgr/dashboard: Use ng-bootstrap-form-validation

Signed-off-by: Tiago Melo <tmelo@suse.com>
6 years agomgr/dashboard: Replace awesome-boostrap-checkbox with bootstrap
Tiago Melo [Tue, 2 Apr 2019 14:43:56 +0000 (14:43 +0000)]
mgr/dashboard: Replace awesome-boostrap-checkbox with bootstrap

Fixes: http://tracker.ceph.com/issues/36400
Signed-off-by: Tiago Melo <tmelo@suse.com>