Skip to content

Fix keyvault online endpoint deployment failure: replace deprecated azure-keyvault meta-package#3897

Open
ayushhgarg-work wants to merge 1 commit intoAzure:mainfrom
ayushhgarg-work:ayushhgarg/kvissuefix
Open

Fix keyvault online endpoint deployment failure: replace deprecated azure-keyvault meta-package#3897
ayushhgarg-work wants to merge 1 commit intoAzure:mainfrom
ayushhgarg-work:ayushhgarg/kvissuefix

Conversation

@ayushhgarg-work
Copy link
Copy Markdown
Member

Summary

Fixes the consistently failing CI for sdk-endpoints-online-managed-online-endpoints-keyvault notebook. The deployment container was crashing during startup with a 502 liveness probe failure, caused by the deprecated azure-keyvault meta-package in the scoring environment.

Root Cause

The conda environment (sdk/python/endpoints/online/managed/keyvault/env.yml) used azure-keyvault, a deprecated meta-package that pulls in four sub-packages (azure-keyvault-secrets, azure-keyvault-keys, azure-keyvault-certificates, azure-keyvault-administration) with broad version constraints. A recent transitive dependency update — coinciding with the mcr.microsoft.com/azureml/minimal-py312-inference base image refresh — introduced an incompatibility that crashed the inference server during init() in score.py.

The scoring script only imports from azure.keyvault.secrets import SecretClient, so the other three sub-packages are unnecessary.

Failure Signature

HttpResponseError: (BadArgument) User container has crashed or terminated:
Liveness probe failed: HTTP probe failed with statuscode: 502.

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

Successfully merging this pull request may close these issues.

2 participants