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

Error creating Batch Pool from CLI template #129

Open
themorey opened this issue Apr 27, 2021 · 7 comments
Open

Error creating Batch Pool from CLI template #129

themorey opened this issue Apr 27, 2021 · 7 comments

Comments

@themorey
Copy link

This is autogenerated. Please review and update as needed.

Describe the bug

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

Errors:

Unexpect element taskSlotsPerNode in template
Traceback (most recent call last):
python3.6/site-packages/knack/cli.py, ln 231, in invoke
    cmd_result = self.invocation.execute(args)
cli/core/commands/__init__.py, ln 657, in execute
    raise ex
...
azure/cli/core/__init__.py, ln 807, in default_command_handler
    return op(**command_args)
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 taskSlotsPerNode in template

To Reproduce:

Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

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

Expected Behavior

Environment Summary

Linux-4.15.0-1113-azure-x86_64-with-debian-10.2 (Cloud Shell)
Python 3.6.10
Installer: DEB

azure-cli 2.22.0 *

Extensions:
azure-batch-cli-extensions 6.0.0
aks-preview 0.4.64
hpc-cache 0.1.0
ai-examples 0.2.5
ssh 0.1.4

Additional Context

@bitsofinfo
Copy link

@bgklein who maintains this repo? see this error has been here since april and I just ran into it as well

@bitsofinfo
Copy link

@themorey you ever solve this?

@themorey
Copy link
Author

themorey commented Jun 8, 2021

Yes the template SDK uses an older version of Batch API and taskSlotsPerNode is not compatible. Use the older parameter maxTasksPerNode instead.

@bitsofinfo
Copy link

thanks @themorey can you perhaps share a sample? I tried and can't seem to get maxTasksPerNode working either: see #132

@dpwatrous
Copy link
Member

Just a quick update that this is on our radar and we do plan to release an updated version of the CLI extensions which will include support for taskSlotsPerNode. Until then I'll see if we can update the docs to reflect the right version of the API.

@fblampe
Copy link

fblampe commented Apr 1, 2022

It's been another couple months and this still seems to be an issue... :(

@dpwatrous
Copy link
Member

dpwatrous commented Apr 4, 2022

Unfortunately the developer working on this is out of the office until 4/11, but I'll follow up with him then and see if we can't unblock a new release.

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

4 participants