Project

General

Profile

Actions

Bug #23473

closed

Update hammer to correctly provision vmware VMs.

Added by Doug Forster about 6 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Urgent
Assignee:
-
Category:
Compute resources
Target version:
-
Difficulty:
Triaged:
Yes
Team Backlog:
Fixed in Releases:
Found in Releases:
In Kanboard:

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

hammer.log hammer.log 102 KB Doug Forster, 05/07/2018 03:32 PM

Related issues 2 (1 open1 closed)

Related to Foreman - Bug #23466: Unable to provision host with hammer after upgrade to 1.16.1NewActions
Related to Hammer CLI - Tracker #26990: Tracker for VMware issuesClosedOleh Fedorenko

Actions
Actions

Also available in: Atom PDF