MB-8663: per-replication settings UI

Change-Id: I1203ea7e1c3b0e55b75a2ac471102ab91b5842d4
Reviewed-on: http://review.couchbase.org/28252
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
MB-8828: better error handling in XMem mode XDCR

Today if XMem replicator received some error msgs which
it did not expect to see, it would crash. This behavior is
inherited from CAPI mode XDCR. For XMem mode, we should be
able to do better than that since now we send requests
to remote on a per-mutation basis. Instead of crashing
replicator, this commit will absorb and dump error msgs
from remote memacached into logs.

Change-Id: I950eb8cada03d7742108b8b140318c7ebb4c775d
Reviewed-on: http://review.couchbase.org/28234
Reviewed-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
Tested-by: Junyi Xie <junyi.couchbase@gmail.com>
MB-8879: shrink error msgs exposed to UI and logs

Today when errors happened XDCR will dump errors to both xdcr log
and ns_server logs. Some information we dump to these log files is
redundant, causing bloated logs.

Also, XDCR now overwhelms UI ("last 10 errors" on XDCR tab) by
exposing too much info. The Erlang state from crash process is
too big to show on UI and it is unnecessary to show the complete
Erlang state to users.

This commit will shrink xdcr logs and the error msg exposed to UI.

Change-Id: I8863f20193794f52644bb09d804827ff454e3ede
Reviewed-on: http://review.couchbase.org/28256
Reviewed-by: Junyi Xie <junyi.couchbase@gmail.com>
Tested-by: Junyi Xie <junyi.couchbase@gmail.com>
MB-8882: do not propose to create view to read-only admin

Because "Create Development View" button is obviously not available
for this user.

Change-Id: I8c5db4929c55b9e89bcea2bc86ac7f771d6dc079
Reviewed-on: http://review.couchbase.org/28397
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Reviewed-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
Merge remote-tracking branch 'couchbase/2.2.0'

* couchbase/2.2.0:
  MB-8882: do not propose to create view to read-only admin
  MB-8879: shrink error msgs exposed to UI and logs
  MB-8828: better error handling in XMem mode XDCR
  MB-8663: per-replication settings UI

Change-Id: Iada3ec2393b9d9aec33de0c0d33989c9d912bc5a
MB-100 Indicate that _Key is actually used now.

Change-Id: Ifc9368dbc76162681ff3f26413143379ae0075d5
Reviewed-on: http://review.couchbase.org/28410
Tested-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
MB-8883 Don't crash in testEmail.

Since recently menelaus_alert:parse_settings_alerts_param stopped
accepting unknown parameters. And "subject" and "body" are exactly
unknown to it. So they need to be removed from the args passed to that
function.

Change-Id: I0900e705ea95c8bcc81a1351845ae13899135ea7
Reviewed-on: http://review.couchbase.org/28411
Tested-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
MB-5904 Filter out password for email alerts too.

Change-Id: I5cbba952e647d4eb75914d86f3e98e6c8c184024
Reviewed-on: http://review.couchbase.org/28412
Tested-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
MB-5904 Filter out admin_pass and pass in cbcollect_info.

Ideally, I would want all of this to be done in dump-guts. And for it
to use the same ns_config_log:sanitize function that is used by the
server. But sharing code between server and dump-guts script is not
very easy mainly because we our installation layout differs between
supported platforms. So at for now I decided to keep to our current
approach even though it requires code duplication.

Change-Id: Iac3175da07859d5f5ae86b8de31c5fb18b6b6105
Reviewed-on: http://review.couchbase.org/28413
Tested-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
MB-8882 Don't ask read-only user to create cluster references.

Because it's impossible anyway.

Change-Id: Ia591d57afcd0e0c56a0851d2ccf366b4a71b557a
Reviewed-on: http://review.couchbase.org/28414
Tested-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Merge remote-tracking branch 'origin/2.2.0'

* origin/2.2.0:
  MB-8882 Don't ask read-only user to create cluster references.
  MB-5904 Filter out admin_pass and pass in cbcollect_info.
  MB-5904 Filter out password for email alerts too.
  MB-8883 Don't crash in testEmail.
  MB-100 Indicate that _Key is actually used now.

trivial merge

Change-Id: I5c2816235016fe058d55e5a3e42fa000c4dfdf07
MB-8875: Some stats tooltip to provide parameters

This commit add parameters in stat tooltip for

1) outbound XDCR stats; 2) incoming XDCR stats; 3) the last
three rows of stats in bucket stats (the summary section).

Change-Id: I980dd8d72843c7144676569c9555170c91c97054
Reviewed-on: http://review.couchbase.org/28399
Tested-by: Junyi Xie <junyi.couchbase@gmail.com>
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Merge remote-tracking branch 'origin/2.2.0'

* origin/2.2.0:
  MB-8875: Some stats tooltip to provide parameters

Change-Id: I08c784ce28b1ea4c4edaa83e30f1d9ef7c8a91ad