LightSync patch on OpenStack Swift
This patch requires OpenStack Swift Icehouse installed and should be applied on all storage nodes.-
This can be done by running Python, then executing:
>>> import swift
>>> swift.__path__
On our cluster the output is ['/usr/lib/python2.7/dist-packages/swift'],
Which means the swift package location is /usr/lib/python2.7/dist-packages/swift - This give swift-package-location/obj. in our cluster will be /usr/lib/python2.7/dist-packages/swift/obj
- Copy patch files(replicator.py and diskfile.py) to the extended path(/usr/lib/python2.7/dist-packages/swift/obj), replacing the existing ones.
- swift-init restart object-server object-replicator