swift stat command does not work
I came to the very last step of the swift installation: http://docs.openstack.org/juno/instal...
and for some reason my output when I enter sudo swift stat
is:
Auth version 1.0 requires ST_AUTH, ST_USER, and ST_KEY environment variables to be set or overridden with
-A, -U, or -K.
Auth version 2.0 requires OS_AUTH_URL, OS_USERNAME, OS_PASSWORD, and OS_TENANT_NAME OS_TENANT_ID to be set or overridden with --os-auth-url,
--os-username, --os-password, --os-tenant-name or os-tenant-id. Note: adding "-V 2" is necessary for this.
When I try without sudo and enter swift stat
, I get:
HTTPConnectionPool(host='controller', port=8080): Max retries exceeded with url: /v1/AUTH_e64bbad28a41424cb09fddf939ede141 (Caused by <class 'socket.error'>: [Errno 111] Connection refused)
Instead of:
Account: AUTH_11b9758b7049476d9b48f7a91ea11493
Containers: 0
Objects: 0
Bytes: 0
Content-Type: text/plain; charset=utf-8
X-Timestamp: 1381434243.83760
X-Trans-Id: txdcdd594565214fb4a2d33-0052570383
X-Put-Timestamp: 1381434243.83760
You can see all my config files (account server, container server, object server, proxy server, rsyncd and swift) in the following link
My admin-openrc.sh contains the following env:
export OS_TENANT_NAME=service
export OS_USERNAME=swift
export OS_PASSWORD=klasika
export OS_AUTH_URL=http://controller:35357/v2.0
My hosts file contains:
127.0.0.1 localhost
127.0.1.1 objectstorage
192.168.2.212 controller
# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
When I hit the command sudo swift-init all status
I get:
container-updater running (12885 - /etc/swift/container-server.conf)
account-auditor running (12886 - /etc/swift/account-server.conf)
object-replicator running (12887 - /etc/swift/object-server.conf)
No proxy-server running
container-replicator running (12889 - /etc/swift/container-server.conf)
object-auditor running (12890 - /etc/swift/object-server.conf)
No object-expirer running
container-auditor running (12891 - /etc/swift/container-server.conf)
container-server running (12892 - /etc/swift/container-server.conf)
account-server running (12893 - /etc/swift/account-server.conf)
account-reaper running (12895 - /etc/swift/account-server.conf)
container-sync running (12897 - /etc/swift/container-server.conf)
account-replicator running (12898 - /etc/swift/account-server.conf)
object-updater running (12899 - /etc/swift/object-server.conf)
object-server running (12900 - /etc/swift/object-server.conf)
Can someone please tell me where I went wrong?