发起问题

sonali2197 的档案 - activity

2020-04-23 08:31:19 -0500 获得奖牌  受欢迎的问题 (source)
2020-04-23 08:31:19 -0500 获得奖牌  著名问题 (source)
2020-04-23 08:31:19 -0500 获得奖牌  热门的问题 (source)
2011-03-28 22:38:08 -0500 问了问题 euca-describe-availibility-zones errors out for non admin users

When i source the credentials for a non admin user and execute the euca-describe-availibility-zones commans, it give me a 401 unauthorized user error. However, if i sue the admin creds it works just fine. here's the error I get:

2011-03-28 17:35:39,743 DEBUG nova.auth.manager [-] Looking up user: 'f2d35104-1131-46dc-9a70-8d44662cb8a4' from MainProcess (pid=11271) authenticate /home/administrator/nova-2011.1/nova/auth/manager.py:259 2011-03-28 17:35:39,745 DEBUG nova.auth.manager [-] user: User('nonadmin', 'nonadmin', 'f2d35104-1131-46dc-9a70-8d44662cb8a4', '289bd39d-b0d7-463b-91ae-699533c1cb36', False) from MainProcess (pid=11271) authenticate /home/administrator/nova-2011.1/nova/auth/manager.py:261 2011-03-28 17:35:39,768 DEBUG nova.signer [-] using _calc_signature_2 from MainProcess (pid=11271) _calc_signature_2 /home/administrator/nova-2011.1/nova/auth/signer.py:126 2011-03-28 17:35:39,768 DEBUG nova.signer [-] query string: AWSAccessKeyId=f2d35104-1131-46dc-9a70-8d44662cb8a4%3Anonadmin&Action=DescribeAvailabilityZones&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2011-03-28T22%3A35%3A39&Version=2009-11-30 from MainProcess (pid=11271) _calc_signature_2 /home/administrator/nova-2011.1/nova/auth/signer.py:142 2011-03-28 17:35:39,768 DEBUG nova.signer [-] string_to_sign: GET 127.0.0.1:8773 /services/Cloud/ AWSAccessKeyId=f2d35104-1131-46dc-9a70-8d44662cb8a4%3Anonadmin&Action=DescribeAvailabilityZones&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2011-03-28T22%3A35%3A39&Version=2009-11-30 from MainProcess (pid=11271) _calc_signature_2 /home/administrator/nova-2011.1/nova/auth/signer.py:144 2011-03-28 17:35:39,768 DEBUG nova.signer [-] len(b64)=44 from MainProcess (pid=11271) _calc_signature_2 /home/administrator/nova-2011.1/nova/auth/signer.py:147 2011-03-28 17:35:39,769 DEBUG nova.signer [-] base64 encoded digest: WHCHUQJNUP3hcf7OID7HN3n1WPXV8ZXZlvP1lKmc9oU= from MainProcess (pid=11271) _calc_signature_2 /home/administrator/nova-2011.1/nova/auth/signer.py:148 2011-03-28 17:35:39,769 DEBUG nova.auth.manager [-] user.secret: 289bd39d-b0d7-463b-91ae-699533c1cb36 from MainProcess (pid=11271) authenticate /home/administrator/nova-2011.1/nova/auth/manager.py:305 2011-03-28 17:35:39,769 DEBUG nova.auth.manager [-] expected_signature: WHCHUQJNUP3hcf7OID7HN3n1WPXV8ZXZlvP1lKmc9oU= from MainProcess (pid=11271) authenticate /home/administrator/nova-2011.1/nova/auth/manager.py:306 2011-03-28 17:35:39,769 DEBUG nova.auth.manager [-] signature: WHCHUQJNUP3hcf7OID7HN3n1WPXV8ZXZlvP1lKmc9oU= from MainProcess (pid=11271) authenticate /home/administrator/nova-2011.1/nova/auth/manager.py:307 2011-03-28 17:35:39,785 AUDIT nova.api [GFXYQKI6BDWCA845S8I8 nonadmin nonadmin] Authenticated Request For nonadmin:nonadmin) 2011-03-28 17:35:39,786 DEBUG nova.api [-] action: DescribeAvailabilityZones from MainProcess (pid=11271) __call__ /home/administrator/nova-2011.1/nova/api/ec2/__init__.py:212 2011-03-28 17:35:39,793 AUDIT nova.api [GFXYQKI6BDWCA845S8I8 nonadmin nonadmin] Unauthorized request for controller=CloudController and action=DescribeAvailabilityZones 2011-03-28 17:35:39,794 INFO nova.api [GFXYQKI6BDWCA845S8I8 nonadmin nonadmin] 0.8462s 127.0.0.1 GET / None:None 401 [Boto/1.9b (linux2)] text/plain text/html

Any idea why this is?

Thanks Sonali

2011-01-07 23:55:18 -0500 回答问题 swift-auth 405 and 503 errors

In addition to that I had to change the permissions for the partitions

2011-01-07 23:54:05 -0500 回答问题 swift-auth 405 and 503 errors

Thanks gholt, that solved my question.

2011-01-07 00:03:02 -0500 问了问题 swift-auth 405 and 503 errors

When I try to execute this command, i get "Update failed: 503 Service Unavaialable" error

swift-auth-add-user -K devauth -a system root testpass

I changed the following in the conf files:

account-server.conf: [DEFAULT] mount_check =false

proxy-server.conf: [DEFAULT] bind_port = 8080

I've used revision 154. The syslog shows the following errors

Jan 6 18:50:38 ubuntu-x3850-2 auth-server validate_token('AUTH_tkf6b99764fe994deaad50287a69da0d6e', _, _) = (86399.985820055008, '.super_admin', '.single_use', '.reseller_admin') [0.00] Jan 6 18:50:38 ubuntu-x3850-2 auth-server 127.0.0.1 - - [06/Jan/2011:23:50:38 +0000] "GET /token/AUTH_tkf6b99764fe994deaad50287a69da0d6e HTTP/1.0" 204 - "-" "-" - - - - - - - - - "-" "127.0.0.1" "-" 0.0036 Jan 6 18:50:38 ubuntu-x3850-2 auth-server ERROR attempting to create account http://127.0.0.1:8080/v1/AUTH_72c5c27b93c048b2930a8df3379e012c (http://127.0.0.1:8080/v1/AUTH_72c5c27...) : 405 Method Not Allowed Jan 6 18:50:38 ubuntu-x3850-2 auth-server FAILED create_user('test', 'tester', _, True, False) [0.03] Jan 6 18:50:38 ubuntu-x3850-2 proxy-server - 127.0.0.1 06/Jan/2011/23/50/38 PUT /v1/AUTH_72c5c27b93c048b2930a8df3379e012c HTTP/1.0 405 - - .super_admin%3A.single_use%2CAUTH_tkf6b99764fe994deaad50287a69da0d6e - - - tx9937af5a-4eb1-41ec-b849-635e322b8f6b - 0.0021 Jan 6 18:50:38 ubuntu-x3850-2 auth-server 127.0.0.1 - - [06/Jan/2011:23:50:38 +0000] "PUT /account/test/tester HTTP/1.0" 503 - "-" "-" - - - - - - - - - "-" "127.0.0.1" "-" 0.0288

Any ideas on how to fix this? Thanks!