Dedicated Replication Network not recieving replication.

asked 2015-06-30 10:14:46 -0600

latest_release gravatar image

updated 2015-06-30 10:15:40 -0600

Hey every body. Am trying to build a simple file storage application in django and swift. Everything works fine users can create accounts and even upload, share and stream there data, but I can't get the information to be replicated.

I have setup up two separate nodes all on ubuntu 14.04

  • Storage server on *192.168.1.5 (Physical Node) *
  • Replication network or server. 192.168.1.142 (Physical Node)
  • Proxy server runs on 192.168.1.115 (virtual box)

    I have followed several swift documentation on how to setup a dedicated replication network, but there seems to be no success. When I set up a replication on SAIO it works quite well that I can see the replication status of both the account, container and object. But if i change the replication interface to the replication network nothing seems to be happening.

Interesting is that I can see the creation of object folder only, on the replication network, but no data inside the object folder. but neither the account or the container shows up on the replication network. Here are my current configuration on both the replication network and the storage server.

  • Replication Network Account Server

    [DEFAULT] devices = /srv/1/node mount_check=false bind_ip=192.168.1.142 bind_port = 6052 user = swift log_facility = LOG_LOCAL2 recon_cache_path = /var/cache/swift

    [pipeline:main] pipeline = recon account-server

    [app:account-server] use = egg:swift#account set log_name = account-server set log_facility = LOG_LOCAL2 set log_level = INFO set log_requests = true set log_address = /dev/log replication_server = True

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

    [account-replicator] vm_test_mode = yes

    [account-reaper]

Storage server account

[DEFAULT]
devices = /srv/1/node
mount_check=false
bind_ip=192.168.1.5
bind_port = 6012
user = swift
log_facility = LOG_LOCAL2

[pipeline:main]
pipeline = account-server

[app:account-server]
use = egg:swift#account
set log_name = account-server
set log_facility = LOG_LOCAL2
set log_level = INFO
set log_requests = true
set log_address = /dev/log

[account-reaper]

* The above is the same for both container and account*

Storage rings

# Object Ring
swift-ring-builder object.builder create 18 3 1
swift-ring-builder object.builder add z1-192.168.1.5:6010R192.168.1.142:6050/sdc1 1
swift-ring-builder object.builder add z2-192.168.1.5:6020R192.168.1.142:6060/sdc2 1
swift-ring-builder object.builder add z3-192.168.1.5:6030R192.168.1.142:6070/sdc3 1
swift-ring-builder object.builder add z4-192.168.1.5:6040R192.168.1.142:6080/sdc4 1
swift-ring-builder object.builder rebalance

# Container Ring
swift-ring-builder container.builder create 18 3 1
swift-ring-builder container.builder add z1-192.168.1.5:6011R192.168.1.142:6051/sdc1 1
swift-ring-builder container.builder add z2-192.168.1.5:6021R192.168.1.142:6061/sdc2 1
swift-ring-builder container.builder add z3-192.168.1.5:6031R192.168.1.142:6071/sdc3 1
swift-ring-builder container.builder add z4-192.168.1.5:6041R192.168.1.142:6081/sdc4 1
swift-ring-builder container.builder rebalance

#ACCOUNT RING
swift-ring-builder account.builder create 18 3 1
swift-ring-builder account.builder add z1-192.168.1.5:6012R192.168.1.142:6052/sdc1 1
swift-ring-builder account.builder add z2-192.168.1.5:6022R192.168 ...
(more)
edit retag flag offensive close merge delete