Bug 1282537
Summary: | authentication_userid/authentication_password methods missing for Foreman provider | ||
---|---|---|---|
Product: | Red Hat CloudForms Management Engine | Reporter: | ncatling |
Component: | Automate | Assignee: | Greg McCullough <gmccullo> |
Status: | CLOSED WONTFIX | QA Contact: | Jan Krocil <jkrocil> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 5.4.0 | CC: | cpelland, gmccullo, jfrey, jhardy, mkanoor, nachandr, ncatling, obarenbo, simaishi, tfitzger |
Target Milestone: | GA | ||
Target Release: | cfme-future | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | automate:foreman | ||
Fixed In Version: | 5.5.0.11 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2017-06-07 18:46:50 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
ncatling
2015-11-16 17:09:31 UTC
*** Bug 1282541 has been marked as a duplicate of this bug. *** Nick - The steps to reproduce are not valid from the rails console as written because $evm is nil when you start the rails console. If you have steps for reproducing in console please provide the full steps otherwise it seems like the steps should state that the logic needs to be run from an automate method. This is the missing bit: $evm = MiqAeMethodService::MiqAeService.new(MiqAeEngine::MiqAeWorkspaceRuntime.new) This is the missing bit: $evm = MiqAeMethodService::MiqAeService.new(MiqAeEngine::MiqAeWorkspaceRuntime.new) This was recently fixed in https://github.com/ManageIQ/manageiq/pull/5397 as part of Bug 1280350. Moving this ticket to POST so QE can validate this scenario as it was not identified as an issue in the original bug. Updated steps to Reproduce: 1. Add Satellite 6 provider 2. Access rails console 3. Execute following: $evm = MiqAeMethodService::MiqAeService.new(MiqAeEngine::MiqAeWorkspaceRuntime.new) $evm.vmdb('ext_management_system').all.each { |ems| puts ems.authentication_userid } The Sat6/Foreman provider is setup different from other management_systems. The main object is defined in the Provider model and has multiple "management systems" called managers which are derived from the ext_management_system model which is why you see 2 records there for a Foreman provider. The credentials are set on the Provider object and not on the managers which is why you are seeing the nil. Foreman needs to access the credentials at the Provider model layer, but they are currently not exposed to automate. This BZ has been closed since it was opened on a version of CloudForms that has reached the end of its lifecycle. If you find that this bug is still relevant, please open a new BZ against the relevant supported version of CloudForms. |