Project

General

Profile

Actions

Bug #30620

closed

API Create vmware ComputeResource fails with "Datacenter can't be blank"

Added by Markus Bucher over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
High
Assignee:
Category:
Compute resources - VMware
Target version:
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

When trying to create a new compute-resource via API (e.g. foreman-ansible-modules or hammer), the request fails with Datacenter can't be blank

$ hammer compute-resource create --provider="VMWare" --name "vCenter" --description "Test vCenter" --user "administrator" --server "vsphere.example.com" --password 'secret' --datacenter "DEV" 
Could not create the compute resource:
  Datacenter can't be blank

I suspect the change from #30372 to be the reason for this, because it removes the datacenter-option from the compute-resource create instruction.


Related issues 1 (0 open1 closed)

Related to Foreman - Bug #30372: Can't add RHEV with APIv3 through HammerClosedShira MaximovActions
Actions

Also available in: Atom PDF