Ask Your Question

baran's profile - activity

2015-08-07 09:51:09 -0600 received badge  Famous Question (source)
2015-08-07 09:51:09 -0600 received badge  Notable Question (source)
2015-02-19 04:05:14 -0600 marked best answer Problem in Setting up scripts for running Swift

hello my friends

I do:

  1. mkdir ~/bin
  2. Create ~/bin/resetswift By nano ~/bin/resetswift

I want:

(substitute /dev/sdb1 with /srv/swift-disk.)

(If you did not set up rsyslog for individual logging, remove the find /var/log/swift... line):

!/bin/bash

swift-init all stop
find /var/log/swift -type f -exec rm -f {} \;
sudo umount /mnt/sdb1
sudo mkfs.xfs -f /dev/sdb1
sudo mount /mnt/sdb1
sudo mkdir /mnt/sdb1/1 /mnt/sdb1/2 /mnt/sdb1/3 /mnt/sdb1/4
sudo chown <your-user-name>:<your-group-name> /mnt/sdb1/*
mkdir -p /srv/1/node/sdb1 /srv/2/node/sdb2 /srv/3/node/sdb3 /srv/4/node/sdb4
sudo rm -f /var/log/debug /var/log/messages /var/log/rsyncd.log /var/log/syslog
find /var/cache/swift* -type f -name *.recon -exec rm -f {} \;
sudo service rsyslog restart sudo service memcached restart </your-group-name></your-user-name>

but:

root@......:~# !/bin/bash

Bash:!/bin/bash: event not found.?????

why???

Perhaps Should write These in the Nano environment ???

thanks

2014-03-07 07:38:42 -0600 received badge  Famous Question (source)
2014-02-17 18:30:31 -0600 received badge  Famous Question (source)
2014-01-23 18:43:03 -0600 marked best answer how store and exit from vi enviroment

hi my friends

please answer the question:

in command : vi /etc/swift/swift.conf,

i enter:

[swift-hash]

random unique string that can never change (DO NOT LOSE)

swift_hash_path_suffix = fLIbertYgibbitZ.

now i want store and exit from vi enviroment. how can i perform?

thanks

2014-01-23 18:43:02 -0600 marked best answer problem with install swift

hello.

there are three question: A, B, C

please answer me:

For install swift on vm:

First: Installing dependencies:

apt-get update

apt-get install curl gcc memcached rsync sqlite3 xfsprogs git-core python-setuptools

apt-get install python-coverage python-dev python-nose python-simplejson python-xattr python-eventlet python-greenlet python-pastedeploy python-netifaces python-pip python-dnspython python-mock

Next, choose either Using a partition for storage or Using a loopback device for storage: 1.Using a partition for storage: If you are going to use a separate partition for Swift data, be sure to add another device when creating the VM, and follow these instructions. 2.Using a loopback device for storage: If you want to use a loopback device instead of another partition, follow these instructions.

A) Which is better?????????????1 or 2????????????????? 1.mkdir /srv 2.truncate -s 1GB /srv/swift-disk (modify size to make a larger or smaller partition) 3.mkfs.xfs /srv/swift-disk 4.Edit /etc/fstab and add /srv/swift-disk /mnt/sdb1 xfs loop,noatime,nodiratime,nobarrier,logbufs=8 0 0

B) How log and edit and add and store and exit????????????? Vi /etc/fstab????????????????????????? 1.mkdir /mnt/sdb1 2.mount /mnt/sdb1

error: mount can't find in /etc/fstab or /etc/mtab 1.mkdir /mnt/sdb1/1 /mnt/sdb1/2 /mnt/sdb1/3 /mnt/sdb1/4 2.chown <your-user-name>:<your-group-name> /mnt/sdb1/*

C) what are your-user-name and your-group-name??????????????????????????????

thanks

2014-01-23 18:43:01 -0600 marked best answer How do I get started with installing OpenStack Swift?

hello my friends

I want:

  1. install Swift
  2. testing health connectivity Swift the keystone
  3. Store and retrieve files in a swift

I do:

apt-get install python-software-properties

add-apt-repository ppa:swift-core/release

apt-get update

apt-get install swift openssh-server

now What i do for 3 case above ??

thanks

2014-01-23 18:42:56 -0600 marked best answer time before and after execute command keystone token-get

Hello my friends

I want to write scripts that to measure the time before and after execute command keystone token-get

difference between the two would be my answer

how??

thanks

2013-11-28 05:24:31 -0600 received badge  Famous Question (source)
2013-11-17 18:51:21 -0600 received badge  Famous Question (source)
2013-11-12 15:48:59 -0600 received badge  Notable Question (source)
2013-10-18 08:08:06 -0600 received badge  Nice Question (source)
2013-09-26 12:11:08 -0600 received badge  Notable Question (source)
2013-09-24 10:58:32 -0600 received badge  Famous Question (source)
2013-09-23 19:01:21 -0600 received badge  Famous Question (source)
2013-09-23 14:11:45 -0600 received badge  Notable Question (source)
2013-09-22 13:17:56 -0600 received badge  Notable Question (source)
2013-08-22 23:27:48 -0600 received badge  Famous Question (source)
2013-08-22 01:58:01 -0600 answered a question how to fix ERROR 1007 (HY000):can't create database 'keystone'; database exists

hello.

first:

DROP DATABASE 'keystone';

then:

CREATE DATABASE 'keystone';

2013-08-21 05:33:31 -0600 commented answer No handlers could be found for logger "swiftclient"

Not. Here is a typographical error.

2013-08-21 03:58:37 -0600 received badge  Notable Question (source)
2013-08-21 02:36:44 -0600 answered a question No handlers could be found for logger "swiftclient"

I was wrong in my endpoint (// in publicurl):

Before correction:

keystone endpoint-create \
--region RegionOne \
--publicurl=http: 127.0.0.1:5000/v2.0 \
--internalurl=http:// 127.0.0.1:5000/v2.0 \
--adminurl=http:// 127.0.0.1:35357/v2.0

keystone endpoint-create \
--region RegionOne \
--publicurl 'http: 127.0.0.1:8888/v1/AUTH_%(tenant_id)s' \
--internalurl 'http:// 127.0.0.1:8888/v1/AUTH_%(tenant_id)s' \
--adminurl 'http:// 127.0.0.1:8888/v1'

root@baran:/etc# swift -V 2.0 -A http://127.0.0.1:5000/v2.0 -U service:swift -K $ADMINPASS stat

error:
No handlers could be found for logger "swiftclient" [errno -2] name or service not know

root@baran:/etc# swift -V 2.0 -A http://127.0.0.1:5000/v2.0 -U service:swift -K swiftadmin stat

error:
No handlers could be found for logger "swiftclient"
[errno -3] temporary failure in name resolution

After correction:

keystone endpoint-create \
--region RegionOne \
--publicurl=http: //127.0.0.1:5000/v2.0 \
--internalurl=http:// 127.0.0.1:5000/v2.0 \
--adminurl=http:// 127.0.0.1:35357/v2.0

keystone endpoint-create \
--region RegionOne \
--publicurl 'http: //127.0.0.1:8888/v1/AUTH_%(tenant_id)s' \
--internalurl 'http:// 127.0.0.1:8888/v1/AUTH_%(tenant_id)s' \
--adminurl 'http:// 127.0.0.1:8888/v1'

After correcting this error was:

root@baran:/etc# swift -V 2.0 -A http://127.0.0.1:5000/v2.0 -U service:swift -K $ADMINPASS stat
and
root@baran:/etc# swift -V 2.0 -A http://127.0.0.1:5000/v2.0 -U service:swift -K swiftadmin stat

error:
No handlers could be found for logger "swiftclient"
[errno 111] connection refused

2013-08-20 23:14:49 -0600 commented answer No handlers could be found for logger "swiftclient"

export OS_USERNAME=swift export OS_PASSWORD=swiftpass export OS_TENANT_NAME=service export OS_AUTH_URL=http://127.0.0.1:35357/v2.0

2013-08-20 22:35:15 -0600 received badge  Popular Question (source)
2013-08-20 10:01:05 -0600 asked a question No handlers could be found for logger "swiftclient"

I have a running instance of Keystone and Swift:

root@baran:/etc# keystone catalog  
Service: object-store

|-------------+-----------------------------------------------------------------|
| Property    | Value                                                           |
|-------------+-----------------------------------------------------------------|
| adminURL    | http://127.0.0.1:8888/v1                                        |
| internalURL | http:// 127.0.0.1:8888/v1/AUTH_ab6f8b28350e4669899d7690bf0b468e  |
| publicURL   | http:// 127.0.0.1:8888/v1/AUTH_ab6f8b28350e4669899d7690bf0b468e  |
| region      | RegionOne                                                       |
|-------------+-----------------------------------------------------------------|


 Service: identity

 |-------------+-----------------------------|
 | Property    | Value                       |
 |-------------+-----------------------------|
 | adminURL    | http://127.0.0.1:35357/v2.0 |
 | internalURL | http:// 127.0.0.1:5000/v2.0  |
 | publicURL   | http:// 127.0.0.1:5000/v2.0  |
 | region      | RegionOne                   |
 |-------------+-----------------------------|

but:

root@baran:/etc# swift -V 2.0 -A http://127.0.0.1:5000/v2.0 -U service:swift -K $ADMINPASS stat

No handlers could be found for logger "swiftclient"   
[errno 111] connection refused

root@baran:/etc# swift -V 2.0 -A http://127.0.0.1:5000/v2.0 -U  service:swift -K swiftadmin stat

No handlers could be found for logger "swiftclient"      
 [errno 111] connection refused

I was wrong in my endpoint (// in publicurl):

Before correction:

keystone endpoint-create \   
--region RegionOne \   
--publicurl=http: 127.0.0.1:5000/v2.0 \   
--internalurl=http:// 127.0.0.1:5000/v2.0 \   
--adminurl=http:// 127.0.0.1:35357/v2.0    

keystone endpoint-create \    
--region RegionOne \    
--publicurl 'http: 127.0.0.1:8888/v1/AUTH_%(tenant_id)s' \    
--internalurl 'http:// 127.0.0.1:8888/v1/AUTH_%(tenant_id)s' \    
--adminurl 'http:// 127.0.0.1:8888/v1'    

root@baran:/etc# swift -V 2.0 -A http://127.0.0.1:5000/v2.0 -U service:swift -K $ADMINPASS stat

error:

No handlers could be found for logger "swiftclient"   
 [errno -2] name or service not know

root@baran:/etc# swift -V 2.0 -A http://127.0.0.1:5000/v2.0 -U service:swift -K swiftadmin stat

error:

No handlers could be found for logger "swiftclient"     
[errno -3] temporary failure in name resolution

After correction:

keystone endpoint-create \ 
--region RegionOne \ 
--publicurl=http: //127.0.0.1:5000/v2.0 \ 
--internalurl=http:// 127.0.0.1:5000/v2.0 \ 
--adminurl=http:// 127.0.0.1:35357/v2.0 

keystone endpoint-create \ 
--region RegionOne \ 
--publicurl 'http: //127.0.0.1:8888/v1/AUTH_%(tenant_id)s' \ 
--internalurl 'http:// 127.0.0.1:8888/v1/AUTH_%(tenant_id)s' \ 
--adminurl 'http:// 127.0.0.1:8888/v1'

After correcting this error was:

root@baran:/etc# swift -V 2.0 -A http://127.0.0.1:5000/v2.0 -U service:swift -K $ADMINPASS stat 
and 
root@baran:/etc# swift -V 2.0 -A http://127.0.0.1:5000/v2.0 -U service:swift -K swiftadmin stat

error:

No handlers could be found for logger "swiftclient"   
[errno 111] connection refused

Could anyone help me with this? Thanks.

2013-08-19 10:35:59 -0600 received badge  Popular Question (source)
2013-08-18 10:15:48 -0600 commented question swift admin password gives unexpected argument error.why??

ok Done. but What is Benefit?while not answer

2013-08-18 08:56:32 -0600 commented question swift admin password gives unexpected argument error.why??

excuse me swift -A http://127.0.0.1:5000/v2.0/ -U ubuntu:admin -K openstack stat ERROR: no handlers could be found for logger "swiftclient" auth GET failed: http://127.0.0.1:5000/v2.0/ 200 ok no: swift -v –V 2.0 -A http://127.0.0.1:5000/v2.0/ -U ubuntu:admin -K openstack stat

2013-08-18 04:24:31 -0600 commented question error in auth swift with keystone

So please answer. At the same https://ask.openstack.org/en/question/4163/swift-admin-password-gives-unexpected-argument-errorwhy/ Thanks

2013-08-17 10:26:27 -0600 asked a question error in auth swift with keystone

hello

i do Keystone settings according to the following: http://www.canonical.com/sites/www.canonical.com/files/active/Ubuntu_Keystone_WP_WEB_AW.pdf

and swift settings according to the following:
http://docs.openstack.org/developer/swift/development_saio.html
and
https://blog.hpcloud.com/road-essex-part-2-keystone-and-swift-keystone-authentication

but
swift -v –V 2.0 -A http://127.0.0.1:5000/v2.0/ -U ubuntu:admin -K openstack stat
error:

traceback (most recent call last);
file "/usr/local/bin/swift", line 7, in <module>
execfile(--file--)
file "/root/python-swiftclient/bin/swift", line 1322, in <module>
globals() ['st_%s' % args[0]] (parser, argv[1:], thread_manager) file "/root/python-swiftclient/bin/swift", line 578, in st_stat
headers = conn.head_account()
file "/root/python-swiftclient/swiftclient/client.py", line 1131, in head_account
return self._retry(none, head_account)
file "/root/python-swiftclient/swiftclient/client.py", line 1088, in _retryself.url, self.token = self.get_auth()
file "/root/python-swiftclient/swiftclient/client.py", line 1064, in get_auth insecure=self.insecure
file "/root/python-swiftclient/swiftclient/client.py", line 220, in get_keystoneclient_2_0
auth_url=auth_url, insecure=insecure
file "/usr/lib/python2.7/dist-packages/keystoneclient/v2_0/client.py",line 66, in --init--
super(client, self). --init(endpoint=endpoint, **kwargs)
typeerror: --init--() got an unexpected keyword argumant 'insecure'</module></module>

AND:
swift -v –V 2.0 -A http://127.0.0.1:5000/v2.0/ -U ubuntu:admin -K openstack stat

ERROR:
no handlers could be found for logger "swiftclient"
auth GET failed: http://127.0.0.1:5000/v2.0/ 200 ok

WHY???????????

2013-08-16 12:25:49 -0600 received badge  Famous Question (source)
2013-08-16 06:55:19 -0600 edited question swift admin password gives unexpected argument error.why??

Hello all.

swift -v -V 2.0 -A http://127.0.0.1:5000/v2.0/ -U service:swiftadmin -K swiftadminpasswd stat

see the following error:

traceback (most recent call last):  
file "usr/local/bin/swift", line 7, in <module>   
execfile(--file--) 
file "/root/python-swiftclient/bin/swift", line 578, in st_stat  
……  
……  
……  
…..  
Typeerror: --init—() got an unexpected keyword argument 'insecur

/etc/swift/proxy-server.conf

[DEFAULT]  
bind_port = 8080   
user = root 
workers = 1  
log_facility = LOG_LOCAL1  
eventlet_debug = true  

[pipeline:main]  
pipeline = catch_errors healthcheck cache authtoken swiftauth proxy-server  

[app:proxy-server]  
use = egg:swift#proxy  
allow_account_management = true  
account_autocreate = true  
set log_name = swift-proxy-server  
set log_facility = LOG_LOCAL0  
set log_level = DEBUG  
set access_log_name = swift-proxy-server  
set access_log_facility = LOG_LOCAL0  
set access_log_level = DEBUG
set log_headers = True  

[filter:tempauth]  
use = egg:swift#tempauth  
user_admin_admin = admin .admin .reseller_admin   
user_test_tester = testing .admin  
user_test2_tester2 = testing2 .admin 
user_test_tester3 = testing3  

[filter:healthcheck]   
use = egg:swift#healthcheck 

[filter:catch_errors]  
use = egg:swift#catch_errors  

[filter:cache]  
use = egg:swift#memcache  
set log_name = cache  

[filter:swiftauth]  
paste.filter_factory = keystone.middleware.swift_auth:filter_factory  
operator_roles = admin, SwiftOperator  
is_admin = true 

[filter:authtoken]
paste.filter_factory = keystone.middleware.auth_token:filter_factory  
service_protocol = http  
service_host = 127.0.0.1  
service_port = 5000  
auth_protocol = http  
auth_host = 127.0.0.1  
auth_port = 35357  
admin_tenant_name = service  
admin_user = swiftadmin
admin_password = swiftadminpasswd  
delay_auth_decision = 0  


/etc/swift/swift.conf:  

[swift-hash] 
random unique strings that can never change (DO NOT LOSE) 
swift_hash_path_prefix = changeme 
swift_hash_path_suffix = changeme  


swift -A http://127.0.0.1:8080/auth/v1.0 -U test:tester -K testing stat

see the following output:

Account: AUTH_test    
Containers: 0
Objects: 0   
Bytes: 0  
Accept-Ranges: text/plain; charset=utf-8 
x-timestamp: 1346789456.26132  
x-put-timestamp: 1346789456.26132

Of course
i do Keystone settings according to the following: http://www.canonical.com/sites/www.canonical.com/files/active/Ubuntu_Keystone_WP_WEB_AW.pdf

and swift settings according to the following:
http://docs.openstack.org/developer/swift/development_saio.html
and
https://blog.hpcloud.com/road-essex-part-2-keystone-and-swift-keystone-authentication

but:
swift -v -V 2.0 -A http://127.0.0.1:5000/v2.0/ -U service:swiftadmin -K swiftadminpasswd stat

see the following error:

  traceback (most recent call last);   
  file "/usr/local/bin/swift", line 7, in <module>   
  execfile(--file--)   
file "/root/python-swiftclient/bin/swift", line 1322, in <module>   
globals() ['st_%s' % args[0]] (parser, argv[1:], thread_manager) file "/root/python-swiftclient/bin/swift", line 578, in st_stat   
headers = conn.head_account()   
file "/root/python-swiftclient/swiftclient/client.py", line 1131, in head_account   
return self._retry(none, head_account)   
file "/root/python-swiftclient/swiftclient/client.py", line 1088, in _retryself.url, self.token = self.get_auth()   
file "/root/python-swiftclient/swiftclient/client.py", line 1064, in get_auth insecure=self.insecure   
file "/root/python-swiftclient/swiftclient/client.py", line 220, in get_keystoneclient_2_0   
auth_url=auth_url, insecure=insecure   
file "/usr/lib/python2.7/dist-packages/keystoneclient/v2_0/client.py",line 66, in --init--   
  super(client, self). --init(endpoint=endpoint, **kwargs) 
typeerror: --init--() got an unexpected keyword argumant 'insecure'</module></module>

AND:

swift  -A http://127.0.0.1:5000/v2.0/ -U ubuntu:admin -K openstack stat

ERROR:

no handlers could be found for logger "swiftclient"   
auth GET failed: http://127.0.0.1:5000/v2.0/ 200 ok ...
(more)
2013-08-16 06:53:03 -0600 commented answer swift admin password gives unexpected argument error.why??

If what you say is my problem, What is the solution? (an old version of python-keystone client mixed up with a newerish version of pythonswiftclient )

2013-08-16 06:51:32 -0600 received badge  Notable Question (source)