Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Hi, Thanks for the reply.. python-pip is already installed and still getting the error "sudo: pip: command not found".

I have created the remakerings script from that guide. I have added step 7 and looks like below (please correct if any wrong) and followed steps 1 to 9 and when I run 9th step(remakerings) and getting below error

script(please correct if i am wrong)

.bashrc

User specific aliases and functions

alias rm='rm -i' alias cp='cp -i' alias mv='mv -i'

Source global definitions

if [ -f /etc/bashrc ]; then . /etc/bashrc fi export SWIFT_TEST_CONFIG_FILE=/etc/swift/test.conf export PATH=${PATH}:~/bin

Error Invalid add value: r1z1-127.0.0.1:6010/sdb1 Invalid add value: r1z2-127.0.0.1:6020/sdb2 Invalid add value: r1z3-127.0.0.1:6030/sdb3 Invalid add value: r1z4-127.0.0.1:6040/sdb4 Traceback (most recent call last): File "/usr/bin/swift-ring-builder", line 500, in <module> last_balance = builder.get_balance() File "/usr/lib/python2.7/site-packages/swift/common/ring/builder.py", line 287, in get_balance sum(d['weight'] for d in self.devs if d is not None) ZeroDivisionError: integer division or modulo by zero Invalid add value: r1z1-127.0.0.1:6011/sdb1 Invalid add value: r1z2-127.0.0.1:6021/sdb2 Invalid add value: r1z3-127.0.0.1:6031/sdb3 Invalid add value: r1z4-127.0.0.1:6041/sdb4 Traceback (most recent call last): File "/usr/bin/swift-ring-builder", line 500, in <module> last_balance = builder.get_balance() File "/usr/lib/python2.7/site-packages/swift/common/ring/builder.py", line 287, in get_balance sum(d['weight'] for d in self.devs if d is not None) ZeroDivisionError: integer division or modulo by zero Invalid add value: r1z1-127.0.0.1:6012/sdb1 Invalid add value: r1z2-127.0.0.1:6022/sdb2 Invalid add value: r1z3-127.0.0.1:6032/sdb3 Invalid add value: r1z4-127.0.0.1:6042/sdb4 Traceback (most recent call last): File "/usr/bin/swift-ring-builder", line 500, in <module> last_balance = builder.get_balance() File "/usr/lib/python2.7/site-packages/swift/common/ring/builder.py", line 287, in get_balance sum(d['weight'] for d in self.devs if d is not None) ZeroDivisionError: integer division or modulo by zero