swift/bin
Matthew Oliver 52c80d652d cli: add --sync to db info to show syncs
When looking at containers and accounts it's sometimes nice to know who
they've been replicating with. This patch adds a `--sync|-s` option to
swift-{container|account}-info which will also dump the incoming and
outgoing sync tables:

  $ swift-container-info /srv/node3/sdb3/containers/294/624/49b9ff074c502ec5e429e7af99a30624/49b9ff074c502ec5e429e7af99a30624.db -s
  Path: /AUTH_test/new
    Account: AUTH_test
    Container: new
    Deleted: False
    Container Hash: 49b9ff074c502ec5e429e7af99a30624
  Metadata:
    Created at: 2022-02-16T05:34:05.988480 (1644989645.98848)
    Put Timestamp: 2022-02-16T05:34:05.981320 (1644989645.98132)
    Delete Timestamp: 1970-01-01T00:00:00.000000 (0)
    Status Timestamp: 2022-02-16T05:34:05.981320 (1644989645.98132)
    Object Count: 1
    Bytes Used: 7
    Storage Policy: default (0)
    Reported Put Timestamp: 1970-01-01T00:00:00.000000 (0)
    Reported Delete Timestamp: 1970-01-01T00:00:00.000000 (0)
    Reported Object Count: 0
    Reported Bytes Used: 0
    Chexor: 962368324c2ca023c56669d03ed92807
    UUID: f33184e7-56d5-4c74-9d2e-5417c187d722-sdb3
    X-Container-Sync-Point2: -1
    X-Container-Sync-Point1: -1
  No system metadata found in db file
  No user metadata found in db file
  Sharding Metadata:
    Type: root
    State: unsharded
  Incoming Syncs:
    Sync Point	Remote ID                                	Updated At
    1         	ce7268a1-f5d0-4b83-b993-af17b602a0ff-sdb1	2022-02-16T05:38:22.000000 (1644989902)
    1         	2af5abc0-7f70-4e2f-8f94-737aeaada7f4-sdb4	2022-02-16T05:38:22.000000 (1644989902)
  Outgoing Syncs:
    Sync Point	Remote ID	Updated At
  Partition	294
  Hash     	49b9ff074c502ec5e429e7af99a30624

As a follow up to the device in DB ID patch we can see that the replicas
at sdb1 and sdb4 have replicated with this node.

Change-Id: I23d786e82c6710bea7660a9acf8bbbd113b5b727
2024-01-16 08:19:08 -08:00
..
swift-account-audit swift-account-audit: Log the bad status 2021-04-08 17:34:49 -07:00
swift-account-auditor Change OpenStack LLC to Foundation 2013-09-20 01:02:31 +08:00
swift-account-info Run flake8 on bin/ files 2021-02-01 13:26:53 -08:00
swift-account-reaper Change OpenStack LLC to Foundation 2013-09-20 01:02:31 +08:00
swift-account-replicator Support -d <devs> and -p <partitions> in DB replicators. 2018-03-05 16:26:19 -08:00
swift-account-server Add --test-config option to WSGI servers 2023-04-05 20:51:46 -07:00
swift-config Run flake8 on bin/ files 2021-02-01 13:26:53 -08:00
swift-container-auditor Change OpenStack LLC to Foundation 2013-09-20 01:02:31 +08:00
swift-container-info cli: add --sync to db info to show syncs 2024-01-16 08:19:08 -08:00
swift-container-reconciler Add container-reconciler daemon 2014-06-18 17:31:39 -07:00
swift-container-replicator Support -d <devs> and -p <partitions> in DB replicators. 2018-03-05 16:26:19 -08:00
swift-container-server Add --test-config option to WSGI servers 2023-04-05 20:51:46 -07:00
swift-container-sharder Populate shrinking shards with shard ranges learnt from root 2020-12-18 11:33:48 +00:00
swift-container-sync Fix shebang of commands 2015-08-06 11:02:40 +09:00
swift-container-updater Change OpenStack LLC to Foundation 2013-09-20 01:02:31 +08:00
swift-dispersion-populate py3: Fix swift-dispersion-populate 2020-09-11 19:35:32 +00:00
swift-dispersion-report Add bin/swift-dispersion-report 2017-09-13 05:57:30 +00:00
swift-drive-audit Change getting major:minor of blkdev 2023-06-28 10:35:13 +02:00
swift-form-signature Make swift-form-signature testable 2014-07-24 14:38:53 -07:00
swift-get-nodes swift-get-nodes: Allow users to specify either quoted or unquoted paths 2020-06-08 12:03:56 -07:00
swift-init Merge "Add description of server options (all, main, rest) for swift-init help" 2016-07-08 23:31:20 +00:00
swift-object-auditor Allow specification of object devices for audit 2014-03-11 14:17:08 +00:00
swift-object-expirer Change OpenStack LLC to Foundation 2013-09-20 01:02:31 +08:00
swift-object-info Merge "Optionally drop common prefixes in swift-*-info output" 2018-03-13 03:39:02 +00:00
swift-object-reconstructor Clarify usage of replicator and reconstructor override options 2017-07-26 12:53:46 +01:00
swift-object-relinker relinker: Pull arg parsing into module 2021-02-08 13:46:28 -08:00
swift-object-replicator Clarify usage of replicator and reconstructor override options 2017-07-26 12:53:46 +01:00
swift-object-server Add --test-config option to WSGI servers 2023-04-05 20:51:46 -07:00
swift-object-updater Change OpenStack LLC to Foundation 2013-09-20 01:02:31 +08:00
swift-oldies Run flake8 on bin/ files 2021-02-01 13:26:53 -08:00
swift-orphans Find .d pid files with swift-orphans 2019-08-30 11:54:47 -07:00
swift-proxy-server Add --test-config option to WSGI servers 2023-04-05 20:51:46 -07:00
swift-recon Fix shebang of commands 2015-08-06 11:02:40 +09:00
swift-recon-cron Add unittest of swift-recon-cron 2023-09-22 12:59:09 +00:00
swift-reconciler-enqueue Another amendment with missing parenthesis 2016-07-07 20:15:14 +03:00
swift-ring-builder swift-ring-builder: exit ERROR (2) on uncaught exceptions 2022-02-15 14:29:14 +00:00
swift-ring-builder-analyzer Fix shebang of commands 2015-08-06 11:02:40 +09:00
swift-ring-composer Experimental swift-ring-composer CLI to build composite rings 2018-06-14 09:50:55 +01:00