Closed juanvergaramunoz closed 1 month ago
Thank you for the feedback @juanvergaramunoz . We will investigate and get back to you asap.
cc @azureml-github
@juanvergaramunoz It seems like in your code, BuildContext is missing a path parameter.
build=BuildContext(dockerfile_path=ray_environment_dockerfile_path)
Could you add path parameter and try it again?
Thanks for your review @hswang-wang. Note, though as per documentation: BuildContext takes EITHER argument path
or dockerfile_path
:
I am using dockerfile_path since I wanted to specify a pointer to the specific dockerfile name to be used for setting up the image. Otherwise, I need to rename the file to Dockerfile each time. Moreover, the command doesn't raise any issues when run.
@juanvergaramunoz I was able to repro the issue. I'm reaching out to the service team to confirm is ContextUri required when creating an environment
Appreciate your prompt response. Thanks a lot @hswang-wang -- Feel free to ping me at any time if there are any tests that I can help you with on my side --
@juanvergaramunoz Thanks for your patience.
I confirmed that path
parameter is required in BuildContext
. path
is mapping to ContextUri
in BuildContext
and ContextUri
is required, so it seems if we're missing path
, we will run into the error saying ContextUri
is required.
Apologize that there's gap in the documentation between what's required and what's not. Please try again with adding the path parameter and let me know if you still run into the issue. In the meantime, we will update the documentation.
Thanks @hswang-wang -- that resolved my issue. Shall I open a pull request on azure ai ml
to trigger an error if no path attribute is parsed? Or is that requirement only a problem for this pipeline?
I am happy to help making it clearer for future coders that might encounter the same issue - please advise. Otherwise, we are good to close this. Thanks a lot for your prompt help, truly appreciate it!
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @azureml-github, @Azure/azure-ml-sdk.
Author: | juanvergaramunoz |
---|---|
Assignees: | luigiw |
Labels: | `question`, `Machine Learning`, `Service Attention`, `customer-reported` |
Milestone: | - |
@hswang-wang any updates?
+1 on this. I'm seeing the same issue
Had the same issue. I had to add path
. Please update the documentation that says that path
will be uploaded to Azure with the dockerfile specified.
And ALSO, if you have a BuildContext
, you can not use conda_file
argument in Environment
and you must do it direclty inside the dockerfile.
That's a regression with V1
path is marked as required in documentation
Describe the bug Following the latest guidance to create an environment through MLClient* raises a ContextURI issue in a subpackage that I am unable to debug. Environment creation runs without any issues. It is the creation of a new environment using the ml_client.environments.create_update(my_env) that is raising the issue.
To Reproduce Steps to reproduce the behavior:
Expected behavior An error should be thrown earlier if the submittal pipeline is wrong. Otherwise, the environment creation should succeed.
Screenshots If applicable, add screenshots to help explain your problem.
Additional context Full stack trace for an example: