Skip to content
This repository was archived by the owner on Jul 19, 2024. It is now read-only.
This repository was archived by the owner on Jul 19, 2024. It is now read-only.

Azure CICD Build Pipeline failing after agent Hosted Linux Preview Pool deprecation #19

@parag-gurjar02

Description

@parag-gurjar02

Hi,
I am following below document for CICD pipeline using Azure DevOps.

https://github.com/Azure/DevOps-For-AI-Apps/blob/master/Tutorial.md

The CICD pipeline works fine. But from 01 Dec 'Hosted Linux Preview Pool' agent which was suggested in tutorial has been deprecated.
As per below recommendation from Microsoft, we replaced 'Hosted Linux Preview Pool' with 'Microsoft-hosted agent - Ubuntu 16.04 '.

https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/hosted?view=vsts&tabs=yaml#hosted-linux-preview-pool-deprecation

After doing this, the step 'Starting Model Container' step is failing.

Original Code -
BUILD_CONTAINER_ID=$(docker ps --format "{{.ID}}")
docker run -d --network container:$BUILD_CONTAINER_ID acrforblog.azurecr.io/model-api:$(Build.BuildId)

Replaced with -
docker run -d crrq51278013.azurecr.io/model-api:$(Build.BuildId)

[Above changes were done as per recommendation on Microsoft site - that Ubuntu 16.04 agent does not run as container]

Post this, step 'Simple API test' is failing and API service is not returning anything now.
Code in this Simple API test -

echo "Waiting...."
sleep 10

Simple API Test

echo "Testing API"
reply=$(curl -s $(MODEL_API_URL)/)
echo "reply value"
echo $reply

expected="Healthy"
echo $expected

if [[ $reply == $expected ]]; then
echo -e "Successfully validated version API call"
else
echo "Basic API call Fail"
exit 1
fi

Please suggest how code in step 'Starting Model Container' should be changed in case of 'Microsoft-hosted agent - Ubuntu 16.04', so container can be started and API service can be tested.

Regards,
Parag Gurjar

/cc @MicahMcKittrick-MSFT

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions