Bugzilla (bugzilla.redhat.com) will be under maintenance for infrastructure upgrades and will not be available on July 31st between 12:30 AM - 05:30 AM UTC. We appreciate your understanding and patience. You can follow status.redhat.com for details.
Bug 732939 - [PATCH] can't set fuse-s3fs options/params through the arguments
Summary: [PATCH] can't set fuse-s3fs options/params through the arguments
Alias: None
Product: Fedora
Classification: Fedora
Component: fuse-s3fs
Version: 15
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
Assignee: Neil Horman
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2011-08-24 08:27 UTC by Muayyad Alsadi
Modified: 2011-09-19 22:57 UTC (History)
1 user (show)

Fixed In Version: fuse-s3fs-0.7-6.fc15
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2011-09-19 22:57:21 UTC
Type: ---

Attachments (Terms of Use)

Description Muayyad Alsadi 2011-08-24 08:27:56 UTC
Description of problem:
can't set options/params through the arguments

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. don't export env access key/ security key
2. set them using -o

Additional info:
the following lines in the code should be fixed

               #Set the env correctly
               if self.AWS_ACCESS_KEY_ID != None:
               if self.AWS_SECRET_ACCESS_KEY != None:

               if (os.environ.get("AWS_ACCESS_KEY_ID") == None):
                       print "Need to specify AWS_ACCESS_KEY_ID"
               if (os.environ.get("AWS_SECRET_ACCESS_KEY") == None):
                       print "Need to specify AWS_SECRET_ACCESS_KEY"

as python docs says < http://docs.python.org/library/os.html#os.putenv

When putenv() is supported, assignments to items in os.environ are
automatically translated into corresponding calls to putenv();
however, calls to putenv() don’t update os.environ, so it is actually
preferable to assign to items of os.environ.

the code above set's env with putenv then read it with environ
the docs says just set it with environ and it will call putenv

so it should be

               if self.AWS_ACCESS_KEY_ID != None:
               if self.AWS_SECRET_ACCESS_KEY != None: os.environ["AWS_SECRET_ACCESS_KEY"]=self.AWS_SECRET_ACCESS_KEY

Comment 1 Fedora Update System 2011-08-24 14:02:22 UTC
fuse-s3fs-0.7-6.fc15 has been submitted as an update for Fedora 15.

Comment 2 Fedora Update System 2011-08-26 19:09:38 UTC
Package fuse-s3fs-0.7-6.fc15:
* should fix your issue,
* was pushed to the Fedora 15 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing fuse-s3fs-0.7-6.fc15'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).

Comment 3 Fedora Update System 2011-09-19 22:57:16 UTC
fuse-s3fs-0.7-6.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.

Note You need to log in before you can comment on or make changes to this bug.