Project

General

Profile

Bug #10151

Unable to get resource pool when cluster name != cluster full_path

Added by Francois Herbert almost 8 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Compute resources - VMware
Target version:
Difficulty:
Triaged:
Bugzilla link:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

Description

Currently the clusters function in app/models/compute_resources/foreman/model/vmware.rb maps the full_path. This only works when the cluster name is the same as the cluster full_path.
All references in Fog to retrieve cluster information relies on the cluster name not the cluster full path.

I get the following failed to create vm: undefined method `resourcePool' for nil:NilClass when trying to pass the cluster full_path. Changing the clusters function in app/models/compute_resources/foreman/model/vmware.rb to map to name instead fixes this issue.


Related issues

Related to Foreman - Bug #11274: Unable to get resource pool when cluster is nested in intermediate folder under DatacenterClosed2015-08-02
Related to Foreman - Bug #8581: Can't provision a new host if vmware cluster is under folderClosed2014-12-04

Associated revisions

Revision 7087017c (diff)
Added by Francois Herbert almost 8 years ago

fixes #10151 - Unable to get resourcePool

History

#1 Updated by The Foreman Bot almost 8 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/2307 added
  • Pull request deleted ()

#2 Updated by Francois Herbert almost 8 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#3 Updated by Dominic Cleal over 7 years ago

  • Related to Bug #11274: Unable to get resource pool when cluster is nested in intermediate folder under Datacenter added

#4 Updated by Dominic Cleal over 7 years ago

  • Related to Bug #8581: Can't provision a new host if vmware cluster is under folder added

#5 Updated by Marc 'Zugschlus' Haber over 6 years ago

This patch is not in the 1.12.1 release tarball. The code still has "dc.clusters.map(&:full_path).sort". Can anybody explain?

#6 Updated by Dominic Cleal over 6 years ago

#11274 reverted it on the basis of a bug fix in Fog.

#7 Updated by Daniel Lobato Garcia almost 6 years ago

  • Bugzilla link set to 1207165

Also available in: Atom PDF