Closed kodonnell closed 4 years ago
OK, probable fix is upgrading azureml-sdk
to 1.14.0
in the docker container. (Untested, but I suspect pip install --upgrade --upgrade-strategy eager azureml-sdk
will do all that's needed.) I don't know why this isn't done automatically as part of /usr/local/envs/mlopspython_ci/bin/az extension add -n azure-cli-ml
, but that seems to be the cause.
I just encountered this issue today.
We've hit this issue a few times now. I am making a PR to use the latest version of the azureml-sdk. During version updates, we can run the docker image creation to update the version in the docker image.
Mitigation - run pip install --upgrade azureml-sdk
as a step at the beginning of your pipeline.
I have updated the public docker image and updated the ci_dependencies. Please run again and reopen if you're still seeing the issue!
I removed the pip install commands from my pipeline and re-ran the pipeline a couple of times and the previous error went away. Thanks
TLDR; I believe this will prevent anyone from using MLOps inside of Azure DevOps.
We're running an MLOps workshops (in partnership with Microsoft) with customers, and things started failing at the
Azure ML Model Deploy
step.We've traced the issue somewhat to
mcr.microsoft.com/mlops/python:latest
- there are no versions on docker hub, so we had to go with latest (which we pulled about 30 minutes before this message), and if you look at/usr/local/envs/mlopspython_ci/lib/python3.7/site-packages/azureml/_model_management/_constants.py
there is noPROFILE_METADATA_CPU_KEY
(though there isPROFILE_RECOMMENDED_CPU_KEY
which seems suspicious). I can't find/home/AzDevOps_azpcontainer/.azure/cliextensions/azure-cli-ml/azext_ml/model.py
, but I found in the DevOps logs that this was created eventually via/usr/local/envs/mlopspython_ci/bin/az extension add -n azure-cli-ml
which installs version1.14.0
of the extension. If I check out that file, then (removing cruft) ...So it definitely seems to be an error. My guess is that it's a version mismatch somewhere, and if we have time tomorrow, that's what we'll be digging into - and, if there's no hotfix, we'll have to build our own docker container on top of
mcr.microsoft.com/mlops/python:latest
where we fix any issues ... which would be painful. (Hint hint to anyone else who comes along this and wants to help out!)The second day of the workshop is tomorrow, so needless to say, this is somewhat urgent.
Other info:
azure-cli-ml
were updated in that time. UPDATE: yes,azure-cli-ml
was bumped to v 1.14.0 7 hours ago ... https://github.com/Azure/azure-cli-extensions/commit/39d5ca49000ef75dd47d4a0f8b2900e30d95f894