-
Bug
-
Resolution: Fixed
-
Major
-
os.arch: amd64
os.name: Linux
os.version: 4.4.111+
java.version: 1.8.0_151
java.runtime.name: OpenJDK Runtime Environment
Google Compute Engine Plugin: 1.0.4
Hi,
I am using the Google Compute Engine Plugin to spin up jenkins agent on-demand.
However, one of my instance configurations requires a GPU attached and it fails to create the google compute instance.
GCE returns a 400 badRequest on instance creation with the following message: "Instances with guest accelerators do not support live migration.". I attached the stacktrace I retrieved from the jenkins logs to this issue.
I believe the issue is that OnHostMaintenance should be set to TERMINATE if accelerators are attached. The default value for OnHostMaintenance is MIGRATE but this is not supported when an accelerator is attached: https://github.com/jenkinsci/google-compute-engine-plugin/blob/f1559b61917f8960011d81e762a821779fd56a27/src/main/java/com/google/jenkins/plugins/computeengine/InstanceConfiguration.java#L303
Thank you