Hello community, here is the log from the commit of package python3-ec2imgutils for openSUSE:Factory checked in at 2020-12-12 20:32:04 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python3-ec2imgutils (Old) and /work/SRC/openSUSE:Factory/.python3-ec2imgutils.new.2328 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python3-ec2imgutils" Sat Dec 12 20:32:04 2020 rev:13 rq:855360 version:9.0.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python3-ec2imgutils/python3-ec2imgutils.changes 2020-09-01 20:09:51.792662423 +0200 +++ /work/SRC/openSUSE:Factory/.python3-ec2imgutils.new.2328/python3-ec2imgutils.changes 2020-12-12 20:36:07.390087348 +0100 @@ -1,0 +2,7 @@ +Sat Dec 12 12:21:19 UTC 2020 - Robert Schweikert <rjsch...@suse.com> + +- Update to version 9.0.1 (bsc#1179890) + + Support gp3 as option to create EBS root volume. This allows image + creation with the new storage class and save 20% of cost. + +------------------------------------------------------------------- Old: ---- ec2imgutils-9.0.0.tar.bz2 New: ---- ec2imgutils-9.0.1.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python3-ec2imgutils.spec ++++++ --- /var/tmp/diff_new_pack.oTwTuH/_old 2020-12-12 20:36:07.982087966 +0100 +++ /var/tmp/diff_new_pack.oTwTuH/_new 2020-12-12 20:36:07.986087971 +0100 @@ -19,7 +19,7 @@ %define upstream_name ec2imgutils Name: python3-ec2imgutils -Version: 9.0.0 +Version: 9.0.1 Release: 0 Summary: Image management utilities for AWS EC2 License: GPL-3.0-or-later ++++++ ec2imgutils-9.0.0.tar.bz2 -> ec2imgutils-9.0.1.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ec2imgutils-9.0.0/ec2uploadimg new/ec2imgutils-9.0.1/ec2uploadimg --- old/ec2imgutils-9.0.0/ec2uploadimg 2020-08-24 19:56:36.351121300 +0200 +++ new/ec2imgutils-9.0.1/ec2uploadimg 2020-12-12 13:19:51.636172372 +0100 @@ -80,7 +80,7 @@ '-B', '--backing-store', default='ssd', dest='backingStore', - help='The backing store type, (mag|ssd), default ssd (Optional)', + help='The backing store type, (mag|ssd), or one of the EBS storage IDs', metavar='EC2_BACKING_STORE' ) argparse.add_argument( diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ec2imgutils-9.0.0/lib/ec2imgutils/VERSION new/ec2imgutils-9.0.1/lib/ec2imgutils/VERSION --- old/ec2imgutils-9.0.0/lib/ec2imgutils/VERSION 2020-08-24 19:56:36.347121332 +0200 +++ new/ec2imgutils-9.0.1/lib/ec2imgutils/VERSION 2020-12-12 13:19:51.632172408 +0100 @@ -1 +1 @@ -9.0.0 +9.0.1 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ec2imgutils-9.0.0/lib/ec2imgutils/ec2uploadimg.py new/ec2imgutils-9.0.1/lib/ec2imgutils/ec2uploadimg.py --- old/ec2imgutils-9.0.0/lib/ec2imgutils/ec2uploadimg.py 2020-08-24 19:56:36.347121332 +0200 +++ new/ec2imgutils-9.0.1/lib/ec2imgutils/ec2uploadimg.py 2020-12-12 13:19:51.636172372 +0100 @@ -305,8 +305,10 @@ if self.backing_store == 'mag': backing_store = 'standard' - else: + elif self.backing_store == 'ssd': backing_store = 'gp2' + else: + backing_store = self.backing_store block_device_map = { 'DeviceName': root_device_name, @@ -588,7 +590,7 @@ username=self.inst_user_name, hostname=instance_ip ) - except Exception: + except (Exception, ConnectionResetError): if self.log_level == logging.DEBUG: print('. ', end=' ') sys.stdout.flush() diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ec2imgutils-9.0.0/lib/ec2imgutils/ec2utils.py new/ec2imgutils-9.0.1/lib/ec2imgutils/ec2utils.py --- old/ec2imgutils-9.0.0/lib/ec2imgutils/ec2utils.py 2020-08-24 19:56:36.347121332 +0200 +++ new/ec2imgutils-9.0.1/lib/ec2imgutils/ec2utils.py 2020-12-12 13:19:51.636172372 +0100 @@ -205,10 +205,22 @@ if command_args.regions: regions = command_args.regions.split(',') else: - regions = boto3.session.Session( + session = boto3.session.Session( aws_access_key_id=access_key, aws_secret_access_key=secret_key - ).get_available_regions('ec2') + ) + sts_client = session.client('sts') + + try: + # arn format is always "arn:{partition_name}" + partition = sts_client.get_caller_identity()['Arn'].split(':')[1] + except (KeyError, IndexError): + partition = 'aws' # default to public aws partition + + regions = session.get_available_regions( + 'ec2', + partition_name=partition + ) return regions diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ec2imgutils-9.0.0/man/man1/ec2uploadimg.1 new/ec2imgutils-9.0.1/man/man1/ec2uploadimg.1 --- old/ec2imgutils-9.0.0/man/man1/ec2uploadimg.1 2020-08-24 19:56:36.347121332 +0200 +++ new/ec2imgutils-9.0.1/man/man1/ec2uploadimg.1 2020-12-12 13:19:51.636172372 +0100 @@ -50,7 +50,8 @@ in the configuration file. .IP "-B --backing-store EC2_BACKING_STORE" Specifies the backing store type for the AMI to be created. The uploaded -image is an EBS (Elastic Block Store) image and my be registered as using +image is an EBS (Elastic Block Store) backed image and my be registered +as using .I SSD or .I Magnetic @@ -58,7 +59,16 @@ .I ssd, .I mag, or -.I ssd,mag. +.I one of the known storage classes. +The generic identifier +.I ssd +is mapped to the +.I gp2 +storage class, and the +.I mag +identifier is mapped to the +.I standard +storage class. .IP "--billing-codes BILLING_CODES" Specifies the billing product codes to apply to the image during registration. This functionality is restricted to specific accounts _______________________________________________ openSUSE Commits mailing list -- commit@lists.opensuse.org To unsubscribe, email commit-le...@lists.opensuse.org List Netiquette: https://en.opensuse.org/openSUSE:Mailing_list_netiquette List Archives: https://lists.opensuse.org/archives/list/commit@lists.opensuse.org