cloudbase / cloudbase-init

Cross-platform instance initialization
http://openstack.org
Apache License 2.0
414 stars 150 forks source link

KMS/AVMA key list out of date and override not available #74

Open nullptr0000 opened 2 years ago

nullptr0000 commented 2 years ago

The key list in productkeys.py was last updated in 2017 and doesn't cover more recent releases of Windows. This breaks the Licensing plugin on any recent release as the OS isn't recognised.

The Licensing plugin notes mention being able to set 'avma_product_key' via metadata as an override but this doesn't seem to be implemented.

nullptr0000 commented 2 years ago

As an extra problem, it seems that if you build an image with a KMS key you can't then use the _set_avma_productkey option to override this as it hits the description, license_family, is_current = manager.get_kms_product() check and goes no further.