Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't start Windows based agent in ACI #127

Open
chvjak opened this issue Feb 17, 2021 · 4 comments
Open

Can't start Windows based agent in ACI #127

chvjak opened this issue Feb 17, 2021 · 4 comments

Comments

@chvjak
Copy link

chvjak commented Feb 17, 2021

Description

When trying to start a Windows based containerized build agent on Azure Container Instances I'm getting: "image doesn't support specified OS 'Linux'."

Environment

  • TeamCity version: 2020.2.2 (build 85899)
  • Azure plugin version: 0.9.5

Diagnostic logs

[2021-02-17 13:30:47,667] INFO [atcher-worker-5] - ouds.azure.arm.AzureCloudImage - Creating new virtual machine tc-agent1
[2021-02-17 13:30:47,667] INFO [-nio-80-exec-10] - .server.impl.CloudEventsLogger - Cloud instance entered 'starting' state, profile 'cp-aci'{id=arm-1, projectId=project1}, AzureCloudInstance{myName='tc-agent1'}
[2021-02-17 13:30:47,667] INFO [-nio-80-exec-10] - .server.impl.CloudEventsLogger - Cloud instance start succeeded: profile 'cp-aci'{id=arm-1, projectId=project1}, AzureCloudInstance{myName='tc-agent1'}
[2021-02-17 13:31:19,691] WARN [atcher-worker-5] - ouds.azure.arm.AzureCloudImage - Failed to create deployment tc-agent1 in resource group MC_doa-aks1_doaAKSCluster_westeurope: At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details. The container image 'doaacr1.azurecr.io/tc-agent3:v1' doesn't support specified OS 'Linux' for container group 'tc-agent1'. (ImageOsTypeNotMatchContainerGroup) (BadRequest): jetbrains.buildServer.clouds.CloudException: Failed to create deployment tc-agent1 in resource group MC_doa-aks1_doaAKSCluster_westeurope: At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details. The container image 'doaacr1.azurecr.io/tc-agent3:v1' doesn't support specified OS 'Linux' for container group 'tc-agent1'. (ImageOsTypeNotMatchContainerGroup) (BadRequest) (enable debug to see stacktrace)
[2021-02-17 13:31:19,692] INFO [atcher-worker-5] - uds.base.AbstractCloudInstance - Changing tc-agent1(1fa918dd) status from Starting to Error

@chvjak
Copy link
Author

chvjak commented Feb 17, 2021

Also, should mention that for Image Type "Container" there is no OS Type input visible in most recent plugin version, but there used to be one in older versions and it worked for me.

@MSZ-Spyro
Copy link

@chvjak Any updates on this one ?

@chvjak
Copy link
Author

chvjak commented Mar 7, 2023

not really. Abandoned the idea. There are other plugins BTW e.g the ones with VMSS or AKS as backend. AKS one worked for me.

@worldspawn
Copy link

worldspawn commented Nov 16, 2023

So... set the type to Image. Select windows from the drop down, then set the type back to container. Voila, its now set up for windows.

image

Note the pool details continue to profess its nix.

image

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

No branches or pull requests

3 participants