Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

az batch pool create command does not recognize the "interNodeCommunication": "false" element #124

Open
grandparoach opened this issue Jul 27, 2020 · 1 comment

Comments

@grandparoach
Copy link

This is autogenerated. Please review and update as needed.

Describe the bug

I have created a json template with the pool properties in it. When I try to create a new pool with a template that contains the "interNodeCommunication": "false" element, it generates the error message below.

Command Name
az batch pool create Extension Name: azure-batch-cli-extensions. Version: 6.0.0.

Errors:

Unexpect element interNodeCommunication in template
Traceback (most recent call last):
python3.6/site-packages/knack/cli.py, ln 215, in invoke
    cmd_result = self.invocation.execute(args)
cli/core/commands/__init__.py, ln 654, in execute
    raise ex
cli/core/commands/__init__.py, ln 718, in _run_jobs_serially
    results.append(self._run_job(expanded_arg, cmd_copy))
...
cliextensions/azure-batch-cli-extensions/azext_batch/custom.py, ln 66, in create_pool
    templates.validate_json_object(json_obj, pool)
azure-batch-cli-extensions/azext/batch/_template_utils.py, ln 1203, in validate_json_object
    raise ValueError('Unexpect element {} in template'.format(item))
ValueError: Unexpect element interNodeCommunication in template

To Reproduce:

Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.
If that element is in the template, the pool creation fails. If it is not in the template, the pool creation is successful.

  • Put any pre-requisite steps here...
  • az batch pool create --account-name {} --account-endpoint {} --account-key {} --template {}

Expected Behavior

Environment Summary

Linux-4.15.0-1091-azure-x86_64-with-debian-stretch-sid (Cloud Shell)
Python 3.6.10
Installer: DEB

azure-cli 2.9.0 *

Extensions:
azure-batch-cli-extensions 6.0.0

Additional Context

@grandparoach
Copy link
Author

I am running the command from the Cloud Shell.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant