Bug 1219439

Summary: Foreman provisioning - undefined method `common_configuration_profiles_for_selected_hosts' for #<Class:0x000000086adb48> [miq_request/prov_edit]
Product: Red Hat CloudForms Management Engine Reporter: Jan Krocil <jkrocil>
Component: ProvisioningAssignee: Brandon Dunne <bdunne>
Status: CLOSED ERRATA QA Contact: Dave Johnson <dajohnso>
Severity: high Docs Contact:
Priority: high    
Version: 5.4.0CC: cpelland, gmccullo, hkataria, jfrey, jhardy, mpovolny, obarenbo
Target Milestone: GA   
Target Release: 5.4.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-06-16 13:01:57 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:
Attachments:
Description Flags
Extract from production.log none

Description Jan Krocil 2015-05-07 11:10:37 UTC
Created attachment 1023076 [details]
Extract from production.log

Description of problem:
Unable to reprovision a foreman configured system; error page appears when the reprovisioning button is clicked.

Version-Release number of selected component (if applicable):
5.4.0.0.25

How reproducible:
Always

Steps to Reproduce:
1. Setup a foreman provider
2. Select a configured system
3. Click the "Lifycycle > Provision Configured System" button

Actual results:
Error page with:
undefined method `common_configuration_profiles_for_selected_hosts' for #<Class:0x000000086adb48> [miq_request/prov_edit]

Expected results:
A provision dialog is shown.

Additional info:

Comment 2 Jason Frey 2015-05-07 14:12:23 UTC
usually undefined method blah for #<Class> implies you called self.class in a class method.

Comment 3 CFME Bot 2015-05-07 20:36:06 UTC
New commit detected on manageiq/master:
https://github.com/ManageIQ/manageiq/commit/f2668ad23f02913efcd31732c7fb085940ed11b5

commit f2668ad23f02913efcd31732c7fb085940ed11b5
Author:     Brandon Dunne <bdunne>
AuthorDate: Thu May 7 10:03:53 2015 -0400
Commit:     Brandon Dunne <bdunne>
CommitDate: Thu May 7 14:46:43 2015 -0400

    Use the updated method name
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1219439

 vmdb/app/models/miq_provision_configured_system_foreman_workflow.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comment 4 CFME Bot 2015-05-07 20:36:10 UTC
New commit detected on manageiq/master:
https://github.com/ManageIQ/manageiq/commit/153a4d25edea5d86769c06d713619d8fafb2128f

commit 153a4d25edea5d86769c06d713619d8fafb2128f
Author:     Brandon Dunne <bdunne>
AuthorDate: Thu May 7 15:01:57 2015 -0400
Commit:     Brandon Dunne <bdunne>
CommitDate: Thu May 7 15:01:57 2015 -0400

    Add spec for MiqProvisionConfiguredSystemForemanWorkflow
    
    Specifically #allowed_configuration_profiles
    https://bugzilla.redhat.com/show_bug.cgi?id=1219439

 vmdb/spec/factories/miq_dialog.rb                          |  5 +++++
 vmdb/spec/factories/miq_request_workflow.rb                |  6 ++++++
 ...iq_provision_configured_system_foreman_workflow_spec.rb | 14 ++++++++++++++
 3 files changed, 25 insertions(+)
 create mode 100644 vmdb/spec/models/miq_provision_configured_system_foreman_workflow_spec.rb

Comment 5 Jan Krocil 2015-05-12 09:49:00 UTC
Verified fixed in 5.4.0.0.26 - 5.4.0.0.26.20150511144816_f924bd4.

Comment 7 errata-xmlrpc 2015-06-16 13:01:57 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2015-1100.html