Comments (4)
Context: Upon upgrading from v3.0.0 to v3.1.0, I was unable to complete builds because GCE couldn't create an instance due to "missing" information in the Jenkins config.xml:
<com.google.jenkins.plugins.computeengine.ComputeEngineCloud plugin="[email protected]">
<name>gce-gce</name>
<instanceCap>5</instanceCap>
<projectId>asdf</projectId>
<credentialsId>asdf</credentialsId>
<instanceId></instanceId>
<configurations>
<com.google.jenkins.plugins.computeengine.InstanceConfiguration>
<description>Dynamically created GCE instance for Jenkins builds</description>
<namePrefix>jenkins-dynamic-slave</namePrefix>
<region>https://www.googleapis.com/compute/v1/projects/asdf/regions/us-east1</region>
<zone>https://www.googleapis.com/compute/v1/projects/asdf/zones/us-east1-b</zone>
<machineType>https://www.googleapis.com/compute/v1/projects/asdf/zones/us-east1-b/machineTypes/n1-standard-8</machineType>
<numExecutorsStr>1</numExecutorsStr>
<startupScript></startupScript>
<preemptible>false</preemptible>
<minCpuPlatform></minCpuPlatform>
<labels>jenkins-dynamic-slave-gcp</labels>
<runAsUser>jenkins</runAsUser>
<bootDiskType>https://www.googleapis.com/compute/v1/projects/asdf/zones/us-east1-b/diskTypes/pd-ssd</bootDiskType>
<bootDiskAutoDelete>true</bootDiskAutoDelete>
<bootDiskSourceImageName>https://www.googleapis.com/compute/v1/projects/asdf/global/images/jenkins-agent-1554304368</bootDiskSourceImageName>
<bootDiskSourceImageProject>asdf</bootDiskSourceImageProject>
<networkConfiguration class="com.google.jenkins.plugins.computeengine.AutofilledNetworkConfiguration">
<network>https://www.googleapis.com/compute/v1/projects/asdf/global/networks/default</network>
<subnetwork>default</subnetwork>
</networkConfiguration>
<externalAddress>true</externalAddress>
<useInternalAddress>true</useInternalAddress>
<networkTags></networkTags>
<serviceAccountEmail></serviceAccountEmail>
<mode>NORMAL</mode>
<retentionTimeMinutesStr>11</retentionTimeMinutesStr>
<launchTimeoutSecondsStr>300</launchTimeoutSecondsStr>
<bootDiskSizeGbStr>50</bootDiskSizeGbStr>
<oneShot>false</oneShot>
<template></template>
<windows>false</windows>
<windowsPasswordCredentialsId></windowsPasswordCredentialsId>
<windowsPrivateKeyCredentialsId></windowsPrivateKeyCredentialsId>
<windowsConfig/>
<createSnapshot>false</createSnapshot>
<remoteFs></remoteFs>
<googleLabels>
<entry>
<string>jenkins_cloud_id</string>
<string></string>
</entry>
<entry>
<string>jenkins_config_name</string>
<string>jenkins-dynamic-slave</string>
</entry>
</googleLabels>
<numExecutors>1</numExecutors>
<retentionTimeMinutes>11</retentionTimeMinutes>
<launchTimeoutSeconds>300</launchTimeoutSeconds>
<bootDiskSizeGb>50</bootDiskSizeGb>
</com.google.jenkins.plugins.computeengine.InstanceConfiguration>
</configurations>
</com.google.jenkins.plugins.computeengine.ComputeEngineCloud>
</clouds>```
from google-compute-engine-plugin.
Particularly, the instanceId
and jenkins_cloud_id
are missing.
from google-compute-engine-plugin.
Error message from Jenkins:
{
"code" : 400,
"errors" : [ {
"domain" : "global",
"message" : "Invalid value for field 'filter': '(labels.jenkins_cloud_id eq )'. Invalid list filter expression.",
"reason" : "invalid"
} ],
"message" : "Invalid value for field 'filter': '(labels.jenkins_cloud_id eq )'. Invalid list filter expression."
}
30-Apr-2019 13:01:57.882 WARNING [jenkins.util.Timer [#10]] com.google.jenkins.plugins.computeengine.ComputeEngineCloud.provision Error provisioning node
com.google.api.client.googleapis.json.GoogleJsonResponseException: 400 Bad Request
{
"code" : 400,
"errors" : [ {
"domain" : "global",
"message" : "Invalid value for field 'filter': '(labels.jenkins_cloud_id eq )'. Invalid list filter expression.",
"reason" : "invalid"
} ],
"message" : "Invalid value for field 'filter': '(labels.jenkins_cloud_id eq )'. Invalid list filter expression."
}
at com.google.api.client.googleapis.json.GoogleJsonResponseException.from(GoogleJsonResponseException.java:146)
at com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest.newExceptionOnError(AbstractGoogleJsonClientRequest.java:113)
at com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest.newExceptionOnError(AbstractGoogleJsonClientRequest.java:40)
at com.google.api.client.googleapis.services.AbstractGoogleClientRequest$1.interceptResponse(AbstractGoogleClientRequest.java:321)
at com.google.api.client.http.HttpRequest.execute(HttpRequest.java:1067)
at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:419)
at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:352)
at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.execute(AbstractGoogleClientRequest.java:469)
at com.google.jenkins.plugins.computeengine.client.ComputeClient.getInstancesWithLabel(ComputeClient.java:398```
from google-compute-engine-plugin.
Fixed with: #86 Thanks to @ingwarsw
I've also blacklisted the release 3.1.0 here:
jenkins-infra/update-center2#272
from google-compute-engine-plugin.
Related Issues (20)
- Feature request: Option to delay agent connection to allow custom startup script to finish HOT 3
- Option the set MAXIMUM triggered builds for an agent
- Enable billing measure of GCP Jenkins workers HOT 2
- The hpi download link is broken HOT 2
- Add new spot for provision type HOT 2
- New Node with "Google Compute Engine" failed HOT 1
- Add an ability to provide image family name instead of image name HOT 1
- Create snapshot defaulting to multi-region
- Expose Prefix Start Agent Command and Suffix Start Agent Command
- Jobs on preempted VMs hang indefinitely until manually cancelled HOT 2
- Option to limit run time of VM HOT 1
- Large number of offline build executors when there is no capacity
- Add option for enabling nested virtualization
- External IP Address can't be configured HOT 10
- Attaching a start up script to an instance template
- Nullsafe operator required
- Change mahine type from configuration not working
- Long wait times to provision a VM in GCP HOT 4
- Jenkins losing connection to GCE VM / GCE VM shutting down HOT 1
- Preempted VMs are sometimes not properly detected HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from google-compute-engine-plugin.