Azure / azure-batch-maya

Cloud rendering from Maya using Azure Batch
Other
27 stars 13 forks source link

Selected Pool is not using a valid Maya image #38

Open swamiforlife opened 6 years ago

swamiforlife commented 6 years ago

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 commented 6 years ago

@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 commented 6 years ago

@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 commented 6 years ago

@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 commented 6 years ago

@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