Enable object replication' failure in recon

Registered by Hisashi Osanai

The recon for object replicator doesn't have an ability to output it's failure
such as account replicator and container replicator.

With this specification the recon for object replicator responses it's failure
to clients with the following format.

- Add replication_last, replication_stats(attempted, empty, failure, hashmatch,
  remove, rcync, start and success) in output of recon api.

curl http://endpoint:6002/recon/replication/object
{
    "replication_last": 1416334368.60865,
    "replication_stats": {
        "attempted": 13346,
        "empty": 0,
        "failure": 870,
        "hashmatch": 0,
        "remove": 0,
        "rsync", 0,
        "start": 1416354240.9761429,
        "success": 1908
    },
    "replication_time": 2316.5563162644703,
    "object_replication_last": 1416334368.60865,
    "object_replication_time": 2316.5563162644703
}

* object_replication_last and object_replication_time are remained for
  backword compatibility.

- Add replication_falilure, replication_success and replication_attempted in
  output of swift-recon.

swift-recon object -r
===============================================================================
--> Starting reconnaissance on 4 hosts
===============================================================================
[2014-11-27 16:14:09] Checking on replication
[replication_failure] low: 0, high: 0, avg: 0.0, total: 0, Failed: 0.0%, no_result: 0, reported: 4
[replication_success] low: 3, high: 3, avg: 3.0, total: 12, Failed: 0.0%, no_result: 0, reported: 4
[replication_time] low: 0, high: 0, avg: 0.0, total: 0, Failed: 0.0%, no_result: 0, reported: 4
[replication_attempted] low: 1, high: 1, avg: 1.0, total: 4, Failed: 0.0%, no_result: 0, reported: 4
Oldest completion was 2014-11-27 16:09:45 (4 minutes ago) by 10.124.154.35:6002.
Most recent completion was 2014-11-27 16:14:19 (-10 seconds ago) by 192.168.0.1:6002.
===============================================================================

Blueprint information

Status:
Not started
Approver:
None
Priority:
Undefined
Drafter:
Hisashi Osanai
Direction:
Needs approval
Assignee:
Hisashi Osanai
Definition:
New
Series goal:
None
Implementation:
Unknown
Milestone target:
None

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.openstack.org/#q,topic:bp/enable-object-replication-failure-in-recon,n,z

Addressed by: https://review.openstack.org/138342
    Enable Object Replicator's failure count in recon

Gerrit topic: https://review.openstack.org/#q,topic:bug/1489587,n,z

Addressed by: https://review.openstack.org/219775
    Merge branch 'master' into feature/crypto

Addressed by: https://review.openstack.org/221410
    Merge branch 'master' into feature/hummingbird

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.