不推荐使用代理“托管的Linux预览池"后,Azure CICD生成管道失败 [英] Azure CICD Build Pipeline failing after agent 'Hosted Linux Preview Pool' deprecated

查看:123
本文介绍了不推荐使用代理“托管的Linux预览池"后,Azure CICD生成管道失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 

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

 

CICD管道工作正常.但是从12月1日开始, 托管的Linux预览池 ' 教程中建议的代理已被弃用.

根据Microsoft的以下建议,我们替换了  ' Microsoft托管 代理-Ubuntu 16.04  '.

 

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

 

执行此操作后,步骤'开始模型容器的步骤失败.

 

原始代码-

BUILD_CONTAINER_ID = $(docker ps-格式"{{.ID}}")

docker run -d --network容器:$ BUILD_CONTAINER_ID acrforblog.azurecr .io/model-api:$(Build.BuildId)

替换为-

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

 

[根据Microsoft网站上的建议进行了以上更改-Ubuntu 16.04代理未按容器]

 

发布此步骤,"简单的API测试'失败,API服务现在不返回任何内容.

此代码 简单的API测试-

 

echo" Waiting....

睡眠10

 

#简单API测试

 

回显测试API"

reply = $(curl -s $ (MODEL_API_URL)/)

回显答复值"

echo $ reply

 

expected =健康"

echo $ expected

 

if [[预期的 ]];然后

echo -e已成功验证版本的API调用"

else

回显基本API调用失败"

1号出口

fi

 

请在步骤' ' Microsoft托管的代理-Ubuntu 16.04  '代理,因此可以启动容器并且可以使用API​​服务 被测试.

此致

Parag Gurjar

解决方案

嗨Parag.我建议直接询问该文档的所有者.

您可以在此处通过该仓库打开一个问题:

https://github.com/Azure/DevOps-For-AI-Apps/issues

如果愿意,可以在帖子中随意抄送我. MicahMcKittrick-MSFT


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 ' agent, so container can be started and API service can be tested.

Regards,

Parag Gurjar

解决方案

Hi Parag. I would suggest asking the owner of that doc directly. 

You can open an issue on that repo here: 

https://github.com/Azure/DevOps-For-AI-Apps/issues

Feel free to CC me in the post if you like. MicahMcKittrick-MSFT


这篇关于不推荐使用代理“托管的Linux预览池"后,Azure CICD生成管道失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆