GoogleCloudPlatform / GoogleCloudPlatform/compute-image-tools

unable to add windows license in the workflow

Open
#2,438 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
220
Forks
168
Avg merge
1d 8h
Merged PRs (30d)
6

Description

Hey, I'm having trouble adding a license key to the Daisy workflow. The cloud build failed due to a timeout after 4 hours, and I’m not sure why.
I’ve added the product_key in the steps, but I’m uncertain if I also need to modify the Licenses section in create-image. kindly assist, below is daisy workflow for reference

"windows-build": {
"Timeout": "7h",
"IncludeWorkflow": {
"Path": "./windows-build-uefi.wf.json",
"Vars": {
"install_disk": "${install_disk}",
"install_disk_size": "${install_disk_size}",
"updates": "${updates}",
"drivers_bucket": "${drivers_bucket}",
"dotnet48": "${dotnet48}",
"pwsh": "${pwsh}",
"edition": "Windows 11 Enterprise",
"product_key": "XXXX-XXXX-XXXX-XXXX-XXXXX",
"media": "${media}",
"cloud_sdk": "${cloudsdk}",
"google_cloud_repo": "${google_cloud_repo}",
"workflow_root": "${workflow_root}",
"sbom_destination": "${sbom_destination}",
"sbom_util_gcs_root": "${sbom_util_gcs_root}"
}
}
},

"create-image": {
"CreateImages": [
{
"Project": "${project}",
"SourceDisk": "${install_disk}",
"Name": "${name}",
"Family": "${family}",
"Description": "${description}",
"Licenses": [
"projects/windows-cloud/global/licenses/windows-11-x64-byol"
],
"GuestOsFeatures": [
{
"Type": "VIRTIO_SCSI_MULTIQUEUE"
},
{
"Type": "WINDOWS"
},
{
"Type": "MULTI_IP_SUBNET"
},
{
"Type": "UEFI_COMPATIBLE"
},
{
"Type": "GVNIC"
}
],
"NoCleanup": true,
"ExactName": true
}
]
}

Contributor guide

Open the contributing guide

Research direction

Start with the `windows-build` workflow and its included `./windows-build-uefi.wf.json`, then compare how `product_key` is consumed with the `create-image` step's `Licenses` section. Reproduce or investigate the four-hour cloud-build timeout and determine whether the license configuration is the cause; done means the workflow completes successfully with the intended Windows license configuration.

Written by the indexing model from the issue text.

Assessment

Tech stack
google-cloud
Domain
cloud, devops
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.