Saltstack-2018.3-使用fileserver_backend.conf进行s3fs挂载不起作用

时间:2019-02-03 03:49:09

标签: salt-stack s3fs

我正在使用SaltStack 2018.3,并且即使重新启动Salt-master后2小时,使用fileserver_backend进行的s3fs挂载也无法从s3fs挂载点下载文件。 s3fs挂载是否已损坏或某些参数已更改?我可以从s3存储桶中使用相同的访问密钥和秘密访问密钥,并且文件下载成功

我已经在salt-master配置目录路径中创建了一个fileserver_backend配置文件,并重新启动了salt-master。但是文件没有从s3fs成功下载,有人在这方面可以帮助我吗?

Traceback (most recent call last): 
File "/usr/lib/python2.7/site-packages/salt/master.py", line 448, in _do_update update_func(*args)
File "/usr/lib/python2.7/site-packages/salt/fileserver/s3fs.py", line 119, in update_get_file_from_s3(metadata, saltenv, bucket, file_path, cached_file_path)
File "/usr/lib/python2.7/site-packages/salt/fileserver/s3fs.py", line 687, in _get_file_from_s3 https_enable=https_enable,
File "/usr/lib/python2.7/site-packages/salt/utils/s3.py", line 244, in query 'Failed to get file. {0}: {1}'.format(err_code, err_msg))
CommandExecutionError: Failed to get file. AccessDenied: Access Denied 2019-02-03 03:40:53,281 [salt.master      :452 ][ERROR   ][19724] Uncaught exception while updating s3fs fileserver cache

代码:

fileserver_backend:
   - s3fs


 s3.buckets:
   - <s3 bucket>

          s3.service_url:
            s3.amazonaws.com

          ext_pillar:
            - s3:
                 keyid: <>
                 key: <>
                 bucket: <pillar bucket>
                 multiple_env: False
                 environment: base
                 prefix: pillars
                 verify_ssl: False
                 service_url: s3.amazonaws.com 

0 个答案:

没有答案