[Openstack] problem in creating builder files in swift

pragya jain prag_2648 at yahoo.co.in
Sat Aug 17 10:10:30 UTC 2013


hello all!


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 at 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 at arun-Aspire-5742:~$ cd /etc/swift
arun at arun-Aspire-5742:/etc/swift$ su -
Password: 

root at arun-Aspire-5742:~# cd /etc/swift
root at 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 at 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 at 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 at arun-Aspire-5742:/etc/swift# 
root at 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))
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 584, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: dnspython>=1.10.0


I was doubtful that these results are not correct and there is some problem in creating builder files.

I install the python package dnspython using  'apt-get install' command
Then, I try to create builder file
But, again, I get the  same error

root at arun-Aspire-5742:~# cd /opt/swift/etc
root at arun-Aspire-5742:/opt/swift/etc# sudo apt-get install python-dnspython
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  python-dnspython
0 upgraded, 1 newly installed, 0 to remove and 590 not upgraded.
Need to get 99.2 kB of archives.
After this operation, 548 kB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu/ precise/main python-dnspython all 1.9.4-0ubuntu3 [99.2 kB]
Fetched 99.2
 kB in 3s (30.7 kB/s)                      
Selecting previously unselected package python-dnspython.
(Reading database ... 150833 files and directories currently installed.)
Unpacking python-dnspython (from .../python-dnspython_1.9.4-0ubuntu3_all.deb) ...
Setting up python-dnspython (1.9.4-0ubuntu3) ...

root at arun-Aspire-5742:/opt/swift/etc# cd /etc/swift
root at 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 2711, in <module>
    parse_requirements(__requires__), Environment()
  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 at arun-Aspire-5742:/etc/swift# 

please help me in this regard

---

thanks

Pragya Jain
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20130817/f38c089e/attachment.html>


More information about the Openstack mailing list