Project

General

Profile

Bug #30620

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

Added by Markus Bucher about 2 months ago. Updated 16 days ago.

Status:
Closed
Priority:
High
Assignee:
Category:
Compute resources - VMware
Target version:
Difficulty:
Triaged:
No
Bugzilla link:
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

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

Associated revisions

Revision 350e98a2 (diff)
Added by Shira Maximov about 1 month ago

Fixes #30620 - Fix CR creation from the API

History

#1 Updated by Tomer Brisker about 2 months ago

  • Related to Bug #30372: Can't add RHEV with APIv3 through Hammer added

#2 Updated by Tomer Brisker about 2 months ago

  • Bugzilla link set to 1867895

#3 Updated by Tomer Brisker about 2 months ago

  • Target version set to 2.1.2
  • Category set to Compute resources - VMware

#4 Updated by The Foreman Bot about 2 months ago

  • Assignee set to Shira Maximov
  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/7894 added

#5 Updated by The Foreman Bot about 1 month ago

  • Fixed in Releases 2.3.0 added

#6 Updated by Tomer Brisker about 1 month ago

  • Fixed in Releases 2.1.2, 2.2.0 added
  • Fixed in Releases deleted (2.3.0)

#7 Updated by Shira Maximov about 1 month ago

  • Status changed from Ready For Testing to Closed

#8 Updated by The Foreman Bot 16 days ago

  • Pull request https://github.com/theforeman/foreman/pull/7975 added

Also available in: Atom PDF