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 #1

Updated by Tomer Brisker over 3 years ago

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

Updated by Tomer Brisker over 3 years ago

  • Bugzilla link set to 1867895
Actions #3

Updated by Tomer Brisker over 3 years ago

  • Category set to Compute resources - VMware
  • Target version set to 2.1.2
Actions #4

Updated by The Foreman Bot over 3 years ago

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

Updated by The Foreman Bot over 3 years ago

  • Fixed in Releases 2.3.0 added
Actions #6

Updated by Tomer Brisker over 3 years ago

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

Updated by Shira Maximov over 3 years ago

  • Status changed from Ready For Testing to Closed
Actions #8

Updated by The Foreman Bot over 3 years ago

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

Also available in: Atom PDF