Actions
Bug #23473
closedUpdate hammer to correctly provision vmware VMs.
Status:
Closed
Priority:
Urgent
Assignee:
-
Category:
Compute resources
Target version:
-
Description
Recently vmWare compute resources were updated to allow per-disk configuration of volumes.
Additional SCSI Controller with per-disk configuration
http://projects.theforeman.org/issues/4509
I believe this may be the root of this issue as well.
https://projects.theforeman.org/issues/23466
When creating a host via the foreman UI the request ends up containing:
"compute_attributes": { "cpus": "1", "corespersocket": "1", "memory_mb": "4096", "firmware": "efi", "cluster": "VFP", "resource_pool": "Resources", "path": "/Datacenters/VFP/vm", "guest_id": "otherGuest64", "hardware_version": "Default", "memoryHotAddEnabled": "0", "cpuHotAddEnabled": "0", "add_cdrom": "0", "start": "1", "annotation": "", "scsi_controllers": "{\"scsiControllers\":[{\"type\":\"VirtualLsiLogicController\",\"key\":1000}],\"volumes\":[{\"thin\":\"true\",\"name\":\"Hard disk\",\"mode\":\"persistent\",\"controllerKey\":1000,\"datastore\":\"Storage_2\",\"size\":52428800,\"sizeGb\":50,\"eagerZero\":\"false\"}]}" },
When using hammer it includes:
"compute_attributes": { "start": "1", "volumes_attributes": { "0": { "size_gb": "50G", "datastore": "Storage_2", "thin": "true" } } },
I even tried without passing any volume attributes and the build still fails like it doesn't honor what is in the compute profile.
Files
Actions