Lenz Grimmer
5864722eae
Merge pull request #22830 from ricardoasmarques/fix-24756
...
mgr/dashboard: Fix RBD object size dropdown options
Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
2018-07-04 13:47:42 +02:00
Erwan Velu
4cb5a59053
run-make-check.sh: Adding ccache tuning for the CI
...
When run-make-check is run by the CI, some tuning can be performed to
speedup the build.
This commit :
- Detect jenkins by searching JENKINS_HOME env variable
- Defines the SOURCE_DATE_EPOCH to enforce a stable date across builds
- Ask cmake not to use the git versioning which adds useless entropy for a temporary build (ENABLE_GIT_VERSION=OFF)
- Define the ccache slopiness to increase efficiency
- Increase the ccache size to save multiple builds to maximise cache hit between PRs
- Print ccache statistics to evaluate ccache efficiency
Signed-off-by: Erwan Velu <erwan@redhat.com>
2018-07-04 11:55:43 +02:00
Lenz Grimmer
d95269773f
Merge pull request #22644 from Devp00l/wip-forms-helper-service
...
mgr/dashboard: CdFormGroup
Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
2018-07-04 11:30:16 +02:00
Ricardo Marques
30d034fb9b
mgr/dashboard: Fix RBD object size dropdown options
...
Fixes: https://tracker.ceph.com/issues/24756
Signed-off-by: Ricardo Marques <rimarques@suse.com>
2018-07-04 10:27:28 +01:00
Lenz Grimmer
9d8f378642
Merge pull request #22461 from tspmelo/wip-osd-flags-ui
...
mgr/dashboard: Add UI for Cluster-wide OSD Flags configuration
Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
2018-07-04 10:55:15 +02:00
Ricardo Marques
6c33d7f57a
mgr/dashboard: Add "About" modal
...
Fixes: https://tracker.ceph.com/issues/24646
Signed-off-by: Ricardo Marques <rimarques@suse.com>
2018-07-04 09:51:27 +01:00
Ricardo Marques
5dc5822a4f
mgr/dashboard: Usage of 'BehaviorSubject' in summary
...
Signed-off-by: Ricardo Marques <rimarques@suse.com>
2018-07-04 09:51:27 +01:00
Ricardo Marques
c7c2432c34
mgr/dashboard: Remove text from top-right actions
...
Fixes: https://tracker.ceph.com/issues/24624
Signed-off-by: Ricardo Marques <rimarques@suse.com>
2018-07-04 09:51:27 +01:00
Lenz Grimmer
297a428699
Merge pull request #22757 from votdev/improve_str_to_bool
...
mgr/dashboard: Improve str_to_bool
Reviewed-by: Sebastian Wagner <swagner@suse.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
2018-07-04 09:30:06 +02:00
Jianpeng Ma
42cd25b794
os/bluestore: set correctly shard for existed Collection.
...
For existed Collection, the constructor of Collection will be called in _open_collections.
But m_finisher_num can't setup when enable bluestore_shard_finishers.
So move m_finisher_num setup before _open_collections && _kv_start.
Fixes: http://tracker.ceph.com/issues/24761
Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
2018-07-04 15:12:55 +08:00
David Zafman
32169723a7
Merge pull request #22837 from dzafman/wip-fix-timeout
...
test: test_get_timeout_delays() fix
Reviewed-by: Erwan Velu <erwan@redhat.com>
2018-07-03 18:05:47 -04:00
David Zafman
fbc8bcfe05
test: test_get_timeout_delays() fix
...
Caused by: 7b0d1c8b8a
Signed-off-by: David Zafman <dzafman@redhat.com>
2018-07-03 14:01:36 -07:00
Sage Weil
73c4d4a9b3
msg/Messenger: use safe_item_history<> for my_addrs
...
Mutating the item in place is not safe.
Signed-off-by: Sage Weil <sage@redhat.com>
2018-07-03 13:01:24 -05:00
Sage Weil
2c174e21ee
msg/simple: fix set_myaddrs()
...
Signed-off-by: Sage Weil <sage@redhat.com>
2018-07-03 13:01:24 -05:00
Sage Weil
aa81f93537
msg/Messenger: use mutable_item_history<> for my_addrs
...
We read this without a lock.
Signed-off-by: Sage Weil <sage@redhat.com>
2018-07-03 13:01:24 -05:00
Sage Weil
c5708c2156
common/item_history: container to support lockless reads, infrequent updates
...
Signed-off-by: Sage Weil <sage@redhat.com>
2018-07-03 13:01:24 -05:00
Sage Weil
9d1284d7be
msg/simple/Accepter: fix my_addr == my_addrs.v[0] constraint
...
Signed-off-by: Sage Weil <sage@redhat.com>
2018-07-03 13:01:24 -05:00
Sage Weil
d1a783a5f7
msg/async: track target_addr for each connection
...
The target_addr is item from peer_addrs that we are using for the
connection. On accept, we learn it during the handshake. On connect,
we choose it early on (first item in addrvec that we understand).
Signed-off-by: Sage Weil <sage@redhat.com>
2018-07-03 13:01:24 -05:00
Sage Weil
ccad66390f
msg/async: mark accepted connections with addr type (legacy or msgr2)
...
We have to note the addr type we are listening for in the ServerSocketImpl
and pass that on to any AsyncConnections that result.
Signed-off-by: Sage Weil <sage@redhat.com>
2018-07-03 13:01:24 -05:00
Sage Weil
9247562e32
msg/async: mark AsyncConnection with msgr2 flag
...
Signed-off-by: Sage Weil <sage@redhat.com>
2018-07-03 13:01:24 -05:00
Sage Weil
ecd85f4d93
msg/async: track connections by addrvec
...
Signed-off-by: Sage Weil <sage@redhat.com>
2018-07-03 13:01:24 -05:00
Sage Weil
def2254aa8
mon/Session: inst -> name and addrs
...
Signed-off-by: Sage Weil <sage@redhat.com>
2018-07-03 13:01:24 -05:00
Sage Weil
73121c123b
osd/OSDMap: don't print hb addrs
...
Nobody cares!
Signed-off-by: Sage Weil <sage@redhat.com>
2018-07-03 13:01:24 -05:00
Sage Weil
f24077c189
msg/DispatchQueue: myaddr -> myaddrs
...
Signed-off-by: Sage Weil <sage@redhat.com>
2018-07-03 13:01:24 -05:00
Sage Weil
f30843581d
mgr: myaddr -> myaddrs
...
Signed-off-by: Sage Weil <sage@redhat.com>
2018-07-03 13:01:24 -05:00
Sage Weil
f43731fd34
msg: make set_addr_unknowns take an addrvec
...
Nicely collapse the wonky logic in OSD into the helper!
Signed-off-by: Sage Weil <sage@redhat.com>
2018-07-03 13:01:24 -05:00
Sage Weil
a18e4ed965
mon/LogMonitor: myaddr -> myaddrs
...
Signed-off-by: Sage Weil <sage@redhat.com>
2018-07-03 13:01:24 -05:00
Sage Weil
a61eaae0d5
librados: myaddr -> myaddrs
...
Signed-off-by: Sage Weil <sage@redhat.com>
2018-07-03 13:01:24 -05:00
Sage Weil
b59392a17c
common/LogClient: myaddr -> myaddrs
...
Signed-off-by: Sage Weil <sage@redhat.com>
2018-07-03 13:01:24 -05:00
Sage Weil
8cc65291a9
client: myaddr -> myaddrs
...
Signed-off-by: Sage Weil <sage@redhat.com>
2018-07-03 13:01:24 -05:00
Sage Weil
312af0c437
osd/OSDMap: is_blacklisted() for addrvecs
...
Signed-off-by: Sage Weil <sage@redhat.com>
2018-07-03 13:01:24 -05:00
Sage Weil
a14022a3de
osd: populate metadata with all addrs
...
Signed-off-by: Sage Weil <sage@redhat.com>
2018-07-03 13:01:24 -05:00
Sage Weil
ea1481d08d
mds: addr -> addrvec
...
Update MDSMap to use entity_addrvec_t instead of entity_addr_t. Adjust
the various mon and mgr pieces that touch it accordingly.
Signed-off-by: Sage Weil <sage@redhat.com>
2018-07-03 13:01:24 -05:00
Sage Weil
78edca98f3
mon/MonClient: get_myaddrs()
...
Signed-off-by: Sage Weil <sage@redhat.com>
2018-07-03 13:01:24 -05:00
Sage Weil
b759c588cb
mon/OSDMonitor: addrvec blacklist helper
...
Signed-off-by: Sage Weil <sage@redhat.com>
2018-07-03 13:01:24 -05:00
Sage Weil
22086a78da
mds: use new pick_addresses
...
Signed-off-by: Sage Weil <sage@redhat.com>
2018-07-03 13:01:24 -05:00
Sage Weil
6f0e60c831
ceph-osd: use new bindv()
...
Rely on the new and improved pick_addresses() to produce an addrvec of
addresses we should bind to.
Signed-off-by: Sage Weil <sage@redhat.com>
2018-07-03 13:01:24 -05:00
Sage Weil
57d756332d
msg/async: bind to multiple addresses
...
Signed-off-by: Sage Weil <sage@redhat.com>
2018-07-03 13:01:23 -05:00
Sage Weil
d0db627cc0
msg/async: (legacy) handshake using legacy addr
...
Signed-off-by: Sage Weil <sage@redhat.com>
2018-07-03 13:01:23 -05:00
Sage Weil
b966c0d368
msg/async: fix some debug prefixes
...
Signed-off-by: Sage Weil <sage@redhat.com>
2018-07-03 13:01:23 -05:00
Sage Weil
6625caa7ff
msg/async: multiple listening ServerSockets
...
No functional change yet.
Signed-off-by: Sage Weil <sage@redhat.com>
2018-07-03 13:01:23 -05:00
Sage Weil
9fb1e521c7
osd/OSDMap: make cluster addrs addrvecs too
...
This will allow a single-step upgrade from msgr1 to msgr2: as each
nautilus OSD starts up, it will bind to both msgr1 and msgr2 addrs
(assuming it starts up after the mons have been upgraded). Peer OSDs will
use the msgr2 address if they can, or the legacy one if they can't.
Once require_osd_release >= nautilus OSDs will stop binding to msgr1
ports at all.
Signed-off-by: Sage Weil <sage@redhat.com>
2018-07-03 13:01:23 -05:00
Sage Weil
5d95b29c9b
msg/Messenger: my_addr -> my_addrs
...
Minimal changes to SimpleMessenger and AsyncMessenger to keep things
working, assuming we ony have a single addr in the addrvec.
Signed-off-by: Sage Weil <sage@redhat.com>
2018-07-03 13:01:23 -05:00
Sage Weil
6d742a35ff
msg/Connection: peer_addr -> peer_addrs
...
Signed-off-by: Sage Weil <sage@redhat.com>
2018-07-03 13:01:23 -05:00
Sage Weil
13a53cbe4b
msg/msg_types: hash<> for entity_addrvec_t
...
Signed-off-by: Sage Weil <sage@redhat.com>
2018-07-03 13:01:23 -05:00
Sage Weil
700fd00322
mgr/DaemonServer: use new bindv() and pick_addresses()
...
Signed-off-by: Sage Weil <sage@redhat.com>
2018-07-03 13:01:23 -05:00
Sage Weil
1b80cfa8ae
msg/Messenger: new bindv() that takes an addrvec
...
Signed-off-by: Sage Weil <sage@redhat.com>
2018-07-03 13:01:23 -05:00
Sage Weil
ff76ac43fc
common/pick_address: fill in ipv4/6 and msgr1/msgr2 via config options
...
This allows users to simply pass in CLUSTER or PUBLIC and the function
fills in the rest. (Or, if the caller is particular, they can pass in
the other flags too.)
Signed-off-by: Sage Weil <sage@redhat.com>
2018-07-03 13:01:23 -05:00
Sage Weil
9b7e49828b
common/pick_addresses: new addrvec-based pick_addresses()
...
Flags for everything we would want. The intent is to return an addrvec
of addrs that we can directly bind to.
Signed-off-by: Sage Weil <sage@redhat.com>
2018-07-03 13:01:23 -05:00
Sage Weil
bc95a33979
common/pick_addresses: add filtering by ipv4 and ipv6
...
Signed-off-by: Sage Weil <sage@redhat.com>
2018-07-03 13:01:23 -05:00