Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

Selected Pool is not using a valid Maya image #38

Open
swamiforlife opened this issue Apr 7, 2018 · 4 comments
Open

Selected Pool is not using a valid Maya image #38

swamiforlife opened this issue Apr 7, 2018 · 4 comments

Comments

@swamiforlife
Copy link

swamiforlife commented Apr 7, 2018

Hello,
I have created a custom vm image in Azure with Maya 2017 update 4 installation and a few other plugins.
When i submit a job from Maya using the plugin and select my own existing pool that is made with my custom image, i get a popup saying "Selected Pool is not using a valid Maya image"

I have a windows server 2016 os on the image.
https://docs.microsoft.com/en-us/azure/batch/batch-rendering-service

The above link says that custom images are supported in Azure batch, so what am i doing wrong.

@psyrus
Copy link

psyrus commented Apr 9, 2018

@swamiforlife
I'm not a dev here but I can kind of answer your question. Basically the system is currently hardcoded to use the two images prepared by the Batch Rendering team. To use custom images with the Maya plugin you will need to do a bit of coding to get it working.

I got it working with the following code, which you could use as a base for your changes:
https://github.com/Azure/azure-batch-maya/compare/master...psyrus:custom-images?expand=1

I'm still working on creating auto-pools with custom images, but according to @davidkydd I will need to integrate his AAD changes before pools can be created through the plugin with custom images. Hopefully this helps :)

@swamiforlife
Copy link
Author

@psyrus
I have no coding experience at all so, i don't thing i would be able to make changes to the code.
Will the batch devs eventually be adding custom image support natively to the plugin?

@psyrus
Copy link

psyrus commented Apr 9, 2018

@swamiforlife
If you have anyone on your team with any coding experience (even in different languages) they will be able to emulate my changes (only about 20 lines total) to allow you to run jobs on custom pools (made through the Azure portal). Sorry I can't be of more help (super busy at work).

@swamiforlife
Copy link
Author

swamiforlife commented Apr 10, 2018

@psyrus
Quick question, I made the changes to the files execpt for the first two,
AzureBatchMaya.pyproj
AzureBatchMaya.sln
The above 2 files were not part of the batch plugin downloaded. Does that mean that i have to recompile the plugin from the original source code?

After changing the code for the other files the Azure batch shelf icons are not loading. The plugin loads fine but the shelf has no icons for submission.

The errors from the maya console are given below

Successfully loaded azure-batch-extensions==1.0.1 from path: C:\Users\Administrator\Documents\maya\2017\scripts\azure-batch-libs\azure\batch_extensions_init_.pyc
Successfully loaded azure-mgmt-storage==1.0.0 from path: C:\Users\Administrator\Documents\maya\2017\scripts\azure-batch-libs\azure\mgmt\storage_init_.pyc
Successfully loaded azure-storage==0.32.0 from path: C:\Users\Administrator\Documents\maya\2017\scripts\azure-batch-libs\azure\storage_init_.pyc
Successfully loaded azure-batch==4.0.0 from path: C:\Users\Administrator\Documents\maya\2017\scripts\azure-batch-libs\azure\batch_init_.pyc
Successfully loaded azure-mgmt-batch==4.0.0 from path: C:\Users\Administrator\Documents\maya\2017\scripts\azure-batch-libs\azure\mgmt\batch_init_.pyc
Dependency check complete

Error: file: C:/Users/Administrator/Documents/maya/2017/azure_batch_maya/mel/create_shelf.mel line 1: IndentationError: file C:\Users\Administrator\Documents\maya\2017\azure_batch_maya\scripts\shared.py line 13: unexpected indent

Couldn't add shelf: Error occurred during execution of MEL script
file: C:/Users/Administrator/Documents/maya/2017/azure_batch_maya/mel/create_shelf.mel line 1: IndentationError: file C:\Users\Administrator\Documents\maya\2017\azure_batch_maya\scripts\shared.py line 13: unexpected indent

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

No branches or pull requests

2 participants