Bug 1219439 - Foreman provisioning - undefined method `common_configuration_profiles_for_selected_hosts' for #<Class:0x000000086adb48> [miq_request/prov_edit]
Summary: Foreman provisioning - undefined method `common_configuration_profiles_for_se...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Provisioning
Version: 5.4.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: GA
: 5.4.0
Assignee: Brandon Dunne
QA Contact: Dave Johnson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-05-07 11:10 UTC by Jan Krocil
Modified: 2015-06-16 13:01 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-06-16 13:01:57 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Extract from production.log (12.29 KB, text/plain)
2015-05-07 11:10 UTC, Jan Krocil
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:1100 0 normal SHIPPED_LIVE CFME 5.4.0 bug fixes, and enhancement update 2015-06-16 16:28:42 UTC

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


Note You need to log in before you can comment on or make changes to this bug.