listing object fails
przy odpalaniu akcji leci error:
fatal: [localhost]: FAILED! => {"changed": false, "cmd": ["aws", "s3api", "list-object-versions", "--bucket", "mariadb-backup", "--endpoint-url", "https://s3.storage.task.gda.pl", "--prefix", ""], "delta": "0:00:00.423787", "end": "2024-09-16 10:05:48.915144", "msg": "non-zero return code", "rc": 1, "start": "2024-09-16 10:05:48.491357", "stderr": "Traceback (most recent call last):\n File \"/usr/local/bin/aws\", line 27, in <module>\n sys.exit(main())\n File \"/usr/local/bin/aws\", line 23, in main\n return awscli.clidriver.main()\n File \"/usr/local/lib/python3.10/dist-packages/awscli/clidriver.py\", line 69, in main\n driver = create_clidriver()\n File \"/usr/local/lib/python3.10/dist-packages/awscli/clidriver.py\", line 78, in create_clidriver\n load_plugins(session.full_config.get('plugins', {}),\n File \"/usr/local/lib/python3.10/dist-packages/awscli/plugin.py\", line 44, in load_plugins\n modules = _import_plugins(plugin_mapping)\n File \"/usr/local/lib/python3.10/dist-packages/awscli/plugin.py\", line 61, in _import_plugins\n module = __import__(path, fromlist=[module])\n File \"/usr/local/lib/python3.10/dist-packages/awscli/handlers.py\", line 78, in <module>\n from awscli.customizations.s3.s3 import s3_plugin_initialize\n File \"/usr/local/lib/python3.10/dist-packages/awscli/customizations/s3/s3.py\", line 15, in <module>\n from awscli.customizations.s3.subcommands import ListCommand, WebsiteCommand, \\\n File \"/usr/local/lib/python3.10/dist-packages/awscli/customizations/s3/subcommands.py\", line 18, in <module>\n from botocore.utils import is_s3express_bucket\nImportError: cannot import name 'is_s3express_bucket' from 'botocore.utils' (/usr/local/lib/python3.10/dist-packages/botocore/utils.py)", "stderr_lines": ["Traceback (most recent call last):", " File \"/usr/local/bin/aws\", line 27, in <module>", " sys.exit(main())", " File \"/usr/local/bin/aws\", line 23, in main", " return awscli.clidriver.main()", " File \"/usr/local/lib/python3.10/dist-packages/awscli/clidriver.py\", line 69, in main", " driver = create_clidriver()", " File \"/usr/local/lib/python3.10/dist-packages/awscli/clidriver.py\", line 78, in create_clidriver", " load_plugins(session.full_config.get('plugins', {}),", " File \"/usr/local/lib/python3.10/dist-packages/awscli/plugin.py\", line 44, in load_plugins", " modules = _import_plugins(plugin_mapping)", " File \"/usr/local/lib/python3.10/dist-packages/awscli/plugin.py\", line 61, in _import_plugins", " module = __import__(path, fromlist=[module])", " File \"/usr/local/lib/python3.10/dist-packages/awscli/handlers.py\", line 78, in <module>", " from awscli.customizations.s3.s3 import s3_plugin_initialize", " File \"/usr/local/lib/python3.10/dist-packages/awscli/customizations/s3/s3.py\", line 15, in <module>", " from awscli.customizations.s3.subcommands import ListCommand, WebsiteCommand, \\", " File \"/usr/local/lib/python3.10/dist-packages/awscli/customizations/s3/subcommands.py\", line 18, in <module>", " from botocore.utils import is_s3express_bucket", "ImportError: cannot import name 'is_s3express_bucket' from 'botocore.utils' (/usr/local/lib/python3.10/dist-packages/botocore/utils.py)"], "stdout": "", "stdout_lines": []}
wyglada na to ze problemem jest wersja botocore i boto3 (w kontenerze ansible 24.03 instalowane sa starsze wersje niz te ktore juz są).
Wg changeloga ta zmiana powinna byla wejsc w !28 (diffs) ale nie weszla.
Edited by Cyprian Kleist