You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The agent template should've been verified without any errors. Even though the template fails with the error message, the agent is still provisioned and works as expected. It's just the verify template step that fails.
When using the built-in image option for the image configuration, the verification runs without issue.
Actual Results
Sep 27, 2024 10:07:54 AM INFO com.microsoft.azure.vmagent.AzureVMAgentTemplate$DescriptorImpl doVerifyConfiguration
Verify configuration:
resourceGroupName: my-rg;
templateName: azure-linux-vm-agents;
labels: linux-vm;
location: ;
virtualMachineSize: Standard_B2s;
storageAccountName: mysa;
noOfParallelJobs: 1;
imageTopLevelType: advanced;
builtInImage: Ubuntu 22.04 LTS;
image: ;
osType: Linux;
id: ;
publisher: Canonical;
offer: 0001-com-ubuntu-server-focal;
sku: 20_04-lts-gen2;
version: latest;
sshConfig: ;
initScript: # Disable interactive terminal
echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
# Update packages
sudo apt-get -y update
# Install Java
echo "Installing Java"
sudo apt-get install -y wget apt-transport-https
wget -qO - https://packages.adoptium.net/artifactory/api/gpg/key/public | gpg --dearmor | tee /etc/apt/trusted.gpg.d/adoptium.gpg > /dev/null
echo "deb https://packages.adoptium.net/artifactory/deb $(awk -F= '/^VERSION_CODENAME/{print$2}' /etc/os-release) main" | tee /etc/apt/sources.list.d/adoptium.list
sudo apt-get update -y
sudo apt-get install -y temurin-17-jdk
java --version
# Install Git
sudo apt-get install -y git
# Install Docker
sudo apt-get install -y ca-certificates curl gnupg lsb-release
sudo mkdir -p /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get -y update
sudo apt-get install -y docker-ce docker-ce-cli containerd.io docker-compose-plugin
sudo gpasswd -a azure-vm-agent docker
sudo chmod g+rw /var/run/docker.sock
sudo docker --version
# Change perms on Jenkins workspace
mkdir /var/jenkins
sudo chmod 777 /var/jenkins;
credentialsId: my-login;
virtualNetworkName: my-vn;
virtualNetworkResourceGroupName: my-vn-rg;
subnetName: my-sn;
privateIP: true;
nsgName: ;
jvmOptions: ;
galleryName:
galleryImageDefinition:
galleryImageVersion:
galleryResourceGroup:
gallerySubscriptionId:
Sep 27, 2024 10:07:55 AM SEVERE com.microsoft.azure.vmagent.AzureVMManagementServiceDelegate verifyVirtualMachineImage
Invalid virtual machine image
Also: java.lang.Exception: #block terminated with an error
at PluginClassLoader for azure-sdk//reactor.core.publisher.BlockingSingleSubscriber.blockingGet(BlockingSingleSubscriber.java:100)
at PluginClassLoader for azure-sdk//reactor.core.publisher.Flux.blockLast(Flux.java:2761)
at PluginClassLoader for azure-sdk//com.azure.core.util.paging.ContinuablePagedByIteratorBase.requestPage(ContinuablePagedByIteratorBase.java:102)
at PluginClassLoader for azure-sdk//com.azure.core.util.paging.ContinuablePagedByItemIterable$ContinuablePagedByItemIterator.<init>(ContinuablePagedByItemIterable.java:75)
at PluginClassLoader for azure-sdk//com.azure.core.util.paging.ContinuablePagedByItemIterable.iterator(ContinuablePagedByItemIterable.java:55)
at PluginClassLoader for azure-sdk//com.azure.core.util.paging.ContinuablePagedIterable.iterator(ContinuablePagedIterable.java:141)
at PluginClassLoader for azure-vm-agents//com.microsoft.azure.vmagent.AzureVMManagementServiceDelegate.verifyVirtualMachineImage(AzureVMManagementServiceDelegate.java:2415)
at PluginClassLoader for azure-vm-agents//com.microsoft.azure.vmagent.AzureVMManagementServiceDelegate.lambda$verifyTemplateAsync$1(AzureVMManagementServiceDelegate.java:2216)
at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
com.azure.resourcemanager.compute.models.ApiErrorException: Status code 400, "{
"error": {
"innererror": {
"internalErrorCode": "RequestUrlInvalid"
},
"code": "BadRequest",
"message": "The request URL is not valid."
}
}": The request URL is not valid.
at java.base/java.lang.invoke.MethodHandle.invokeWithArguments(Unknown Source)
at PluginClassLoader for azure-sdk//com.azure.core.implementation.MethodHandleReflectiveInvoker.invokeWithArguments(MethodHandleReflectiveInvoker.java:39)
at PluginClassLoader for azure-sdk//com.azure.core.implementation.http.rest.ResponseExceptionConstructorCache.invoke(ResponseExceptionConstructorCache.java:53)
at PluginClassLoader for azure-sdk//com.azure.core.implementation.http.rest.RestProxyBase.instantiateUnexpectedException(RestProxyBase.java:407)
at PluginClassLoader for azure-sdk//com.azure.core.implementation.http.rest.AsyncRestProxy.lambda$ensureExpectedStatus$1(AsyncRestProxy.java:135)
at PluginClassLoader for azure-sdk//reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber.onNext(FluxMapFuseable.java:113)
at PluginClassLoader for azure-sdk//reactor.core.publisher.Operators$ScalarSubscription.request(Operators.java:2400)
at PluginClassLoader for azure-sdk//reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber.request(FluxMapFuseable.java:171)
at PluginClassLoader for azure-sdk//reactor.core.publisher.Operators$MultiSubscriptionSubscriber.set(Operators.java:2196)
at PluginClassLoader for azure-sdk//reactor.core.publisher.Operators$MultiSubscriptionSubscriber.onSubscribe(Operators.java:2070)
at PluginClassLoader for azure-sdk//reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber.onSubscribe(FluxMapFuseable.java:96)
at PluginClassLoader for azure-sdk//reactor.core.publisher.MonoJust.subscribe(MonoJust.java:55)
at PluginClassLoader for azure-sdk//reactor.core.publisher.InternalMonoOperator.subscribe(InternalMonoOperator.java:64)
at PluginClassLoader for azure-sdk//reactor.core.publisher.MonoFlatMap$FlatMapMain.onNext(MonoFlatMap.java:157)
at PluginClassLoader for azure-sdk//reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber.onNext(FluxMapFuseable.java:129)
at PluginClassLoader for azure-sdk//reactor.core.publisher.FluxHide$SuppressFuseableSubscriber.onNext(FluxHide.java:137)
at PluginClassLoader for azure-sdk//reactor.core.publisher.FluxMap$MapSubscriber.onNext(FluxMap.java:122)
at PluginClassLoader for azure-sdk//reactor.core.publisher.FluxOnErrorResume$ResumeSubscriber.onNext(FluxOnErrorResume.java:79)
at PluginClassLoader for azure-sdk//reactor.core.publisher.Operators$MonoSubscriber.complete(Operators.java:1839)
at PluginClassLoader for azure-sdk//reactor.core.publisher.MonoFlatMap$FlatMapMain.onNext(MonoFlatMap.java:151)
at PluginClassLoader for azure-sdk//reactor.core.publisher.Operators$MonoSubscriber.complete(Operators.java:1839)
at PluginClassLoader for azure-sdk//reactor.core.publisher.MonoFlatMap$FlatMapMain.onNext(MonoFlatMap.java:151)
at PluginClassLoader for azure-sdk//reactor.core.publisher.MonoIgnoreThen$ThenIgnoreMain.complete(MonoIgnoreThen.java:292)
at PluginClassLoader for azure-sdk//reactor.core.publisher.MonoIgnoreThen$ThenIgnoreMain.onNext(MonoIgnoreThen.java:187)
at PluginClassLoader for azure-sdk//reactor.core.publisher.Operators$MonoSubscriber.complete(Operators.java:1839)
at PluginClassLoader for azure-sdk//reactor.core.publisher.MonoFlatMap$FlatMapInner.onNext(MonoFlatMap.java:249)
at PluginClassLoader for azure-sdk//reactor.core.publisher.Operators$MonoSubscriber.complete(Operators.java:1839)
at PluginClassLoader for azure-sdk//reactor.core.publisher.MonoFlatMap$FlatMapMain.onNext(MonoFlatMap.java:151)
at PluginClassLoader for azure-sdk//reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber.onNext(FluxMapFuseable.java:129)
at PluginClassLoader for azure-sdk//reactor.core.publisher.Operators$MonoSubscriber.complete(Operators.java:1839)
at PluginClassLoader for azure-sdk//reactor.core.publisher.MonoCollect$CollectSubscriber.onComplete(MonoCollect.java:160)
at PluginClassLoader for azure-sdk//reactor.core.publisher.Operators$MonoSubscriber.complete(Operators.java:1840)
at PluginClassLoader for azure-sdk//reactor.core.publisher.FluxCallable.subscribe(FluxCallable.java:49)
at PluginClassLoader for azure-sdk//reactor.core.publisher.InternalMonoOperator.subscribe(InternalMonoOperator.java:64)
at PluginClassLoader for azure-sdk//reactor.core.publisher.MonoFlatMap$FlatMapMain.onNext(MonoFlatMap.java:157)
at PluginClassLoader for azure-sdk//reactor.core.publisher.FluxOnErrorResume$ResumeSubscriber.onNext(FluxOnErrorResume.java:79)
at PluginClassLoader for azure-sdk//reactor.core.publisher.Operators$MonoSubscriber.complete(Operators.java:1839)
at PluginClassLoader for azure-sdk//reactor.core.publisher.MonoFlatMap$FlatMapMain.onNext(MonoFlatMap.java:151)
at PluginClassLoader for azure-sdk//reactor.core.publisher.Operators$MonoInnerProducerBase.complete(Operators.java:2666)
at PluginClassLoader for azure-sdk//reactor.core.publisher.MonoSingle$SingleSubscriber.onComplete(MonoSingle.java:180)
at PluginClassLoader for azure-sdk//reactor.core.publisher.MonoFlatMapMany$FlatMapManyInner.onComplete(MonoFlatMapMany.java:260)
at PluginClassLoader for azure-sdk//reactor.core.publisher.FluxContextWrite$ContextWriteSubscriber.onComplete(FluxContextWrite.java:126)
at PluginClassLoader for azure-sdk//reactor.core.publisher.MonoUsing$MonoUsingSubscriber.onNext(MonoUsing.java:232)
at PluginClassLoader for azure-sdk//reactor.core.publisher.FluxMap$MapSubscriber.onNext(FluxMap.java:122)
at PluginClassLoader for azure-sdk//reactor.core.publisher.FluxSwitchIfEmpty$SwitchIfEmptySubscriber.onNext(FluxSwitchIfEmpty.java:74)
at PluginClassLoader for azure-sdk//reactor.core.publisher.FluxHandle$HandleSubscriber.onNext(FluxHandle.java:126)
at PluginClassLoader for azure-sdk//reactor.core.publisher.FluxMap$MapConditionalSubscriber.onNext(FluxMap.java:224)
at PluginClassLoader for azure-sdk//reactor.core.publisher.FluxDoFinally$DoFinallySubscriber.onNext(FluxDoFinally.java:113)
at PluginClassLoader for azure-sdk//reactor.core.publisher.FluxHandleFuseable$HandleFuseableSubscriber.onNext(FluxHandleFuseable.java:191)
at PluginClassLoader for azure-sdk//reactor.core.publisher.FluxContextWrite$ContextWriteSubscriber.onNext(FluxContextWrite.java:107)
at PluginClassLoader for azure-sdk//reactor.core.publisher.Operators$MonoSubscriber.complete(Operators.java:1839)
at PluginClassLoader for azure-sdk//reactor.core.publisher.MonoCollectList$MonoCollectListSubscriber.onComplete(MonoCollectList.java:129)
at PluginClassLoader for azure-sdk//reactor.core.publisher.FluxPeek$PeekSubscriber.onComplete(FluxPeek.java:260)
at PluginClassLoader for azure-sdk//reactor.core.publisher.FluxMap$MapSubscriber.onComplete(FluxMap.java:144)
at PluginClassLoader for azure-sdk//reactor.netty.channel.FluxReceive.onInboundComplete(FluxReceive.java:415)
at PluginClassLoader for azure-sdk//reactor.netty.channel.ChannelOperations.onInboundComplete(ChannelOperations.java:439)
at PluginClassLoader for azure-sdk//reactor.netty.channel.ChannelOperations.terminate(ChannelOperations.java:493)
at PluginClassLoader for azure-sdk//reactor.netty.http.client.HttpClientOperations.onInboundNext(HttpClientOperations.java:789)
at PluginClassLoader for azure-sdk//reactor.netty.channel.ChannelOperationsHandler.channelRead(ChannelOperationsHandler.java:114)
at PluginClassLoader for azure-sdk//io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444)
at PluginClassLoader for azure-sdk//io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)
at PluginClassLoader for azure-sdk//io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)
at PluginClassLoader for azure-sdk//com.azure.core.http.netty.implementation.AzureSdkHandler.channelRead(AzureSdkHandler.java:224)
at PluginClassLoader for azure-sdk//io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:442)
at PluginClassLoader for azure-sdk//io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)
at PluginClassLoader for azure-sdk//io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)
at PluginClassLoader for azure-sdk//io.netty.channel.CombinedChannelDuplexHandler$DelegatingChannelHandlerContext.fireChannelRead(CombinedChannelDuplexHandler.java:436)
at PluginClassLoader for azure-sdk//io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:346)
at PluginClassLoader for azure-sdk//io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:318)
at PluginClassLoader for azure-sdk//io.netty.channel.CombinedChannelDuplexHandler.channelRead(CombinedChannelDuplexHandler.java:251)
at PluginClassLoader for azure-sdk//io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:442)
at PluginClassLoader for azure-sdk//io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)
at PluginClassLoader for azure-sdk//io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)
at PluginClassLoader for azure-sdk//io.netty.handler.ssl.SslHandler.unwrap(SslHandler.java:1475)
at PluginClassLoader for azure-sdk//io.netty.handler.ssl.SslHandler.decodeNonJdkCompatible(SslHandler.java:1349)
at PluginClassLoader for azure-sdk//io.netty.handler.ssl.SslHandler.decode(SslHandler.java:1389)
at PluginClassLoader for azure-sdk//io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:530)
at PluginClassLoader for azure-sdk//io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:469)
at PluginClassLoader for azure-sdk//io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:290)
at PluginClassLoader for azure-sdk//io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444)
at PluginClassLoader for azure-sdk//io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)
at PluginClassLoader for azure-sdk//io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)
at PluginClassLoader for azure-sdk//io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1407)
at PluginClassLoader for azure-sdk//io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:440)
at PluginClassLoader for azure-sdk//io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)
at PluginClassLoader for azure-sdk//io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:918)
at PluginClassLoader for azure-sdk//io.netty.channel.epoll.AbstractEpollStreamChannel$EpollStreamUnsafe.epollInReady(AbstractEpollStreamChannel.java:799)
at PluginClassLoader for azure-sdk//io.netty.channel.epoll.EpollEventLoop.processReady(EpollEventLoop.java:501)
at PluginClassLoader for azure-sdk//io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:399)
at PluginClassLoader for azure-sdk//io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:994)
at PluginClassLoader for azure-sdk//io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
at PluginClassLoader for azure-sdk//io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
at java.base/java.lang.Thread.run(Unknown Source)
Anything else?
No response
Are you interested in contributing a fix?
No response
The text was updated successfully, but these errors were encountered:
Jenkins and plugins versions report
Environment
What Operating System are you using (both controller, and any agents involved in the problem)?
Controller deployed on AKS cluster which uses AKSUbuntu-2204gen2containerd-202409.09.0 nodes. Agents are the same.
Reproduction steps
Expected Results
The agent template should've been verified without any errors. Even though the template fails with the error message, the agent is still provisioned and works as expected. It's just the verify template step that fails.
When using the built-in image option for the image configuration, the verification runs without issue.
Actual Results
Anything else?
No response
Are you interested in contributing a fix?
No response
The text was updated successfully, but these errors were encountered: