{"action":"opened","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/28542","labels_url":"https://api.github.com/repos/saltstack/salt/issues/28542/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/28542/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/28542/events","html_url":"https://github.com/saltstack/salt/issues/28542","id":114929808,"number":28542,"title":"s3.get execution module returns error","user":{"login":"Ch3LL","id":6886822,"avatar_url":"https://avatars.githubusercontent.com/u/6886822?v=3","gravatar_id":"","url":"https://api.github.com/users/Ch3LL","html_url":"https://github.com/Ch3LL","followers_url":"https://api.github.com/users/Ch3LL/followers","following_url":"https://api.github.com/users/Ch3LL/following{/other_user}","gists_url":"https://api.github.com/users/Ch3LL/gists{/gist_id}","starred_url":"https://api.github.com/users/Ch3LL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ch3LL/subscriptions","organizations_url":"https://api.github.com/users/Ch3LL/orgs","repos_url":"https://api.github.com/users/Ch3LL/repos","events_url":"https://api.github.com/users/Ch3LL/events{/privacy}","received_events_url":"https://api.github.com/users/Ch3LL/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-03T22:58:08Z","updated_at":"2015-11-03T22:58:08Z","closed_at":null,"body":"I have setup s3fs with the following configuration settings:\r\n\r\n```\r\nfileserver_backend:\r\n  - roots\r\n  - s3fs\r\n\r\ns3.keyid: <keyid>\r\ns3.key: <key>\r\ns3.location: us-east-1\r\n\r\ns3.buckets:\r\n  - ch3lltests\r\n```\r\n\r\nDue to another bug I included the following PR into the salt code on my box: https://github.com/saltstack/salt/pull/28535\r\n\r\nWhen I run `salt '*' s3.get` I am receiving the following error:\r\n\r\n```\r\n[root@localhost utils]# salt '*' s3.get                                                                                                                        \r\n45.79.69.188:\r\n    |_\r\n      ----------\r\n      Code:\r\n          AuthorizationHeaderMalformed\r\n    |_\r\n      ----------\r\n      Message:\r\n          The authorization header is malformed; a non-empty region must be provided in the credential.\r\n    |_\r\n      ----------\r\n      RequestId:\r\n          <requestidnumber>\r\n    |_\r\n      ----------\r\n      HostId:\r\n          <hostidnumber>\r\n```\r\n\r\nHere is my debug logs:\r\n\r\n```\r\n2015-11-03 22:50:18,717 [salt.utils.lazy  ][DEBUG   ][27423] LazyLoaded local_cache.prep_jid\r\n2015-11-03 22:50:18,717 [salt.utils.event ][DEBUG   ][27423] Sending event - data = {'_stamp': '2015-11-03T22:50:18.717288', 'minions': ['45.79.69.188']}\r\n2015-11-03 22:50:18,718 [salt.utils.event ][DEBUG   ][27423] Sending event - data = {'tgt_type': 'glob', 'jid': '20151103225018716911', 'tgt': '*', '_stamp': '2015-11-03T22:50:18.717732', 'user': 'root', 'arg': [], 'fun': 's3.get', 'minions': ['45.79.69.188']}\r\n2015-11-03 22:50:18,718 [salt.master      ][INFO    ][27423] User root Published command s3.get with jid 20151103225018716911\r\n2015-11-03 22:50:18,719 [salt.master      ][DEBUG   ][27423] Published command details {'tgt_type': 'glob', 'jid': '20151103225018716911', 'tgt': '*', 'ret': '', 'user': 'root', 'arg': [], 'fun': 's3.get'}\r\n2015-11-03 22:50:22,222 [salt.utils.job   ][INFO    ][27437] Got return from 45.79.69.188 for job 20151103225018716911\r\n2015-11-03 22:50:22,222 [salt.utils.event ][DEBUG   ][27437] Sending event - data = {'fun_args': [], 'jid': '20151103225018716911', 'return': [{'Code': 'AuthorizationHeaderMalformed'}, {'Message': 'The authorization header is malformed; a non-empty region must be provided in the credential.'}, {'RequestId': '<requestidnumber'}, {'HostId': '<hostidnumber>'}], 'retcode': 0, 'success': True, 'cmd': '_return', '_stamp': '2015-11-03T22:50:22.222266', 'fun': 's3.get', 'id': '45.79.69.188'}\r\n2015-11-03 22:50:27,092 [salt.config      ][DEBUG   ][27414] Reading configuration from /etc/salt/master\r\n2015-11-03 22:50:27,155 [salt.config      ][DEBUG   ][27414] Including configuration from '/etc/salt/minion.d/_schedule.conf'\r\n2015-11-03 22:50:27,155 [salt.config      ][DEBUG   ][27414] Reading configuration from /etc/salt/minion.d/_schedule.conf\r\n2015-11-03 22:50:27,157 [salt.config      ][DEBUG   ][27414] Using cached minion ID from /etc/salt/minion_id: 45.79.69.188\r\n2015-11-03 22:50:27,158 [salt.config      ][DEBUG   ][27414] Reading configuration from /etc/salt/master\r\n2015-11-03 22:50:27,957 [salt.utils.lazy  ][DEBUG   ][27414] LazyLoaded local_cache.clean_old_jobs\r\n2015-11-03 22:50:27,962 [salt.utils.lazy  ][DEBUG   ][27414] Could not LazyLoad config.merge\r\n2015-11-03 22:50:27,962 [salt.fileserver  ][DEBUG   ][27414] Updating roots fileserver cache\r\n2015-11-03 22:50:27,962 [salt.fileserver  ][DEBUG   ][27414] Updating s3fs fileserver cache\r\n2015-11-03 22:50:27,963 [salt.loaded.int.fileserver.s3fs][DEBUG   ][27414] Refreshing buckets cache file\r\n2015-11-03 22:50:27,963 [salt.utils.aws   ][INFO    ][27414] us-east-1\r\n2015-11-03 22:50:27,963 [salt.utils.aws   ][INFO    ][27414] us-east-1\r\n2015-11-03 22:50:27,963 [salt.utils.aws   ][INFO    ][27414] us-east-1\r\n2015-11-03 22:50:27,964 [salt.utils.s3    ][DEBUG   ][27414] S3 Request: https://ch3lltests.s3.amazonaws.com/?\r\n2015-11-03 22:50:27,964 [salt.utils.s3    ][DEBUG   ][27414] S3 Headers::\r\n2015-11-03 22:50:27,964 [salt.utils.s3    ][DEBUG   ][27414]     Authorization:<auth information> [requests.packages.urllib3.connectionpool][INFO    ][27414] Starting new HTTPS connection (1): ch3lltests.s3.amazonaws.com\r\n2015-11-03 22:50:28,298 [requests.packages.urllib3.connectionpool][DEBUG   ][27414] \"GET / HTTP/1.1\" 200 None\r\n2015-11-03 22:50:28,301 [salt.utils.s3    ][DEBUG   ][27414] S3 Response Status Code: 200\r\n2015-11-03 22:50:28,302 [salt.loaded.int.fileserver.s3fs][DEBUG   ][27414] Writing buckets cache file\r\n2015-11-03 22:50:28,302 [salt.loaded.int.fileserver.s3fs][INFO    ][27414] Syncing local cache from S3...\r\n2015-11-03 22:50:28,302 [salt.loaded.int.fileserver.s3fs][INFO    ][27414] ch3lltests -  : test\r\n2015-11-03 22:50:28,303 [salt.loaded.int.fileserver.s3fs][INFO    ][27414] Sync local cache from S3 completed.\r\n2015-11-03 22:50:28,303 [salt.utils.verify][DEBUG   ][27414] This salt-master instance has accepted 1 minion keys.\r\n```\r\n\r\nHere is my salt versions report:\r\n\r\n```\r\n[root@localhost utils]# salt --versions-report                                                                                                                 \r\nSalt Version:\r\n           Salt: 2015.8.1\r\n \r\nDependency Versions:\r\n         Jinja2: 2.7.2\r\n       M2Crypto: 0.21.1\r\n           Mako: Not Installed\r\n         PyYAML: 3.10\r\n          PyZMQ: 14.3.1\r\n         Python: 2.7.5 (default, Jun 17 2014, 18:11:42)\r\n           RAET: Not Installed\r\n        Tornado: 4.1\r\n            ZMQ: 3.2.5\r\n           cffi: Not Installed\r\n       cherrypy: Not Installed\r\n       dateutil: Not Installed\r\n          gitdb: Not Installed\r\n      gitpython: Not Installed\r\n          ioflo: Not Installed\r\n        libnacl: Not Installed\r\n   msgpack-pure: Not Installed\r\n msgpack-python: 0.4.6\r\n   mysql-python: Not Installed\r\n      pycparser: Not Installed\r\n       pycrypto: 2.6.1\r\n         pygit2: Not Installed\r\n   python-gnupg: Not Installed\r\n          smmap: Not Installed\r\n        timelib: Not Installed\r\n \r\nSystem Versions:\r\n           dist: centos 7.0.1406 Core\r\n        machine: x86_64\r\n        release: 4.1.5-x86_64-linode61\r\n         system: CentOS Linux 7.0.1406 Core\r\n```"}}