OpenStack SWIFT Error: Unable to retrieve container list
Hello everyone,
First, sorry for my English. I appeal to you because I have a problem with my setup OpenStack especially with Swift.
In fact, when I go to the dashboard, I can access the Container page the "Object Store". A message appears at the top right in a small red rectangle: "Error: Unable to retrieve container list."
Then when I click on "Create Container" in the top center of the page, a window apparrait. Then I have to give a name and click "Create Container". But when I click another message in a red rectange appears in the top right: "Error: Unable to create container."
Also, when I test directly from the command line, I get this result:
export ADMINPASS=test2013
swift -V 2.0 -A http://192.168.220.70:5000/v2.0 -U demo:admin -K $ADMINPASS stat
Account HEAD failed: http://192.168.220.62:8080/v1/AUTH_2d5764e12d6b4e49b0295590ceb2e6e8 401 Unauthorized
swift -V 2.0 -A http://192.168.220.70:5000/v2.0 -U admin:admin -K $ADMINPASS stat
Account HEAD failed: http://192.168.220.62:8080/v1/AUTH_cd3463b05d7545f2a455c017b7f0faca 401 Unauthorized
swift -V 2.0 -A http://192.168.220.70:5000/v2.0 -U service:swift -K $ADMINPASS stat
Account HEAD failed: http://192.168.220.62:8080/v1/AUTH_d402440235834bf29cd0a67341a714b3 401 Unauthorized
I think (I'm not sure) that this is a problem in the following configuration file: /etc/swift/proxy-server.conf What is the configuration of Keystone to put in if the problem is there?
Can you help me, please?
You will find below the configuration swift knowing that architecture is:
192.168.220.60 --> Nova Controller
192.168.220.61 --> Nova Compute
192.168.220.62 --> Object storage (Swift)
192.168.220.63 --> Block storage (Cinder)
192.168.220.64 --> Image (Glance)
192.168.220.70 --> Identity (Keystone)
192.168.220.72 --> Dashboard (Horizon sans le thème Ubuntu)
Thank you in advance, Matthew
- O B J E C T S T O R A G E S W I F T -
apt-get install python-software-properties
add-apt-repository ppa:swift-core/release
apt-get update
apt-get install curl gcc git-core memcached python-coverage python-dev python-nose python-setuptools python-simplejson python-xattr sqlite3 xfsprogs python-eventlet python-greenlet python-pastedeploy python-netifaces python-pip swift swift-proxy swift-account swift-container swift-object xinetd rsync
pip install mock
pip install dnspython
groupadd swift usermod -g swift swift chown -R swift:swift /etc/swift
fdisk /dev/sdb n p ENTRER ENTRER ENTRER p w
mkfs -t xfs -f -i size=2048 /dev/sdb1 echo "/dev/sdb1 /mnt/sdb1 xfs noatime,nodiratime,nobarrier,logbufs=8 0 0" >> /etc/fstab mkdir /mnt/sdb1 mount /mnt/sdb1 mkdir /mnt/sdb1/1 /mnt/sdb1/2 /mnt/sdb1/3 /mnt/sdb1/4 chown -R swift:swift /mnt/sdb1/* mkdir /srv for x in {1..4}; do ln -s /mnt/sdb1/$x /srv/$x; done
mkdir -p /etc/swift/object-server /etc/swift/container-server /etc/swift/account-server /srv/1/node/sdb1 /srv/2/node/sdb2 /srv/3/node/sdb3 /srv/4/node/sdb4 /var/run/swift
chown -R swift ...