Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package oci-cli for openSUSE:Factory checked in at 2023-03-06 18:56:39 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/oci-cli (Old) and /work/SRC/openSUSE:Factory/.oci-cli.new.31432 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "oci-cli" Mon Mar 6 18:56:39 2023 rev:38 rq:1069650 version:3.23.2 Changes: -------- --- /work/SRC/openSUSE:Factory/oci-cli/oci-cli.changes 2023-02-24 18:08:05.585400139 +0100 +++ /work/SRC/openSUSE:Factory/.oci-cli.new.31432/oci-cli.changes 2023-03-06 18:56:41.941016057 +0100 @@ -1,0 +2,13 @@ +Wed Mar 1 12:44:44 UTC 2023 - John Paul Adrian Glaubitz <adrian.glaub...@suse.com> + +- Update to version 3.23.2 + * Support for new command allowing on-demand bootstrap script + execution in the Big Data service + * ``oci bds instance execute-bootstrap-script`` + * Support for calling Oracle Cloud Infrastructure services in the eu-dcc-rating-1, + eu-dcc-rating-2, eu-dcc-dublin-1, eu-dcc-dublin-2, and eu-dcc-milan-2 regions +- Refresh patches for new version + * oc_relax-python-depends.patch +- Update BuildRequires and Requires from setup.py + +------------------------------------------------------------------- Old: ---- oci-cli-3.23.1.tar.gz New: ---- oci-cli-3.23.2.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ oci-cli.spec ++++++ --- /var/tmp/diff_new_pack.y7AHkv/_old 2023-03-06 18:56:43.485023936 +0100 +++ /var/tmp/diff_new_pack.y7AHkv/_new 2023-03-06 18:56:43.489023956 +0100 @@ -28,7 +28,7 @@ %bcond_with test %endif Name: oci-cli%{psuffix} -Version: 3.23.1 +Version: 3.23.2 Release: 0 Summary: Oracle Cloud Infrastructure CLI License: Apache-2.0 @@ -46,7 +46,7 @@ BuildRequires: python3-cryptography >= 3.2.1 BuildRequires: python3-devel BuildRequires: python3-jmespath >= 0.10.0 -BuildRequires: python3-oci-sdk >= 2.93.0 +BuildRequires: python3-oci-sdk >= 2.93.1 BuildRequires: python3-pyOpenSSL >= 22.1.0 BuildRequires: python3-python-dateutil >= 2.5.3 BuildRequires: python3-pytz >= 2016.10 @@ -82,7 +82,7 @@ Requires: python3-click >= 8.0.4 Requires: python3-cryptography >= 3.2.1 Requires: python3-jmespath >= 0.10.0 -Requires: python3-oci-sdk >= 2.93.0 +Requires: python3-oci-sdk >= 2.93.1 Requires: python3-prompt_toolkit >= 3.0.29 Requires: python3-pyOpenSSL >= 22.1.0 Requires: python3-python-dateutil >= 2.5.3 ++++++ oc_relax-python-depends.patch ++++++ --- /var/tmp/diff_new_pack.y7AHkv/_old 2023-03-06 18:56:43.517024099 +0100 +++ /var/tmp/diff_new_pack.y7AHkv/_new 2023-03-06 18:56:43.521024120 +0100 @@ -1,6 +1,6 @@ -diff -Nru oci-cli-3.23.1.orig/requirements.txt oci-cli-3.23.1/requirements.txt ---- oci-cli-3.23.1.orig/requirements.txt 2023-02-21 23:16:45.000000000 +0100 -+++ oci-cli-3.23.1/requirements.txt 2023-02-23 14:24:57.884277003 +0100 +diff -Nru oci-cli-3.23.2.orig/requirements.txt oci-cli-3.23.2/requirements.txt +--- oci-cli-3.23.2.orig/requirements.txt 2023-02-28 08:57:36.000000000 +0100 ++++ oci-cli-3.23.2/requirements.txt 2023-03-01 13:44:10.037647032 +0100 @@ -2,42 +2,42 @@ # (https://pip.pypa.io/en/stable/reference/pip_install/#requirements-file-format), # you may need to use the --extra-index-url option instead. @@ -18,7 +18,7 @@ -jmespath==0.10.0 -ndg-httpsclient==0.4.2 -mock==2.0.0 --oci==2.93.0 +-oci==2.93.1 -packaging==20.2 -pluggy==0.13.0 -py==1.10.0 @@ -37,7 +37,7 @@ +jmespath>=0.10.0 +ndg-httpsclient>=0.4.2 +mock>=2.0.0 -+oci>=2.93.0 ++oci>=2.93.1 +packaging>=20.2 +pluggy>=0.13.0 +py>=1.10.0 @@ -78,15 +78,15 @@ -setuptools==59.6.0; python_version == '3.6' \ No newline at end of file +setuptools>=59.6.0; python_version >= '3.6' -diff -Nru oci-cli-3.23.1.orig/setup.py oci-cli-3.23.1/setup.py ---- oci-cli-3.23.1.orig/setup.py 2023-02-21 23:16:45.000000000 +0100 -+++ oci-cli-3.23.1/setup.py 2023-02-23 14:25:34.776702721 +0100 +diff -Nru oci-cli-3.23.2.orig/setup.py oci-cli-3.23.2/setup.py +--- oci-cli-3.23.2.orig/setup.py 2023-02-28 08:57:36.000000000 +0100 ++++ oci-cli-3.23.2/setup.py 2023-03-01 13:43:24.297667520 +0100 @@ -29,23 +29,23 @@ readme = f.read() requires = [ -- 'oci==2.93.0', -+ 'oci>=2.93.0', +- 'oci==2.93.1', ++ 'oci>=2.93.1', 'arrow>=1.0.0', 'certifi', - 'click==7.1.2', ++++++ oci-cli-3.23.1.tar.gz -> oci-cli-3.23.2.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oci-cli-3.23.1/CHANGELOG.rst new/oci-cli-3.23.2/CHANGELOG.rst --- old/oci-cli-3.23.1/CHANGELOG.rst 2023-02-21 23:16:45.000000000 +0100 +++ new/oci-cli-3.23.2/CHANGELOG.rst 2023-02-28 08:57:36.000000000 +0100 @@ -6,6 +6,16 @@ The format is based on `Keep a Changelog <http://keepachangelog.com/>`__. +3.23.2 - 2023-02-28 +-------------------- +Added +~~~~~ +* Support for new command allowing on-demand bootstrap script execution in the Big Data service + + * ``oci bds instance execute-bootstrap-script`` + +* Support for calling Oracle Cloud Infrastructure services in the eu-dcc-rating-1, eu-dcc-rating-2, eu-dcc-dublin-1, eu-dcc-dublin-2, and eu-dcc-milan-2 regions + 3.23.1 - 2023-02-21 -------------------- Added diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oci-cli-3.23.1/requirements.txt new/oci-cli-3.23.2/requirements.txt --- old/oci-cli-3.23.1/requirements.txt 2023-02-21 23:16:45.000000000 +0100 +++ new/oci-cli-3.23.2/requirements.txt 2023-02-28 08:57:36.000000000 +0100 @@ -14,7 +14,7 @@ jmespath==0.10.0 ndg-httpsclient==0.4.2 mock==2.0.0 -oci==2.93.0 +oci==2.93.1 packaging==20.2 pluggy==0.13.0 py==1.10.0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oci-cli-3.23.1/services/bds/src/oci_cli_bds/generated/bds_cli.py new/oci-cli-3.23.2/services/bds/src/oci_cli_bds/generated/bds_cli.py --- old/oci-cli-3.23.1/services/bds/src/oci_cli_bds/generated/bds_cli.py 2023-02-21 23:16:45.000000000 +0100 +++ new/oci-cli-3.23.2/services/bds/src/oci_cli_bds/generated/bds_cli.py 2023-02-28 08:57:36.000000000 +0100 @@ -1228,6 +1228,67 @@ cli_util.render_response(result, ctx) +@bds_instance_group.command(name=cli_util.override('bds.execute_bootstrap_script.command_name', 'execute-bootstrap-script'), help=u"""Execute bootstrap script. \n[Command Reference](executeBootstrapScript)""") +@cli_util.option('--bds-instance-id', required=True, help=u"""The OCID of the cluster.""") +@cli_util.option('--cluster-admin-password', required=True, help=u"""Base-64 encoded password for the cluster admin user.""") +@cli_util.option('--bootstrap-script-url', help=u"""pre-authenticated URL of the bootstrap script in Object Store that can be downloaded and executed.""") +@cli_util.option('--if-match', help=u"""For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value.""") +@cli_util.option('--wait-for-state', type=custom_types.CliCaseInsensitiveChoice(["ACCEPTED", "IN_PROGRESS", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED"]), multiple=True, help="""This operation asynchronously creates, modifies or deletes a resource and uses a work request to track the progress of the operation. Specify this option to perform the action and then wait until the work request reaches a certain state. Multiple states can be specified, returning on the first state. For example, --wait-for-state SUCCEEDED --wait-for-state FAILED would return on whichever lifecycle state is reached first. If timeout is reached, a return code of 2 is returned. For any other error, a return code of 1 is returned.""") +@cli_util.option('--max-wait-seconds', type=click.INT, help="""The maximum time to wait for the work request to reach the state defined by --wait-for-state. Defaults to 1200 seconds.""") +@cli_util.option('--wait-interval-seconds', type=click.INT, help="""Check every --wait-interval-seconds to see whether the work request has reached the state defined by --wait-for-state. Defaults to 30 seconds.""") +@json_skeleton_utils.get_cli_json_input_option({}) +@cli_util.help_option +@click.pass_context +@json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={}) +@cli_util.wrap_exceptions +def execute_bootstrap_script(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, bds_instance_id, cluster_admin_password, bootstrap_script_url, if_match): + + if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') + + kwargs = {} + if if_match is not None: + kwargs['if_match'] = if_match + kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id']) + + _details = {} + _details['clusterAdminPassword'] = cluster_admin_password + + if bootstrap_script_url is not None: + _details['bootstrapScriptUrl'] = bootstrap_script_url + + client = cli_util.build_client('bds', 'bds', ctx) + result = client.execute_bootstrap_script( + bds_instance_id=bds_instance_id, + execute_bootstrap_script_details=_details, + **kwargs + ) + if wait_for_state: + + if hasattr(client, 'get_work_request') and callable(getattr(client, 'get_work_request')): + try: + wait_period_kwargs = {} + if max_wait_seconds is not None: + wait_period_kwargs['max_wait_seconds'] = max_wait_seconds + if wait_interval_seconds is not None: + wait_period_kwargs['max_interval_seconds'] = wait_interval_seconds + + click.echo('Action completed. Waiting until the work request has entered state: {}'.format(wait_for_state), file=sys.stderr) + result = oci.wait_until(client, client.get_work_request(result.headers['opc-work-request-id']), 'status', wait_for_state, **wait_period_kwargs) + except oci.exceptions.MaximumWaitTimeExceeded as e: + # If we fail, we should show an error, but we should still provide the information to the customer + click.echo('Failed to wait until the work request entered the specified state. Outputting last known resource state', file=sys.stderr) + cli_util.render_response(result, ctx) + sys.exit(2) + except Exception: + click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state', file=sys.stderr) + cli_util.render_response(result, ctx) + raise + else: + click.echo('Unable to wait for the work request to enter the specified state', file=sys.stderr) + cli_util.render_response(result, ctx) + + @bds_instance_group.command(name=cli_util.override('bds.get_auto_scaling_configuration.command_name', 'get-auto-scaling-configuration'), help=u"""Returns details of the autoscale configuration identified by the given ID. \n[Command Reference](getAutoScalingConfiguration)""") @cli_util.option('--bds-instance-id', required=True, help=u"""The OCID of the cluster.""") @cli_util.option('--auto-scaling-configuration-id', required=True, help=u"""Unique Oracle-assigned identifier of the autoscale configuration.""") diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oci-cli-3.23.1/services/database/src/oci_cli_database/database_cli_extended.py new/oci-cli-3.23.2/services/database/src/oci_cli_database/database_cli_extended.py --- old/oci-cli-3.23.1/services/database/src/oci_cli_database/database_cli_extended.py 2023-02-21 23:16:45.000000000 +0100 +++ new/oci-cli-3.23.2/services/database/src/oci_cli_database/database_cli_extended.py 2023-02-28 08:57:36.000000000 +0100 @@ -2972,9 +2972,9 @@ # renaming db-system-storage-performance command group to storage-performance -cli_util.rename_command(database_cli, database_cli.db_root_group, database_cli.db_system_storage_performance_group, "storage-performance") +# cli_util.rename_command(database_cli, database_cli.db_root_group, database_cli.db_system_storage_performance_group, "storage-performance") # renaming db-system-compute-performance command group to compute-performance -cli_util.rename_command(database_cli, database_cli.db_root_group, database_cli.db_system_compute_performance_group, "compute-performance") +# cli_util.rename_command(database_cli, database_cli.db_root_group, database_cli.db_system_compute_performance_group, "compute-performance") # CLI-341 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oci-cli-3.23.1/services/rover/src/oci_cli_rover/rover_utils.py new/oci-cli-3.23.2/services/rover/src/oci_cli_rover/rover_utils.py --- old/oci-cli-3.23.1/services/rover/src/oci_cli_rover/rover_utils.py 2023-02-21 23:16:45.000000000 +0100 +++ new/oci-cli-3.23.2/services/rover/src/oci_cli_rover/rover_utils.py 2023-02-28 08:57:36.000000000 +0100 @@ -106,6 +106,12 @@ object_cli = cli_util.build_client('object_storage', 'object_storage', ctx) ctx.obj['region'] = region return object_cli + if 'default_values_from_file' in ctx.obj and 'os.endpoint' in ctx.obj['default_values_from_file']: + endpoint = ctx.obj['endpoint'] + ctx.obj['endpoint'] = ctx.obj['default_values_from_file']['os.endpoint'] + object_cli = cli_util.build_client('object_storage', 'object_storage', ctx) + ctx.obj['endpoint'] = endpoint + return object_cli return cli_util.build_client('object_storage', 'object_storage', ctx) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oci-cli-3.23.1/setup.py new/oci-cli-3.23.2/setup.py --- old/oci-cli-3.23.1/setup.py 2023-02-21 23:16:45.000000000 +0100 +++ new/oci-cli-3.23.2/setup.py 2023-02-28 08:57:36.000000000 +0100 @@ -29,7 +29,7 @@ readme = f.read() requires = [ - 'oci==2.93.0', + 'oci==2.93.1', 'arrow>=1.0.0', 'certifi', 'click==7.1.2', diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oci-cli-3.23.1/src/oci_cli/version.py new/oci-cli-3.23.2/src/oci_cli/version.py --- old/oci-cli-3.23.1/src/oci_cli/version.py 2023-02-21 23:16:45.000000000 +0100 +++ new/oci-cli-3.23.2/src/oci_cli/version.py 2023-02-28 08:57:36.000000000 +0100 @@ -2,4 +2,4 @@ # Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -__version__ = '3.23.1' +__version__ = '3.23.2'