nbanda3's profile - activity

2015-11-25 11:13:51 -0600 received badge  Famous Question (source)
2015-11-25 11:13:51 -0600 received badge  Notable Question (source)
2015-11-25 11:13:51 -0600 received badge  Popular Question (source)
2015-07-31 09:12:37 -0600 received badge  Famous Question (source)
2014-09-11 04:10:25 -0600 received badge  Student (source)
2014-07-30 04:14:34 -0600 received badge  Popular Question (source)
2014-07-30 04:14:34 -0600 received badge  Notable Question (source)
2013-09-23 18:50:02 -0600 answered a question Error when installing Swift all in one in virtual machine-fedora

pip install "xattr==0.4"

2013-09-18 20:24:41 -0600 asked a question Error when installing Swift all in one in virtual machine-fedora

when i run the command, iam getting the error. Please help

TypeError: dist must be a Distribution instance

[swiftdemo@localhost ~]$ git clone https://github.com/openstack/swift.git Cloning into swift... remote: Counting objects: 23571, done. remote: Compressing objects: 100% (8103/8103), done. remote: Total 23571 (delta 17616), reused 20731 (delta 15196) Receiving objects: 100% (23571/23571), 11.69 MiB | 2.53 MiB/s, done. Resolving deltas: 100% (17616/17616), done. [swiftdemo@localhost ~]$ cd ~/swift; [swiftdemo@localhost swift]$ sudo python setup.py develop running develop running egg_info creating swift.egg-info writing requirements to swift.egg-info/requires.txt writing swift.egg-info/PKG-INFO writing top-level names to swift.egg-info/top_level.txt writing dependency_links to swift.egg-info/dependency_links.txt writing entry points to swift.egg-info/entry_points.txt [pbr] Processing SOURCES.txt writing manifest file 'swift.egg-info/SOURCES.txt' [pbr] In git context, generating filelist from git warning: no files found matching 'ChangeLog' warning: no previously-included files matching '*.pyc' found anywhere in distribution reading manifest template 'MANIFEST.in' writing manifest file 'swift.egg-info/SOURCES.txt' running build_ext Creating /usr/lib/python2.7/site-packages/swift.egg-link (link to .) Adding swift 1.9.2.154.ga9af8dd to easy-install.pth file Installing swift-account-audit script to /usr/bin Installing swift-account-auditor script to /usr/bin Installing swift-account-reaper script to /usr/bin Installing swift-account-replicator script to /usr/bin Installing swift-account-server script to /usr/bin Installing swift-bench script to /usr/bin Installing swift-bench-client script to /usr/bin Installing swift-config script to /usr/bin Installing swift-container-auditor script to /usr/bin Installing swift-container-replicator script to /usr/bin Installing swift-container-server script to /usr/bin Installing swift-container-sync script to /usr/bin Installing swift-container-updater script to /usr/bin Installing swift-dispersion-populate script to /usr/bin Installing swift-dispersion-report script to /usr/bin Installing swift-drive-audit script to /usr/bin Installing swift-form-signature script to /usr/bin Installing swift-get-nodes script to /usr/bin Installing swift-init script to /usr/bin Installing swift-object-auditor script to /usr/bin Installing swift-object-expirer script to /usr/bin Installing swift-object-info script to /usr/bin Installing swift-object-replicator script to /usr/bin Installing swift-object-server script to /usr/bin Installing swift-object-updater script to /usr/bin Installing swift-oldies script to /usr/bin Installing swift-orphans script to /usr/bin Installing swift-proxy-server script to /usr/bin Installing swift-recon script to /usr/bin Installing swift-recon-cron script to /usr/bin Installing swift-ring-builder script to /usr/bin Installing swift-temp-url script to /usr/bin

Installed /home/swiftdemo/swift Processing dependencies for swift==1.9.2.154.ga9af8dd Searching for xattr>=0.4 Reading http://pypi.python.org/simple/xattr/ Best match: xattr 0.7.2 Downloading https://pypi.python.org/packages/source/x/xattr/xattr-0.7.2.tar.gz#md5=7a57fb9b6cb8bb4cbe28cdf500b86c8e (https://pypi.python.org/packages/sour...) Processing xattr-0.7.2.tar.gz Running xattr-0.7.2/setup.py -q bdist_egg --dist-dir /tmp/easy_install-AOg_8C/xattr-0.7.2/egg-dist-tmp-ASg7sJ /usr/lib64/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'entry_points' warnings.warn(msg) /usr/lib64/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'zip_safe' warnings.warn(msg) /usr/lib64/python2.7/distutils/dist.py:267 ... (more)

2013-09-18 20:21:51 -0600 answered a question Unable to install swift All in One

Thanks clayg, that solved my question.

2013-09-16 22:10:28 -0600 answered a question Unable to install swift All in One

Hi,

It seems i have fixed the pip. After this below command sucessfully got executed at user level

sudo pip install -r swift/test-requirements.txt

But still for swift version i am getting below error

[swiftproject@localhost root]$ swift --version Command not found. Install package 'swift' to provide command 'swift'? [N/y]

[swiftproject@localhost root]$ python -c "import swift;print swift.__version__" Traceback (most recent call last): File "<string>", line 1, in <module> AttributeError: 'module' object has no attribute '__version__' [swiftproject@localhost root]$ which pip /usr/bin/pip

2013-09-16 21:50:29 -0600 answered a question Unable to install swift All in One

Hi I read those documents and ran the swift development code as user only. Please find the steps

Installing dependencies - executed as root Using a loopback device for storage-executed as root Setting up rsync -executed as root Starting memcached -executed as root Getting the code -executed as user Do the following commands as root, but verify that Swift has access to resulting configuration files.(how to check this) Configuring each node-executed as root Setting up scripts for running Swift-executed as root

May be pip is creating the problem. I will check that. Can you please suggest if their is any mistake in the above execution levels?

2013-09-16 21:21:46 -0600 answered a question Unable to install swift All in One

If I remove r1 in remakerings scripts got executed.

Then If i run

~/swift/.unittests (error is below) startmain (error Unable to locate config file for main-server. /etc/swift/main-server.conf does not exist?)

[root@localhost ~]# ~/swift/.unittests

E

ERROR: Failure: ImportError (No module named pbr.version)

Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/nose/loader.py", line 382, in loadTestsFromName addr.filename, addr.module) File "/usr/lib/python2.7/site-packages/nose/importer.py", line 39, in importFromPath return self.importFromDir(dir_path, fqname) File "/usr/lib/python2.7/site-packages/nose/importer.py", line 86, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File "/root/swift/test/__init__.py", line 37, in <module> import swift File "/root/swift/swift/__init__.py", line 19, in <module> import pbr.version ImportError: No module named pbr.version

Name Stmts Exec Cover Missing

/root/swift/swift/__init__ 10 3 30% 22-32 /root/swift/test/__init__ 33 5 15% 23-34, 38-77 /usr/lib/python2.7/site-packages/nose/case 195 50 25% 5-26, 29, 34, 43, 46, 49, 52-55, 60-61, 65, 70-71, 75-97, 104-114, 133-137, 141, 149, 152, 155, 173, 177-383 /usr/lib/python2.7/site-packages/nose/core 154 22 14% 3-32, 35, 40, 46, 52, 57, 64-170, 180, 184, 195, 197-322 /usr/lib/python2.7/site-packages/nose/failure 22 9 40% 1-20, 28, 32-35, 39 /usr/lib/python2.7/site-packages/nose/importer 92 44 47% 7-21, 23, 26, 35, 41, 52, 66, 77-84, 89, 91-123, 132, 146-147, 151-154 /usr/lib/python2.7/site-packages/nose/loader 331 37 11% 9-55, 76, 83-84, 94-326, 341, 354-365, 371, 387, 392-433, 441, 447-579 /usr/lib/python2.7/site-packages/nose/plugins/capture 53 14 26% 12-54, 60-65, 70, 80-92, 97, 101-107, 111 /usr/lib/python2.7/site-packages/nose/plugins/cover 164 3 1% 13-150, 157-291 /usr/lib/python2.7/site-packages/nose/plugins/errorclass 65 10 15% 95-139, 142, 145-147, 149, 156-215 /usr/lib/python2.7/site-packages/nose/plugins/logcapture 120 15 12% 18-82, 84-167, 171-177, 191-204, 209, 214-219, 226-229, 233-234 /usr/lib/python2.7/site-packages/nose/plugins/manager 261 39 14% 47-81, 84-85, 92, 95, 103-104, 107, 124, 140, 144-157, 163-165, 173-177, 181-239, 247-448 /usr/lib/python2.7/site-packages/nose/proxy 101 40 39% 18-29, 31-42, 44, 49, 61, 63, 67-77, 79, 85-88, 99, 103-105, 109-111, 116, 124-154, 159-162, 168-174 /usr/lib/python2.7/site-packages/nose/result 132 33 25% 11-36, 42, 46-54, 62-64, 70-74, 80, 84-86, 91-96, 100, 107, 112-154, 161-181, 185, 189-199 /usr/lib/python2.7/site-packages/nose/selector 134 22 16% 9-34, 36, 39, 47-221, 223, 230-231, 243, 246-250 /usr/lib/python2.7/site-packages/nose/suite 392 156 39% 10-49, 54-66, 70-77, 81-92, 98-101, 105, 109-110, 115-145, 151, 159-171, 175, 178-196, 206, 209-214, 218-219, 228-267, 271-272, 274-275, 278, 293-295, 299, 304, 316-321, 324-327, 331-332, 342-343, 352-354, 358, 370, 375-392, 394, 397, 408, 424-425, 428, 436, 441, 444-447, 453, 455, 461, 464-465, 470, 485-535, 538-539, 546, 554-602

/usr/lib/python2.7/site-packages/nose/util 352 62 17% 3-139, 150-176, 184-193, 216, 220-255, 287, 290, 304-319 ...

(more)
2013-09-16 21:13:44 -0600 answered a question Unable to install swift All in One

Please see the output.. do I need to install swift from below ? My question is, if I follow the swift all in guide, every dependency must be installed right?

[root@localhost ~]# swift -version Command not found. Install package 'swift' to provide command 'swift'? [N/y]

[root@localhost ~]# python -c "import swift;print swift._version_" Traceback (most recent call last): File "<string>", line 1, in <module> AttributeError: 'module' object has no attribute '_version_'

[root@localhost ~]# which pip /usr/bin/which: no pip in (/usr/lib64/qt-3.3/bin:/usr/lib64/ccache:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/root/bin)

[root@localhost ~]# sudo -i [root@localhost ~]# which pip /usr/bin/which: no pip in (/usr/lib64/ccache:/usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/root/bin)

2013-09-16 20:46:40 -0600 answered a question Unable to install swift All in One

In fact i have followed all the steps in that document but getting errors when i run remakerings. I have created a user with name swiftproject and groupname: swiftproject and added this entry in sudoers list.

All the commands were executed at root level

2013-09-16 20:20:17 -0600 answered a question Unable to install swift All in One

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

2013-09-16 19:09:24 -0600 asked a question Unable to install swift All in One

Hi, I am using VM Player and installed Fedora 14. Followed this link to install Swift All in one http://docs.openstack.org/developer/swift/development_saio.html (http://docs.openstack.org/developer/s...) I am getting below errors

Command: yum install python-coverage python-devel python-nose python-simplejson python-xattr python-eventlet python-greenlet python-pastedeploy python-netifaces python-pip python-dnspython python-mock

Error: No package python-pastedeploy available. No package python-dnspython available. No package python-mock available.

Command: sudo pip install -r swift/test-requirements.txt Error: sudo: pip: command not found

Command: remakerings script 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

Can anyone help me out?