Bug 678452

Summary: [abrt] fuse-s3fs-0.7-4.fc12: connection.py:184:__init__:AttributeError: S3Connection instance has no attribute 'aws_secret_access_key'
Product: [Fedora] Fedora Reporter: saulo <sauloal>
Component: fuse-s3fsAssignee: Neil Horman <nhorman>
Status: CLOSED INSUFFICIENT_DATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 14CC: nhorman
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:10562adb
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-07-18 13:13:38 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
File: backtrace none

Description saulo 2011-02-18 00:51:06 UTC
abrt version: 1.1.14
architecture: x86_64
cmdline: /usr/bin/python /usr/bin/s3fs -f sauloplant
component: fuse-s3fs
executable: /usr/bin/s3fs
kernel: 2.6.35.10-74.fc14.x86_64
package: fuse-s3fs-0.7-4.fc12
reason: connection.py:184:__init__:AttributeError: S3Connection instance has no attribute 'aws_secret_access_key'
release: Fedora release 14 (Laughlin)
time: 1297989777
uid: 500

backtrace
-----
connection.py:184:__init__:AttributeError: S3Connection instance has no attribute 'aws_secret_access_key'

Traceback (most recent call last):
  File "/usr/bin/s3fs", line 1532, in <module>
    main()
  File "/usr/bin/s3fs", line 1517, in main
    if fs.setup() == False:
  File "/usr/bin/s3fs", line 915, in setup
    self.blockdev = S3Drive(self.bucket, self.host)
  File "/usr/bin/s3fs", line 370, in __init__
    self.connection = S3Connection()
  File "/usr/lib/python2.7/site-packages/boto/s3/connection.py", line 104, in __init__
    path=path)
  File "/usr/lib/python2.7/site-packages/boto/connection.py", line 184, in __init__
    self.hmac = hmac.new(self.aws_secret_access_key, digestmod=sha)
AttributeError: S3Connection instance has no attribute 'aws_secret_access_key'

Local variables in innermost frame:
proxy_user: None
proxy_pass: None
self: S3Connection:s3.amazonaws.com
aws_access_key_id: None
proxy_port: None
host: 's3.amazonaws.com'
https_connection_factory: None
aws_secret_access_key: None
is_secure: True
debug: 0
path: '/'
port: None
proxy: None

How to reproduce
-----
1. passing access key through command line instead of environment
2.
3.

Comment 1 saulo 2011-02-18 00:51:12 UTC
Created attachment 479428 [details]
File: backtrace

Comment 2 Neil Horman 2011-02-18 13:33:20 UTC
Well, you're using the command incorrectly, to format a bucket with the -f option you also need to specify command mode (i.e the -C option).  You also don't need to specify /usr/bin/python, though it shouldn't hurt

That said, this backtrace still should not occur.  I just tried it locally and missing keys are caught correctly without backtrace on my F14 system:

1)  What do you set your amazon key environment variables too?
2) What version of python-boto are you running?

Comment 3 Neil Horman 2011-04-07 13:01:37 UTC
ping, any update?  I'll have to close this without the above information.