Ask Your Question

qi-weining's profile - activity

2017-03-15 05:32:41 -0500 received badge  Famous Question (source)
2017-03-15 05:32:41 -0500 received badge  Notable Question (source)
2017-03-15 05:32:41 -0500 received badge  Popular Question (source)
2015-05-07 17:05:04 -0500 received badge  Popular Question (source)
2014-12-16 09:32:30 -0500 received badge  Notable Question (source)
2014-12-16 09:32:30 -0500 received badge  Famous Question (source)
2014-12-05 15:56:23 -0500 received badge  Popular Question (source)
2014-12-05 15:56:23 -0500 received badge  Notable Question (source)
2014-10-30 09:28:26 -0500 received badge  Famous Question (source)
2014-10-30 09:28:26 -0500 received badge  Notable Question (source)
2014-09-09 17:48:27 -0500 received badge  Famous Question (source)
2014-05-21 03:02:26 -0500 received badge  Notable Question (source)
2014-05-19 08:28:49 -0500 received badge  Popular Question (source)
2014-04-22 09:20:36 -0500 received badge  Popular Question (source)
2014-04-13 10:58:42 -0500 received badge  Popular Question (source)
2014-01-14 09:43:52 -0500 asked a question will swift send lots of http packets?

I install swift SAIO in my computer. And I use another computer which installed cyberduck to upload files. The cyerduck can not connect SAIO. But the computer with SAIO sends so many packets to 9.245.102.14, some packet to 183.60.233.197.

what's wrong?

Thanks.

2013-11-27 08:27:33 -0500 answered a question swauth-prep returns 500 Server Error

gholt (gholt) said right.

After I added new device, I "scp *.ring.gz" to other nodes. And I copy object.ring.gz to account.ring.gz.

It is a silly error.

2013-11-27 02:32:39 -0500 answered a question swauth-prep returns 500 Server Error

My swauth is run ok. But after I add 3 devices, I does not run.

swift@cloud1:~$ swauth-prep -K swauthkey1qaz Auth subsystem prep failed: 500 Server Error swift@cloud1:~$ swift-ring-builder /etc/swift/account.builder /etc/swift/account.builder, build version 10 262144 partitions, 3.000000 replicas, 1 regions, 3 zones, 6 devices, 400.00 balance The minimum number of hours before a partition can be reassigned is 1 Devices: id region zone ip address port name weight partitions balance meta 0 1 1 192.168.1.3 6012 sdb1 100.00 262144 400.00 1 1 2 192.168.1.4 6012 sdb1 100.00 262144 400.00 2 1 3 192.168.1.5 6012 sdb1 100.00 262144 400.00 3 1 1 192.168.1.3 6012 sdc1 400.00 0-100.00 4 1 2 192.168.1.4 6012 sdc1 400.00 0-100.00 5 1 3 192.168.1.5 6012 sdc1 400.00 0-100.00 swift@cloud1:~$ swauth-prep -K swauthkey1qaz Auth subsystem prep failed: 500 Server Error

2013-11-13 11:07:45 -0500 answered a question where is the code about objects mapping?

Thanks Kun Huang, that solved my question.

2013-11-13 10:38:14 -0500 asked a question What's the account of swauth when use “swift-get-nodes”?

I want to use “swift-get-nodes” to find the disk address of an object. It is right when I use SAIO with tempauth. The account is test, the account in “swift-get-nodes” is AUTH_test instead. It is wrong when I use distributed swift with swauth. Whatever I used "test" or "AUTH_test", the return values of"Partition" and "Hash" is not right. I think they are calculated by the three parameters "Account, Container, and Object". I changed any one of the three parameters, the both value are changed.

Any one can tell me what's the account should be in "swift-get-nodes" with swauth?

Thanks a lot.

Partition 497 Hash 7c5f513fe9483ed4d2646c059a79d382

2013-11-13 08:45:41 -0500 answered a question where is the code about objects mapping?

Thanks, Kun Huang. Your advices are so powerful.

In SAIO, it returned the right folder. and ssh line return the object name I wanted.

swift@qwn-G31M-S2C:/mnt/sdb1/1/node/sdb1/objects$ DEVICE=/mnt/sdb1/2/node swift@qwn-G31M-S2C:/mnt/sdb1/1/node/sdb1/objects$ ssh 127.0.0.1 "ls -lah ${DEVICE:-/srv/node}/sdb2/objects/577/e45/905d09490feb7978d139ebac97634e45/" swift@127.0.0.1's password: 总用量 82M drwxr-xr-x 2 swift swift 34 11月 12 21:28 . drwxr-xr-x 3 swift swift 45 11月 12 21:28 .. -rw------- 1 swift swift 82M 11月 12 21:28 1384262912.01738.data

But in the distributed swift in 4 DELL servers, the folder is not right. It is changed to another folder, but it is not exist neither.

The authentication of account and user is tempauth in SAIO, and it is swauth in distributed swift in 4 DELL servers.

Thank you for your warm-hearted help. It really encourage me. And make the testing interesting and fast.

I must try the "swift-get-nodes" line in 4 DELL servers. That will be the system deployed.

2013-11-13 03:54:44 -0500 answered a question where is the code about objects mapping?

In SAIO, I upload 3 objects. And there are 3 folders in 4 nodes. But there is no such a folder “Partition 72 Hash 12365c8a2807d62b0759a4f3bc727d76” which is "swift-get-nodes" returned for me.

My SAIO is just installed the newest one.

swift@qwn-G31M-S2C:/mnt/sdb1/2/node/sdb2$ cd objects swift@qwn-G31M-S2C:/mnt/sdb1/2/node/sdb2/objects$ ls -f . .. 336 577 swift@qwn-G31M-S2C:/mnt/sdb1/2/node/sdb2/objects$ cd /mnt/sdb1/3/node/sdb3/objects swift@qwn-G31M-S2C:/mnt/sdb1/3/node/sdb3/objects$ ls -f . .. 336 497 577 swift@qwn-G31M-S2C:/mnt/sdb1/3/node/sdb3/objects$ cd /mnt/sdb1/4/node/sdb4/objects swift@qwn-G31M-S2C:/mnt/sdb1/4/node/sdb4/objects$ ls -f . .. 336 497 577 swift@qwn-G31M-S2C:/mnt/sdb1/4/node/sdb4/objects$ cd /mnt/sdb1/1/node/sdb1/objects swift@qwn-G31M-S2C:/mnt/sdb1/1/node/sdb1/objects$ ls -f . .. 497

swift@qwn-G31M-S2C:~$ swift -A http://127.0.0.1:8080/auth/v1.0 -U test:tester -K testing list container_test1 PPT2.pdf etc/swift/proxy-server.conf home/swift/PPT.pdf swift@qwn-G31M-S2C:~$ swift-get-nodes -a /etc/swift/object.ring.gz test container_test1 PPT2.pdf

Account test Container container_test1 Object PPT2.pdf

Partition 72 Hash 12365c8a2807d62b0759a4f3bc727d76

Server:Port Device 127.0.0.1:6030 sdb3 Server:Port Device 127.0.0.1:6010 sdb1 Server:Port Device 127.0.0.1:6020 sdb2 Server:Port Device 127.0.0.1:6040 sdb4 [Handoff]

curl -I -XHEAD "http://127.0.0.1:6030/sdb3/72/test/container_test1/PPT2.pdf" curl -I -XHEAD "http://127.0.0.1:6010/sdb1/72/test/container_test1/PPT2.pdf" curl -I -XHEAD "http://127.0.0.1:6020/sdb2/72/test/container_test1/PPT2.pdf" curl -I -XHEAD "http://127.0.0.1:6040/sdb4/72/test/container_test1/PPT2.pdf" # [Handoff]

Use your own device location of servers: such as "export DEVICE=/srv/node" ssh 127.0.0.1 "ls -lah ${DEVICE:-/srv/node}/sdb3/objects/72/d76/12365c8a2807d62b0759a4f3bc727d76/" ssh 127.0.0.1 "ls -lah ${DEVICE:-/srv/node}/sdb1/objects/72/d76/12365c8a2807d62b0759a4f3bc727d76/" ssh 127.0.0.1 "ls -lah ${DEVICE:-/srv/node}/sdb2/objects/72/d76/12365c8a2807d62b0759a4f3bc727d76/" ssh 127.0.0.1 "ls -lah ${DEVICE:-/srv/node}/sdb4/objects/72/d76/12365c8a2807d62b0759a4f3bc727d76/" # [Handoff]

2013-11-13 03:26:10 -0500 answered a question where is the code about objects mapping?

Thanks, Kun Huang. I used both swift installed in 4 DELL servers and Swift SAIO for testing. I can upload and download. but when I used "swift-get-nodes", the Partition returned is not a folder in the storage node.

my DEVICE is set "/srv/node". There are many folders in “/srv/node/sdb1/objects/”, but there is not a folder named "61178". What's wrong?

There are some output of swift in 4 DELL servers, not of SAIO.

103748 126837 149607 173774 199160 224454 245960 35322 59406 81540 103759 126936 150199 173928 199274 224706 246115 35640 59883 81645 104006 127348 150388 174134 199316 224827 246328 35849 60625 82238 104023 127379 150421 174314 199607 22492 246504 35853 61046 8236 104036 12739 150443 174445 199656 224949 247236 3593 61104 82599 104155 127440 150555 174603 199993 22504 247474 36058 61285 829 104330 127876 150775 174775 200217 225222 248137 36533 61321 82982 104503 1279 151115 174919 200408 225251 249085 36593 6133 8299 10460 127971 152044 174941 200664 225523 249204 36968 61354 83013 104800 12821 152185 174971 200776 225548 249277 3722 61411 83035 104976 128482 152222 175017 201129 225639 249300 37808 61812 83806 104999 128577 152835 175140 201141 22576 24942 38130 62058 83874 105016 128778 153060 175340 201340 225873 249644 38514 62190 83956 105082 128972 153126 175360 201619 225888 249910 38592 62233 84005 105114 129266 153247 175482 201692 226246 249933 38613 62235 84290 105560 129368 153340 175781 201952 226464 250062 38616 62547 84448 105587 129420 153406 175810 202096 226583 2502 38885 62577 84471 105712 129613 153427 176219 202921 226675 250392 3896 62667 8464 105918 129644 153446 176406 203144 226927 250484 38968 62739 84936

swift@cloud1:~/openstack$ swift -A http://127.0.0.1:8080/auth/v1.0 -U test:tester -K testing list cont1 boto-2.6.0.tar.gz swift@cloud1:~/openstack$ cd swift@cloud1:~$ swift-get-nodes -a /etc/swift/object.ring.gz test cont1 boto-2.6.0.tar.gz

Account test Container cont1 Object boto-2.6.0.tar.gz

Partition 61178 Hash 3bbe955693bec810b7cfa75b9e8eb1af

Server:Port Device 192.168.1.4:6010 sdb1 Server:Port Device 192.168.1.3:6010 sdb1 Server:Port Device 192.168.1.5:6010 sdb1

curl -I -XHEAD "http://192.168.1.4:6010/sdb1/61178/test/cont1/boto-2.6.0.tar.gz" curl -I -XHEAD "http://192.168.1.3:6010/sdb1/61178/test/cont1/boto-2.6.0.tar.gz" curl -I -XHEAD "http://192.168.1.5:6010/sdb1/61178/test/cont1/boto-2.6.0.tar.gz"

Use your own device location of servers: such as "export DEVICE=/srv/node" ssh 192.168.1.4 "ls -lah ${DEVICE:-/srv/node}/sdb1/objects/61178/1af/3bbe955693bec810b7cfa75b9e8eb1af/" ssh 192.168.1.3 "ls -lah ${DEVICE:-/srv/node}/sdb1/objects/61178/1af/3bbe955693bec810b7cfa75b9e8eb1af/" ssh 192.168.1.5 "ls -lah ${DEVICE:-/srv/node}/sdb1/objects/61178/1af/3bbe955693bec810b7cfa75b9e8eb1af/"

swift@cloud1:~$ ssh 192.168.1.3 "ls -lah ${DEVICE:-/srv/node}/sdb1/objects/61178/1af/3bbe955693bec810b7cfa75b9e8eb1af/" swift@192.168.1.3's password: ls: 初始化月份字符串出错 ls: 无法访问/srv/node/sdb1/objects/61178/1af ... (more)

2013-11-13 01:59:40 -0500 answered a question where is the code about objects mapping?

I meet another strange problem.

I use ssh to connect 192.168.1.3. And I can find the path "/srv/node/sdb1/objects". But I can not find the path /srv/node/sdb1/objects/34233. There is no such a path named 34233.

It is really confused me.

swift@cloud1:~$ ssh 192.168.1.3 "ls -lah ${DEVICE:-/srv/node}/sdb1/objects/34233/3b6/216e50dc72887cf0c7982b0edd5b63b6/"

swift@192.168.1.3's password: ls: 初始化月份字符串出错 ls: 无法访问/srv/node/sdb1/objects/34233/3b6/216e50dc72887cf0c7982b0edd5b63b6/: 没有那个文件或目录

2013-11-13 00:59:57 -0500 answered a question where is the code about objects mapping?

Thanks, , Kun Huang. You are so kind. Your advices almost resolve my problems. But there is one thing left. I want to get the object's full path, including the last "**.data". "swift-get-nodes" method tells me the path, not including the object's *.data file name.

Such as when I used "swift-get-nodes", I got "/mnt/sdb1/1/node/sdb1/objects/497/382/7c5f513fe9483ed4d2646c059a79d382/". But I also need the last "1383891714.41626.data". I hope I can get "/mnt/sdb1/1/node/sdb1/objects/497/382/7c5f513fe9483ed4d2646c059a79d382/1383891714.41626.data"

Thank you very much.

swift@cloud1:~$ swift -A http://127.0.0.1:8080/auth/v1.0 -U test:tester -K testing list test1 cert.key proxy-server.conf swift@cloud1:~$ swift-get-nodes -a /etc/swift/object.ring.gz test test1 cert.key

Account test Container test1 Object cert.key

Partition 34233 Hash 216e50dc72887cf0c7982b0edd5b63b6

Server:Port Device 192.168.1.3:6010 sdb1 Server:Port Device 192.168.1.5:6010 sdb1 Server:Port Device 192.168.1.4:6010 sdb1

curl -I -XHEAD "http://192.168.1.3:6010/sdb1/34233/test/test1/cert.key" curl -I -XHEAD "http://192.168.1.5:6010/sdb1/34233/test/test1/cert.key" curl -I -XHEAD "http://192.168.1.4:6010/sdb1/34233/test/test1/cert.key"

Use your own device location of servers: such as "export DEVICE=/srv/node" ssh 192.168.1.3 "ls -lah ${DEVICE:-/srv/node}/sdb1/objects/34233/3b6/216e50dc72887cf0c7982b0edd5b63b6/" ssh 192.168.1.5 "ls -lah ${DEVICE:-/srv/node}/sdb1/objects/34233/3b6/216e50dc72887cf0c7982b0edd5b63b6/" ssh 192.168.1.4 "ls -lah ${DEVICE:-/srv/node}/sdb1/objects/34233/3b6/216e50dc72887cf0c7982b0edd5b63b6/" swift@cloud1:~$

2013-11-12 13:37:29 -0500 answered a question where is the code about objects mapping?

Thanks, , Kun Huang. You are so kind. But when I have a try, I meet this swift@qwn-G31M-S2C:~$ swift-get-nodes -a /etc/swift/account.ring.gz test Traceback (most recent call last): File "/usr/local/bin/swift-get-nodes", line 7, in <module> execfile(__file__) File "/home/swift/swift/bin/swift-get-nodes", line 22, in <module> from swift.common.utils import hash_path ImportError: cannot import name hash_path

I installed swift SAIO, and its version is swift 1.6.0.1

I find this is a bug. And Swift 1.10.0 has resolved it.

Can I upgrade my swift SAIO instead of re install it?

2013-11-12 11:28:39 -0500 answered a question where is the code about objects mapping?

Thanks, Kun Huang. As an Administrator, I want to have an interface to obtain the physical address of an object. Perhaps I need many objects addresses on time.

I want to achieve such a function that objects not being accessed for a long long time move from swift to other places. So I need to obtain the physical address of an object easy and fast. And it is better not disturbing the running swift. It is perfect to obtain the address without modifying the source code.

I think that your above advices can help me. Could you explain it with more details?

2013-11-12 10:08:05 -0500 answered a question where is the code about objects mapping?

Thanks, Kun Huang. When I input "account:user, container, object", I want to get the address of one of the replicas in swift. Such as when I input "test:tester, container_test1, ppt.pdf", I hope to get "/mnt/sdb1/1/node/sdb1/objects/497/382/7c5f513fe9483ed4d2646c059a79d382/1383891714.41626.data". If there is a method without modifying the source code of swift, could you tell me how can I do that? It is perfect to obtain the address without modifying the source code. If it is essential to modify the source code to get the address, could you give me some advices?

2013-11-12 04:18:03 -0500 answered a question Is there a client of swift to add users and change password?

Thanks. I will try.

2013-11-12 03:36:26 -0500 answered a question Is there a client of swift to add users and change password?

Thanks, Kun Huang.

I have 4 servers. Just as your said, I installed swift "obj/container/account server" on 3 DELL servers and swift "proxy server + swauth" on one DELL server. I look this website for reference, “http://blog.csdn.net/cywosp/article/details/7428769” [swift obj/container/account server], [swift obj/container/account server], [swift obj/container/account server], [swift proxy server + swauth]

I am a new one to swift. I can not understand your suggestion,"proxy + keystone on each node provide possibility to load-balance." In my environment, only one DELL server has outer net IP address. The other three have only LAN IP addresses. If 4 DELL servers all installed proxy server, How should I fill in the address when I access the objects from cyberduck in other computers?

And I have another computer which installed swift SAIO, using tempauth for test. So as you suggested, I can installi keystone and change your proxy config file for test. Is it right?

Thanks a lot.

2013-11-12 03:04:46 -0500 answered a question Is there a client of swift to add users and change password?

Thanks, Kun Huang. Your advices light a bright lamp for me. I still have some questions. (1) Can proxy-server and keystone be installed in one DELL server? It is suggested to be installed in two servers. I have only 4 servers now. (2) Can keystone be installed in swift SAIO for tests?

Thanks a lot.

2013-11-11 02:01:21 -0500 asked a question where is the code about objects mapping?

When I upload a object "ppt.pdf" to the container "container_test1" of swift SAIO, I find one of the path of the object is "/mnt/sdb1/1/node/sdb1/objects/497/382/7c5f513fe9483ed4d2646c059a79d382/1383891714.41626.data". I want to hnow where is the code to map a object from swift to the disk?

2013-11-11 01:49:41 -0500 answered a question Is there a client of swift to add users and change password?

I use swauth for Authentication. how can I add users? Is there a client like cyberduck?

2013-11-05 12:08:14 -0500 asked a question Is there a client of swift to add users and change password?

I install swift in four nodes. And I want to test the systems. Not only test by myself. I want to let others use this system for storage. So others must can apply account and passwords. At least, even if I add users in my seytem, they must can change the passwords. Is there such a client can apply accounts and passwords for users? Or is there another way to do these works?

Thanks.

2013-11-05 11:36:17 -0500 answered a question Can the user in swift certified by swauth be seen by S3?

Thanks, Kun huang. You are so warm-hearted to give me many good avdices.

I do not add any thing in proxy-server.conf.

I restart the proxy server. And I can upload objects, create containers. I do not know why.

2013-11-05 04:37:17 -0500 answered a question Can the user in swift certified by swauth be seen by S3?

I have used these for adding users. And upload containers and objs.

I just want to test the S3 in swift.

swift and swauth are both OK.

swauth-add-user -A http://127.0.0.1:8080/auth/ -K swauthkey -a test tester testing

swauth-add-user -A http://127.0.0.1:8080/auth/ -K swauthkey -a test1 teste1 testing

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

2013-11-05 03:27:50 -0500 answered a question Can the user in swift certified by swauth be seen by S3?

aws_access_key_id:test1:tester1 key:testing

conn.access_key 'test1:tester1' conn.aws_access_key_id 'test1:tester1' conn.aws_secret_access_key 'testing'

my config file

[DEFAULT] bind_port = 8080 user = swift log_facility = LOG_LOCAL0

[pipeline:main]
pipeline = healthcheck cache swift3 swauth proxy-server

[app:proxy-server] use = egg:swift#proxy allow_account_management = true account_autocreate = true

[filter:swauth] use = egg:swauth#swauth

Highly recommended to change this.

super_admin_key = swauthkey default_swift_cluster = local#http://210...*:8080/v1#http://192.168.1.2:8080/v1

[filter:swift3] use = egg:swift3#swift3

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

[filter:cache] use = egg:swift#memcache memcache_servers = 192.168.1.2:11211

2013-11-05 03:03:04 -0500 answered a question Can the user in swift certified by swauth be seen by S3?

Thanks, Kun huang. Your advices help me. There is another problem. Boto conncetion is OK. But when I want to create a bucket, 403 forbidden.

conn.create_bucket('testforq') Traceback (most recent call last): File "<stdin>", line 1, in <module> File "boto/s3/connection.py", line 441, in create_bucket response.status, response.reason, body) boto.exception.S3ResponseError: S3ResponseError: 403 Forbidden <error> AccessDenied <message>Access denied</message> </error>

2013-11-01 10:26:59 -0500 answered a question Can the user in swift certified by swauth be seen by S3?

I use the conf file from "•​Download the Openstack Swift (Swauth HTTP) profile for preconfigured settings. "

If I have used a swift-style, Does it mean that I need another test?

I have installed boto. But I can not connect to my swift.

Can you give me some advice about boto. Or can you give me the python examples?

2013-11-01 09:13:21 -0500 answered a question Can the user in swift certified by swauth be seen by S3?

Thank you, Kun Huang.

I have installed swift3 and it run. The auth in my swift is swauth.

I have changed the proxy_server.conf.

The cyberduck can be used to access my swift.

However, I can not use s3curl asscessed my swift with s3.

I need a client to let my mates apply for new account and changed their password.

Any one know such a S3 client?

2013-11-01 07:41:47 -0500 asked a question how to use s3curl to upload objects in swift with swift3 and swauth?

I installed swift3 v1.7(S3). The auth of swift is swauth 1.0.8.

But I can not connect to the proxy server in another swift client.

when i use "./s3curl.pl --id 'test:tester' --key 'testing' --get -- -k -v -s http://210.75 . .:8080"

  • About to connect() to 210.75.225.40 port 8080 (#0)
  • Trying 210.75.225.40... connected > GET / HTTP/1.1 > User-Agent: curl/7.22.0 (i686-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3 > Host: 210.75.225.40:8080 > Accept: / > Date: 五, 01 11月 2013 07:32:40 +0000 > Authorization: AWS testtest:testertester:FU25jKbl1wQJt4DKvVnVPH2xNII= > < HTTP/1.1 403 Forbidden < Content-Length: 124 < Content-Type: text/xml < Date: Fri, 01 Nov 2013 07:32:39 GMT < <error> AccessDenied <message>Access denied</message> </error>
  • Connection #0 to host 210.75.225.40 left intact
  • Closing connection #0

[DEFAULT] #cert_file = /etc/swift/cert.crt #key_file = /etc/swift/cert.key
bind_port = 8080 #workers = 8 user = swift log_facility = LOG_LOCAL0

[pipeline:main] pipeline = healthcheck cache swift3 swauth proxy-server

[app:proxy-server] use = egg:swift#proxy allow_account_management = true account_autocreate = true

[filter:swauth] use = egg:swauth#swauth

Highly recommended to change this.

super_admin_key = swauthkey default_swift_cluster = local#http://210.75..:8080/v1#http://192.168.1.2:8080/v1

[filter:swift3] use = egg:swift3#swift3

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

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

[filter:cache] use = egg:swift#memcache memcache_servers = 192.168.1.2:11211

2013-10-31 06:25:07 -0500 asked a question Can the user in swift certified by swauth be seen by S3?

I installed swift and swauth in four DELL servers.

(1) proxy and swauth. IP:210...*,192.168.1.2. (2)storage node,IP:192.168.1.3. (3)storage node,IP:192.168.1.4. (4)storage node,IP:192.168.1.5.

I use swauth add users in swift, and upload containers and objects. I want to use a S3 client access the containers and objects. How can I do that?

Thanks a lot.

2013-10-29 10:47:16 -0500 answered a question swauth failed in swift: Account creation failed: 500 Server Error

I have changed "/etc/swift/proxy-server.conf". And it runs.

swift@cloud1:~$ vi /etc/swift/proxy-server.conf swift@cloud1:~$ swift-init proxy stop Signal proxy-server pid: 2322 signal: 15 No proxy-server running swift@cloud1:~$ swift-init proxy start WARNING: Unable to increase file descriptor limit. Running as non-root? Starting proxy-server...(/etc/swift/proxy-server.conf) swift@cloud1:~$ swauth-prep -K swauthkey swift@cloud1:~$ swauth-add-user -A http://127.0.0.1:8080/auth/ -K swauthkey -a test tester testing

swift@cloud1:~$ swift -A http://127.0.0.1:8080/auth/v1.0 -U test:tester -K testing stat -v StorageURL: http://210.75.225.40:8080/v1/AUTH_fd28eaae-f8e1-4565-8778-bcc797b4b582 (http://210.75.225.40:8080/v1/AUTH_fd2...) Auth Token: AUTH_tk676b9a0e318b47b0ad88c5efbc5758fb Account: AUTH_fd28eaae-f8e1-4565-8778-bcc797b4b582 Containers: 0 Objects: 0 Bytes: 0 Accept-Ranges: bytes X-Timestamp: 1383040923.86914 Content-Type: text/plain; charset=utf-8

swift@cloud1:/etc/swift$ swift -A http://127.0.0.1:8080/auth/v1.0 -U test:tester -K testing upload test1 cert.key cert.key swift@cloud1:/etc/swift$ swift -A http://127.0.0.1:8080/auth/v1.0 -U test:tester -K testing upload test1 proxy_server.conf Local file 'proxy_server.conf' not found swift@cloud1:/etc/swift$ swift -A http://127.0.0.1:8080/auth/v1.0 -U test:tester -K testing upload test1 proxy-server.conf proxy-server.conf swift@cloud1:/etc/swift$ swift -A http://127.0.0.1:8080/auth/v1.0 -U test:tester -K testing stat -v StorageURL: http://210.75.225.40:8080/v1/AUTH_fd28eaae-f8e1-4565-8778-bcc797b4b582 (http://210.75.225.40:8080/v1/AUTH_fd2...) Auth Token: AUTH_tk676b9a0e318b47b0ad88c5efbc5758fb Account: AUTH_fd28eaae-f8e1-4565-8778-bcc797b4b582 Containers: 1 Objects: 1 Bytes: 912 Accept-Ranges: bytes X-Timestamp: 1383040923.86914 Content-Type: text/plain; charset=utf-8 swift@cloud1:/etc/swift$ swift -A http://127.0.0.1:8080/auth/v1.0 -U test:tester -K testing stat -v StorageURL: http://210.75.225.40:8080/v1/AUTH_fd28eaae-f8e1-4565-8778-bcc797b4b582 (http://210.75.225.40:8080/v1/AUTH_fd2...) Auth Token: AUTH_tk676b9a0e318b47b0ad88c5efbc5758fb Account: AUTH_fd28eaae-f8e1-4565-8778-bcc797b4b582 Containers: 1 Objects: 1 Bytes: 912 Accept-Ranges: bytes X-Timestamp: 1383040923.86914 Content-Type: text/plain; charset=utf-8 swift@cloud1:/etc/swift$ swift -A http://127.0.0.1:8080/auth/v1.0 -U test:tester -K testing list
test1 swift@cloud1:/etc/swift$ swift -A http://127.0.0.1:8080/auth/v1.0 -U test:tester -K testing list test1 cert.key proxy-server.conf swift@cloud1:/etc/swift$ swift -A http://127.0.0.1:8080/auth/v1.0 -U test:tester -K testing stat
Account: AUTH_fd28eaae-f8e1-4565-8778-bcc797b4b582 Containers: 1 Objects: 1 Bytes: 912 Accept-Ranges: bytes X-Timestamp: 1383040923.86914 Content-Type: text/plain; charset=utf-8

[DEFAULT] #cert_file = /etc/swift/cert.crt #key_file = /etc/swift/cert.key
bind_port = 8080 #workers = 8 user = swift log_facility = LOG_LOCAL0

[pipeline:main] #pipeline = catch_errors healthcheck cache swauth proxy-server
pipeline = healthcheck cache swauth proxy-server #pipeline = healthcheck cache tempauth proxy-server [app:proxy-server] use = egg:swift#proxy allow_account_management = true account_autocreate = true

[filter:swauth] use = egg:swauth#swauth

Highly recommended to change this.

super_admin_key = swauthkey default_swift_cluster = local#http://210.75.225.40:8080/v1#http://192.168.1.2:8080/v1#http://127.0 ... (more)

2013-10-29 09:30:42 -0500 asked a question swauth failed in swift: Account creation failed: 500 Server Error

tempauth and swauth both failed. I want to use swauth.

"swauth-prep -K swauthkey" OK. "swauth-add-user" is wrong.

I have changed "default_swift_cluster = cluster_name#https://210...*:8080/v1" to "default_swift_cluster = cluster_name#https://192.168.1.2:8080/v1" and "default_swift_cluster = local#https://127.0.0.1/v1", nothing help.

swift@cloud1:~$ swift-init proxy start WARNING: Unable to increase file descriptor limit. Running as non-root? Starting proxy-server...(/etc/swift/proxy-server.conf) swift@cloud1:~$ swauth-prep -K swauthkey swift@cloud1:~$ vi /var/log/syslog swift@cloud1:~$ swauth-add-user -A http://210. .*:8080/auth/ -K swauthkey -a test tester testing Account creation failed: 500 Server Error swift@cloud1:~$ swauth-add-user -A http://192.168.1.2:8080/auth/ -K swauthkey -a test tester testing Account creation failed: 500 Server Error swift@cloud1:~$ swauth-add-user -A http://127.0.0.1:8080/auth/ -K swauthkey -a test tester testing Account creation failed: 500 Server Error

I have four DELL servers. (1) proxy server IP:210...*, 192.168.1.2 (2) storage server IP:192.168.1.3 (3) storage server IP:192.168.1.4 (4) storage server IP:192.168.1.5

/etc/swift/proxy-server.conf [DEFAULT] #cert_file = /etc/swift/cert.crt #key_file = /etc/swift/cert.key
bind_port = 8080 #workers = 8 user = swift log_facility = LOG_LOCAL0

[pipeline:main] #pipeline = catch_errors healthcheck cache swauth proxy-server
pipeline = healthcheck cache swauth proxy-server #pipeline = healthcheck cache tempauth proxy-server [app:proxy-server] use = egg:swift#proxy allow_account_management = true account_autocreate = true

[filter:swauth] use = egg:swauth#swauth

Highly recommended to change this.

super_admin_key = swauthkey #default_swift_cluster = local#http://127.0.0.1:8080/auth/v1.0 default_swift_cluster = cluster_name#https://210...*:8080/v1

#[filter:tempauth] #use = egg:swift#tempauth #user_system_root = testpass.admin https://192.168.1.2:8080/v1/AUTH_system #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 memcache_servers = 192.168.1.2:11211

log in /var/log/syslog Oct 29 17:11:56 cloud1 proxy-server Started child 2066 Oct 29 17:12:26 cloud1 proxy-server - 127.0.0.1 29/Oct/2013/09/12/26 POST /auth/v2/.prep HTTP/1.0 204 - - .super_admin - - - - - 0.2906 Oct 29 17:16:43 cloud1 proxy-server - 210.. .* 29/Oct/2013/09/16/43 GET /auth/v2/test HTTP/1.0 404 - - .super_admin - - - - - 0.0128 Oct 29 17:16:43 cloud1 proxy-server ERROR WSGI: code 400, message Bad HTTP/0.9 request type ('\x16\x03\x01\x00\xcc\x01\x00\x00\xc8\x03\x02Ro|\xfbS`v2|BD\x98>\xb8\xd8\x12\x11H\x9e\xfbU\xfd\x91\x8b\xc4\xde\xa3\x9fa') Oct 29 17:16:43 cloud1 proxy-server ERROR: Exception while trying to communicate with https://210.75.225.40:8080//v1/AUTH_48b22037-a54b-4f6d-9177-5e8e8c3b491a (https://210.75.225.40:8080//v1/AUTH_4...) (txn: txbc630a7ec5984316a0d8dbface8a7212) Oct 29 17:16:43 cloud1 proxy-server STDOUT: EXCEPTION IN handle: Traceback (most recent call last):#012 File "/usr/local/lib/python2.7/dist-packages/swauth-1.0.8-py2.7.egg/swauth/middleware.py", line 454, in handle#012 ... (more)

2013-10-22 09:56:51 -0500 asked a question Can I do other else instead "add-apt-repository ppa:swift-core/release"

I want to install openstack swift in 4 DELL servers. The OS is ubuntu server 12.04 64bit. Some errors happen when "Install common Swift software prereqs:" "add-apt-repository ppa:swift-core/release". The error is

root@cloud1:~# add-apt-repository ppa:swift-core/ppa Traceback (most recent call last): File "/usr/bin/add-apt-repository", line 128, in <module> ppa_info = get_ppa_info_from_lp(user, ppa_name) File "/usr/lib/python2.7/dist-packages/softwareproperties/ppa.py", line 84, in get_ppa_info_from_lp curl.perform() pycurl.error: (6, "Couldn't resolve host 'launchpad.net'")

root@cloud1:~# sudo -E add-apt-repository ppa:swift-core/ppa Traceback (most recent call last): File "/usr/bin/add-apt-repository", line 128, in <module> ppa_info = get_ppa_info_from_lp(user, ppa_name) File "/usr/lib/python2.7/dist-packages/softwareproperties/ppa.py", line 84, in get_ppa_info_from_lp curl.perform() pycurl.error: (6, "Couldn't resolve host 'launchpad.net'")

The network is not behide proxy.

Can I do other steps instead of “add-apt-repository ppa:swift-core/release”。

2013-10-22 08:07:10 -0500 asked a question Where are objects and containers in storage nodes? And Can I see them in file system?

I install swift SAIO in ubuntu. There are 4 nodes, "/mnt/sdb1/1 /mnt/sdb1/2 /mnt/sdb1/3 /mnt/sdb1/4 /srv/1/node/sdb1 /srv/2/node/sdb2 /srv/3/node/sdb3 /srv/4/node/sdb4 ". After I upload containers and objects, I can download them by swift. But I can not find them in the above catalogues in ubuntu. Are the objects hidden by swift? How can I see the objects from ubuntu?

2013-10-12 07:03:02 -0500 asked a question Who uses openstack swift?

Who uses swift except "Rackspace Cloud Files"? I think more users make swift rubust. I know sina China uses swift as base infrastructure. Any one else?

2013-10-12 04:46:47 -0500 answered a question Do I need to reinstall swift SAIO when changing from loopback to a partition?

Thanks. I do not reintall, but I change the fie "/etc/fstab". I redo all steps in "Using a partition for storage". I redo all steps in "Setting up scripts for running Swift". Swift run again.

2013-10-10 06:07:38 -0500 asked a question Do I need to reinstall swift SAIO when changing from loopback to a partition?

Do I need to reinstall swift SAIO when changing from loopback to a partition?

Or just change the .conf files and "service rsync restart"?

thanks.

2013-10-09 03:45:55 -0500 answered a question the last access time of the object

Thanks. Your answers help me a lot. I want to compress or remove the objects that not be accessed for a long time, so the last read time is important. Can you tell me where is the source code of the proxy's logs about the read time?