Skip to content

Multiple tests fail: [Errno 2] No such file or directory: '/home/cloudtest/.azure/dummy_cli_config_dir/xGYaEIdmTuUx36nO/commandIndex.json' #28848

Open

Description

https://dev.azure.com/azclitools/public/_build/results?buildId=153071&view=logs&j=f127618a-a658-5219-f5b0-4a245c9227b8&t=60a7c4e7-f35f-5fef-6efb-f1b54b8cb075&l=1659

2024-04-28T07:37:24.0504576Z _______________ HDInsightClusterTests.test_hdinsight_application _______________
2024-04-28T07:37:24.0505013Z [gw0] linux -- Python 3.11.9 /mnt/vss/_work/1/s/env/bin/python
2024-04-28T07:37:24.0505234Z self = <azure.cli.testsdk.base.ExecutionResult object at 0x7fa73199eb50>
2024-04-28T07:37:24.0505467Z cli_ctx = <azure.cli.core.mock.DummyCli object at 0x7fa7324bb8d0>
2024-04-28T07:37:24.0506071Z command = 'hdinsight create -n hdicli-000003 -g hdicli-000001 -l southcentralus -p Password1! -t spark --no-validation-timeout --storage-account hdicli000002 --storage-container default --ssh-user sshuser --ssh-password Password1!'
2024-04-28T07:37:24.0506399Z expect_failure = False
2024-04-28T07:37:24.0506463Z 
2024-04-28T07:37:24.0506626Z     def _in_process_execute(self, cli_ctx, command, expect_failure=False):
2024-04-28T07:37:24.0506823Z         from io import StringIO
2024-04-28T07:37:24.0507021Z         from vcr.errors import CannotOverwriteExistingCassetteException
2024-04-28T07:37:24.0507201Z     
2024-04-28T07:37:24.0507431Z         if command.startswith('az '):
2024-04-28T07:37:24.0507598Z             command = command[3:]
2024-04-28T07:37:24.0507741Z     
2024-04-28T07:37:24.0507874Z         stdout_buf = StringIO()
2024-04-28T07:37:24.0508041Z         logging_buf = StringIO()
2024-04-28T07:37:24.0508181Z         try:
2024-04-28T07:37:24.0508384Z             # issue: stderr cannot be redirect in this form, as a result some failure information
2024-04-28T07:37:24.0508595Z             # is lost when command fails.
2024-04-28T07:37:24.0508818Z >           self.exit_code = cli_ctx.invoke(shlex.split(command), out_file=stdout_buf) or 0
2024-04-28T07:37:24.0508940Z 
2024-04-28T07:37:24.0509214Z src/azure-cli-testsdk/azure/cli/testsdk/base.py:302: 
2024-04-28T07:37:24.0509440Z _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
2024-04-28T07:37:24.0509764Z env/lib/python3.11/site-packages/knack/cli.py:245: in invoke
2024-04-28T07:37:24.0509981Z     exit_code = self.exception_handler(ex)
2024-04-28T07:37:24.0510319Z src/azure-cli-core/azure/cli/core/__init__.py:127: in exception_handler
2024-04-28T07:37:24.0510538Z     return handle_exception(ex)
2024-04-28T07:37:24.0510723Z _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
2024-04-28T07:37:24.0510902Z 
2024-04-28T07:37:24.0511222Z ex = FileNotFoundError(2, 'No such file or directory'), args = (), kwargs = {}
2024-04-28T07:37:24.0511335Z 
2024-04-28T07:37:24.0511661Z     def _handle_main_exception(ex, *args, **kwargs):  # pylint: disable=unused-argument
2024-04-28T07:37:24.0511923Z         if isinstance(ex, CannotOverwriteExistingCassetteException):
2024-04-28T07:37:24.0512169Z             # This exception usually caused by a no match HTTP request. This is a product error
2024-04-28T07:37:24.0512405Z             # that is caused by change of SDK invocation.
2024-04-28T07:37:24.0512566Z             raise ex
2024-04-28T07:37:24.0512694Z     
2024-04-28T07:37:24.0512837Z >       raise CliExecutionError(ex)
2024-04-28T07:37:24.0513116Z E       azure.cli.testsdk.exceptions.CliExecutionError: The CLI throws exception FileNotFoundError during execution and fails the command.
2024-04-28T07:37:24.0513282Z 
2024-04-28T07:37:24.0513594Z src/azure-cli-testsdk/azure/cli/testsdk/patches.py:35: CliExecutionError
2024-04-28T07:37:24.0513726Z 
2024-04-28T07:37:24.0513904Z During handling of the above exception, another exception occurred:
2024-04-28T07:37:24.0514010Z 
2024-04-28T07:37:24.0514271Z self = <azure.cli.command_modules.hdinsight.tests.latest.test_hdinsight_commands.HDInsightClusterTests testMethod=test_hdinsight_application>
2024-04-28T07:37:24.0514707Z storage_account_info = ('hdicli000002', 'veryFakedStorageAccountKey==')
2024-04-28T07:37:24.0514822Z 
2024-04-28T07:37:24.0515165Z     @ResourceGroupPreparer(name_prefix='hdicli-', location=location, random_name_length=12)
2024-04-28T07:37:24.0515599Z     @StorageAccountPreparer(name_prefix='hdicli', location=location, parameter_name='storage_account')
2024-04-28T07:37:24.0515878Z     def test_hdinsight_application(self, storage_account_info):
2024-04-28T07:37:24.0516170Z >       self._create_hdinsight_cluster(
2024-04-28T07:37:24.0516388Z             HDInsightClusterTests._wasb_arguments(storage_account_info),
2024-04-28T07:37:24.0516614Z             HDInsightClusterTests._with_explicit_ssh_creds()
2024-04-28T07:37:24.0516782Z         )
2024-04-28T07:37:24.0516833Z 
2024-04-28T07:37:24.0517189Z src/azure-cli/azure/cli/command_modules/hdinsight/tests/latest/test_hdinsight_commands.py:222: 
2024-04-28T07:37:24.0517450Z _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
2024-04-28T07:37:24.0517881Z src/azure-cli/azure/cli/command_modules/hdinsight/tests/latest/test_hdinsight_commands.py:577: in _create_hdinsight_cluster
2024-04-28T07:37:24.0518161Z     self.cmd(create_cluster_format, checks=[
2024-04-28T07:37:24.0518455Z src/azure-cli-testsdk/azure/cli/testsdk/base.py:176: in cmd
2024-04-28T07:37:24.0518720Z     return execute(self.cli_ctx, command, expect_failure=expect_failure).assert_with_checks(checks)
2024-04-28T07:37:24.0519070Z src/azure-cli-testsdk/azure/cli/testsdk/base.py:251: in __init__
2024-04-28T07:37:24.0519311Z     self._in_process_execute(cli_ctx, command, expect_failure=expect_failure)
2024-04-28T07:37:24.0519650Z src/azure-cli-testsdk/azure/cli/testsdk/base.py:314: in _in_process_execute
2024-04-28T07:37:24.0519846Z     raise ex.exception
2024-04-28T07:37:24.0520105Z env/lib/python3.11/site-packages/knack/cli.py:233: in invoke
2024-04-28T07:37:24.0520299Z     cmd_result = self.invocation.execute(args)
2024-04-28T07:37:24.0520606Z src/azure-cli-core/azure/cli/core/commands/__init__.py:518: in execute
2024-04-28T07:37:24.0520812Z     self.commands_loader.load_command_table(args)
2024-04-28T07:37:24.0521126Z src/azure-cli-core/azure/cli/core/__init__.py:419: in load_command_table
2024-04-28T07:37:24.0521324Z     index_result = command_index.get(args)
2024-04-28T07:37:24.0521603Z src/azure-cli-core/azure/cli/core/__init__.py:559: in get
2024-04-28T07:37:24.0521775Z     self.invalidate()
2024-04-28T07:37:24.0522044Z src/azure-cli-core/azure/cli/core/__init__.py:635: in invalidate
2024-04-28T07:37:24.0522223Z     self.INDEX[self._COMMAND_INDEX_VERSION] = ""
2024-04-28T07:37:24.0522592Z src/azure-cli-core/azure/cli/core/_session.py:75: in __setitem__
2024-04-28T07:37:24.0522757Z     self.save_with_retry()
2024-04-28T07:37:24.0523016Z src/azure-cli-core/azure/cli/core/_session.py:65: in save_with_retry
2024-04-28T07:37:24.0523181Z     self.save()
2024-04-28T07:37:24.0523320Z _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
2024-04-28T07:37:24.0523401Z 
2024-04-28T07:37:24.0523545Z self = <azure.cli.core._session.Session object at 0x7fa73392b3d0>
2024-04-28T07:37:24.0523630Z 
2024-04-28T07:37:24.0523744Z     def save(self):
2024-04-28T07:37:24.0523866Z         if self.filename:
2024-04-28T07:37:24.0524130Z >           with open(self.filename, 'w', encoding=self._encoding) as f:
2024-04-28T07:37:24.0524529Z E           FileNotFoundError: [Errno 2] No such file or directory: '/home/cloudtest/.azure/dummy_cli_config_dir/xGYaEIdmTuUx36nO/commandIndex.json'
2024-04-28T07:37:24.0524672Z 
2024-04-28T07:37:24.0524920Z src/azure-cli-core/azure/cli/core/_session.py:54: FileNotFoundError
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

Azure CLI TeamThe command of the issue is owned by Azure CLI teamCoreCLI core infrastructurequestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions