Ask Your Question
0

problem in creating builder files in swift

asked 2013-08-17 04:53:52 -0600

pragya jain gravatar image

updated 2013-08-26 00:11:27 -0600

fifieldt gravatar image

I am installing and configuring swift using the commands given in the book "software defined storage with openstack swift" by Joe Arnold. I am working on Ubuntu 12.04 I had downloaded swift, install it, configure files, prepare the drives, mount and reboot Then, I again give 'mount' command and following results are recieved.

arun@arun-Aspire-5742:~$ mount /dev/sda4 on / type ext4 (rw,errors=remount-ro) proc on /proc type proc (rw,noexec,nosuid,nodev) sysfs on /sys type sysfs (rw,noexec,nosuid,nodev) none on /sys/fs/fuse/connections type fusectl (rw) none on /sys/kernel/debug type debugfs (rw) none on /sys/kernel/security type securityfs (rw) udev on /dev type devtmpfs (rw,mode=0755) devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620) tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755) none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880) none on /run/shm type tmpfs (rw,nosuid,nodev) gvfs-fuse-daemon on /home/arun/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=arun)

Then, I proceed further for creating the builder files

arun@arun-Aspire-5742:~$ cd /etc/swift arun@arun-Aspire-5742:/etc/swift$ su - Password: root@arun-Aspire-5742:~# cd /etc/swift root@arun-Aspire-5742:/etc/swift# sudo swift-ring-builder account.builder create 18 3 24 Traceback (most recent call last): File "/usr/local/bin/swift-ring-builder", line 4, in <module> import pkg_resources File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2707, in <module> working_set.require(__requires__) File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 686, in require needed = self.resolve(parse_requirements(requirements)) File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 584, in resolve raise DistributionNotFound(req) pkg_resources.DistributionNotFound: dnspython>=1.10.0 root@arun-Aspire-5742:/etc/swift# sudo swift-ring-builder container.builder create 18 3 24 Traceback (most recent call last): File "/usr/local/bin/swift-ring-builder", line 4, in <module> import pkg_resources File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2707, in <module> working_set.require(__requires__) File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 686, in require needed = self.resolve(parse_requirements(requirements)) File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 584, in resolve raise DistributionNotFound(req) pkg_resources.DistributionNotFound: dnspython>=1.10.0 root@arun-Aspire-5742:/etc/swift# sudo swift-ring-builder object.builder create 18 3 24 Traceback (most recent call last): File "/usr/local/bin/swift-ring-builder", line 4, in <module> import pkg_resources File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2707, in <module> working_set.require(__requires__) File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 686, in require needed = self.resolve(parse_requirements(requirements)) File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 584, in resolve raise DistributionNotFound(req) pkg_resources.DistributionNotFound: dnspython>=1.10.0 root@arun-Aspire-5742:/etc/swift# root@arun-Aspire-5742:/etc/swift# swift-ring-builder Traceback (most recent call last): File "/usr/local/bin/swift-ring-builder", line 4, in <module> import pkg_resources File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2707, in <module> working_set.require(__requires__) File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 686, in require needed = self.resolve(parse_requirements(requirements ... (more)

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2013-08-17 11:39:39 -0600

clayg gravatar image

Looks like the ubuntu package for dnspython 1.9.4, and the Swift package you have is requiring dnspython 1.10.0

Try to install the newer dnspython with pip:

pip install "dnspython==1.10.0"
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2013-08-17 04:53:52 -0600

Seen: 422 times

Last updated: Aug 17 '13