From c3cd05d370700da51dff00c440168a2b48d6189e4d161e9bc0f7d6053cd8b9d7 Mon Sep 17 00:00:00 2001 From: Robert Schweikert Date: Thu, 24 Jun 2021 12:36:19 +0000 Subject: [PATCH] Accepting request 901729 from home:glaubitz:branches:Cloud:Tools - Update to version 1.31.2 + Handle HTTPError and other unknown exception when fetching IMDS token + Support Oracle Enterprise Linux 8 - from version 1.31.1 + Support fallback to mount with mount target ip address when DNS resolution fails + Bump py from 1.8.0 to 1.10.0 - from version 1.30.2 + Add helper message when config file on instance is not latest + Fix the throughput regression due to read_ahead configuration change on Linux distribution with kernel version 5.4.x and above - from version 1.30.1 + Support mounting to specific AZ mount target + Revert "Support mounting to specific AZ mount target" + Support mounting to specific AZ mount target + Use regional AWS STS endpoints instead of the global endpoint to reduce latency - from version 1.29.1-mac + Fix issue where state files are removed after mount on EC2 instances running on MacOS Big Sur + Add support for EC2 Mac instances running macOS Big Sur - from version 1.29.1 + Update the python dependency to python3 + Fix typo - from version 1.28.2 + Fix the issue that mounting with IAM authorization with iam role does not work with IMDSv2 - from version 1.28.1 + Support publishing mount success/failure notification via CloudWatch log + filename of .deb-package now includes architecture - from version 1.27.1 + Merge PR #60 on GitHub. Adds support for AssumeRoleWithWebIdentity. OBS-URL: https://build.opensuse.org/request/show/901729 OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/aws-efs-utils?expand=0&rev=16 --- aws-efs-utils.changes | 88 ++++++++++++++++++++++++++++++++++++ aws-efs-utils.spec | 12 +++-- disable_mount_efs_test.patch | 21 +++++++++ v1.17.tar.gz | 3 -- v1.31.2.tar.gz | 3 ++ 5 files changed, 120 insertions(+), 7 deletions(-) create mode 100644 disable_mount_efs_test.patch delete mode 100644 v1.17.tar.gz create mode 100644 v1.31.2.tar.gz diff --git a/aws-efs-utils.changes b/aws-efs-utils.changes index e9db47c..eee733b 100644 --- a/aws-efs-utils.changes +++ b/aws-efs-utils.changes @@ -1,3 +1,91 @@ +------------------------------------------------------------------- +Thu Jun 24 11:57:02 UTC 2021 - John Paul Adrian Glaubitz + +- Update to version 1.31.2 + + Handle HTTPError and other unknown exception when fetching IMDS token + + Support Oracle Enterprise Linux 8 +- from version 1.31.1 + + Support fallback to mount with mount target ip address when DNS resolution fails + + Bump py from 1.8.0 to 1.10.0 +- from version 1.30.2 + + Add helper message when config file on instance is not latest + + Fix the throughput regression due to read_ahead configuration change + on Linux distribution with kernel version 5.4.x and above +- from version 1.30.1 + + Support mounting to specific AZ mount target + + Revert "Support mounting to specific AZ mount target" + + Support mounting to specific AZ mount target + + Use regional AWS STS endpoints instead of the global endpoint to reduce latency +- from version 1.29.1-mac + + Fix issue where state files are removed after mount on EC2 + instances running on MacOS Big Sur + + Add support for EC2 Mac instances running macOS Big Sur +- from version 1.29.1 + + Update the python dependency to python3 + + Fix typo +- from version 1.28.2 + + Fix the issue that mounting with IAM authorization with + iam role does not work with IMDSv2 +- from version 1.28.1 + + Support publishing mount success/failure notification via CloudWatch log + + filename of .deb-package now includes architecture +- from version 1.27.1 + + Merge PR #60 on GitHub. Adds support for AssumeRoleWithWebIdentity. + + Add support for AssumeRoleWithWebIdentity +- from version 1.26.3 + + Fix an issue where watchdog crashed during restart because stunnel + was killed and pid key was removed from state file +- from version 1.26.2 + + Fixes an issue with watchdog where it sometimes fails to restart stunnels in + efs-csi-driver container * Fixes an issue where fs cannot be mounted with tls + using systemd.automount-units due to mountpoint check + + Revert "Fixes an issue with watchdog where it sometimes fails to restart stunnels + in efs-csi-driver container" + + Fixes an issue with watchdog where it sometimes fails to restart stunnels in + efs-csi-driver container + + Remove non-ascii character in dist/efs-utils.conf +- from version 1.25-3 + + Check if mountpoint is already mounted beforehand for tls mount + + Bug fix and enhancement, support fedora +- from version 1.25-2 + + Fix python3 IAM role name encoded format, add optional + override for stunnel log + + Encode IAM role name to UTF-8 +- from version 1.25-1 + + Create self-signed certificate for tls-only mount + + add CentOS 8 support +- from version 1.24 + + Fix the malformed certificate info + + bump the release id to 3 + + Use IMDSv1 by default, and use IMDSv2 where required + + Revert "Use IMDSv1 by default, and fall back to IMDSv2 if necessary" + + Use IMDSv1 by default, and fall back to IMDSv2 if necessary + + Modify rhel8-support.sh to handle Fedora as well, and rename it + + Remove which from DEB package dependency + + List which as dependency to search command exec path + + Enable region sourcing from efs-utils configuration file and fix + stunnel exec path issue in openSUSE + + Update rpm changelog for v1.23-2, fix circleCI build issue +- from version 1.23 + + Add support for Amazon Elastic Container Service +- from version 1.22 + + Improvements to metadata retrieval and IAM authentication +- from version 1.21 + + Improvements to auth and access point support +- from version 1.20 + + Fixes the mount issue with full DNS name in the AWS China Regions; + Upgrades unit test coverage version dependency to enable accurate + python3.8 coverage test +- from version 1.19 + + Added region localization, Integrate repository with CircleCI to enable + package build visualization, Unit tests bug fixes for python3.5 +- from version 1.18 + + Support IAM authentication and access points. +- Add patch to disable mount_efs_test which requires networking + + disable_mount_efs_test.patch +- Add openssl to BuildRequires, required for testsuite +- Update Requires from requirements.txt + ------------------------------------------------------------------- Tue Nov 3 15:03:24 UTC 2020 - Franck Bui diff --git a/aws-efs-utils.spec b/aws-efs-utils.spec index 2c3e6ef..59bf5a4 100644 --- a/aws-efs-utils.spec +++ b/aws-efs-utils.spec @@ -1,7 +1,7 @@ # # spec file for package aws-efs-utils # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,21 +17,24 @@ Name: aws-efs-utils -Version: 1.17 +Version: 1.31.2 Release: 0 Summary: Utilities for using the EFS file systems License: MIT Group: System/Management URL: https://github.com/aws/efs-utils Source0: https://github.com/aws/efs-utils/archive/v%{version}.tar.gz +Patch0: disable_mount_efs_test.patch +BuildRequires: openssl BuildRequires: python3-attrs >= 17.4.0 -BuildRequires: python3-coverage >= 4.5 +BuildRequires: python3-botocore >= 1.17.53 +BuildRequires: python3-coverage >= 4.5.4 BuildRequires: python3-flake8 >= 3.7.9 BuildRequires: python3-mccabe >= 0.6.1 BuildRequires: python3-mock >= 2.0.0 BuildRequires: python3-pbr >= 3.1.1 BuildRequires: python3-pluggy >= 0.13.0 -BuildRequires: python3-py >= 1.8.0 +BuildRequires: python3-py >= 1.10.0 BuildRequires: python3-pycodestyle >= 2.5.0 BuildRequires: python3-pyflakes >= 2.1.1 BuildRequires: python3-pytest >= 4.6.7 @@ -52,6 +55,7 @@ This package provides utilities for using the EFS file systems. %prep %setup -n efs-utils-%{version} +%patch0 -p1 find . -name "*.py" -exec sed -i 's/env python/python3/' {} + %build diff --git a/disable_mount_efs_test.patch b/disable_mount_efs_test.patch new file mode 100644 index 0000000..70e66c7 --- /dev/null +++ b/disable_mount_efs_test.patch @@ -0,0 +1,21 @@ +diff -Nru efs-utils-1.31.2.orig/Makefile efs-utils-1.31.2/Makefile +--- efs-utils-1.31.2.orig/Makefile 2021-06-17 17:05:57.000000000 +0200 ++++ efs-utils-1.31.2/Makefile 2021-06-24 13:55:03.285623213 +0200 +@@ -57,5 +57,5 @@ + + .PHONY: test + test: +- pytest ++ pytest --ignore=test/mount_efs_test + flake8 +diff -Nru efs-utils-1.31.2.orig/setup.cfg efs-utils-1.31.2/setup.cfg +--- efs-utils-1.31.2.orig/setup.cfg 2021-06-17 17:05:57.000000000 +0200 ++++ efs-utils-1.31.2/setup.cfg 2021-06-24 13:54:45.397645746 +0200 +@@ -6,7 +6,6 @@ + addopts = + --verbose + --html build/pytest/index.html +- --cov mount_efs + --cov watchdog + --cov-report html:build/coverage + --cov-fail-under 80 diff --git a/v1.17.tar.gz b/v1.17.tar.gz deleted file mode 100644 index 7e3057e..0000000 --- a/v1.17.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2d535100e3cd1fe22dec918f21f555993d9675214df83ac20d4e8621131d3078 -size 31263 diff --git a/v1.31.2.tar.gz b/v1.31.2.tar.gz new file mode 100644 index 0000000..18e13f1 --- /dev/null +++ b/v1.31.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3619127427178795a9fc76ae23b4e8603e4cfd9f5330e9f3ce44fddc21fe85cb +size 101173