swift container-sync not working

asked 2016-01-12 10:24:00 -0500

Harender Dudi gravatar image

Hi,

I'm are running two separate single node clusters of swift 2.7.1 with swauth 1.0.7. I'm are trying to set up container sync between both the clusters.

please help. please find below configuration used to create the clusters

  • Harender Dudi

Configuration of proxy-server.conf on both cluster:

[filter:container_sync] use = egg:swift#container_sync

[filter:swauth] use = egg:swauth#swauth set log_name = swauth super_admin_key = xyz default_swift_cluster = local#http://cluster1:8080/v1 * default_swift_cluster = local#http://cluster2:8080/v1 for cluster2

Configuration of container-sync-realms.conf on both cluster:

[realm1] key = xyz key2 = xxx cluster_cluster1 = http://cluster_ip1:8080/v1/ cluster_cluster2 = http://cluster_ip2:8080/v1/

Commands on cluster1:

swift -A http://cluster_ip1:8080/auth/v1.0 -U UK:UK -K xyz post -t '//realm1/cluster2/AUTH_4ac98fe2-39ee-4cba-b90d- 5c7355073d1c/Container2' -k 'xyz' Container1

Commands on cluster1:

swift -A http://cluster_ip2:8080/auth/v1.0 -U USA:USA -K xyz post -t '//realm1/cluster1/AUTH_11762cef-322d-47ed-a0b7-875f4f8d5cb5/Container1' -k 'xyz' Container2

metadata for Container1 on cluster1:

HTTP/1.1 200 OK X-Container-Sync-Key: xyz Content-Length: 0 X-Container-Object-Count: 0 X-Storage-Policy: Policy-0 Accept-Ranges: bytes X-Container-Sync-To: //realm1/cluster2/AUTH_4ac98fe2-39ee-4cba-b90d-5c7355073d1c/Container2 X-Container-Bytes-Used: 320088 X-Timestamp: 1452509951.58479 Content-Type: text/plain; charset=utf-8 X-Trans-Id: txd3b8e506b8ae4e3fa0f18-005694934d Date: Tue, 12 Jan 2016 05:46:53 GMT

metadata for Container2 on cluster2:

HTTP/1.1 200 OK X-Container-Sync-Key: xyz Content-Length: 0 X-Container-Object-Count: 0 X-Storage-Policy: Policy-0 Accept-Ranges: bytes X-Container-Sync-To: //realm1/cluster1/AUTH_11762cef-322d-47ed-a0b7-875f4f8d5cb5/Container1 X-Container-Bytes-Used: 20000 X-Timestamp: 1452510041.01792 Content-Type: text/plain; charset=utf-8 X-Trans-Id: txbbb31761edcb4f6195049-005694932d Date: Tue, 12 Jan 2016 05:46:21 GMT

Upload objetcs in Container1 [10 objects uploaded of 20 KB]:

swift -A http://cluster_ip1:8080/auth/v1.0 -U UK:UK -K xyz upload Container1 .

swift-init container-sync once

metadata for Container1 on cluster1 after upload:

HTTP/1.1 200 OK X-Container-Sync-Key: xyz Content-Length: 315 X-Container-Object-Count: 10 X-Storage-Policy: Policy-0 Accept-Ranges: bytes X-Container-Sync-To: //realm1/cluster2/AUTH_4ac98fe2-39ee-4cba-b90d-5c7355073d1c/Container2 X-Container-Bytes-Used: 320088 X-Timestamp: 1452509951.58479 Content-Type: text/plain; charset=utf-8 X-Trans-Id: txd3b8e506b8ae4e3fa0f18-005694934d Date: Tue, 12 Jan 2016 05:46:53 GMT

metadata for Container2 on cluster2 after upload:

HTTP/1.1 200 OK X-Container-Sync-Key: xyz Content-Length: 0 X-Container-Object-Count: 0 X-Storage-Policy: Policy-0 Accept-Ranges: bytes X-Container-Sync-To: //realm1/cluster1/AUTH_11762cef-322d-47ed-a0b7-875f4f8d5cb5/Container1 X-Container-Bytes-Used: 20000 X-Timestamp: 1452510041.01792 Content-Type: text/plain; charset=utf-8 X-Trans-Id: txbbb31761edcb4f6195049-005694932d Date: Tue, 12 Jan 2016 05:46:21 GMT

edit retag flag offensive close merge delete