Bug 1209629
| Summary: | Foreman - copy provisioning request, dialog cannot be found | ||
|---|---|---|---|
| Product: | Red Hat CloudForms Management Engine | Reporter: | Jan Krocil <jkrocil> |
| Component: | Provisioning | Assignee: | Aparna Karve <akarve> |
| Status: | CLOSED ERRATA | QA Contact: | Jan Krocil <jkrocil> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 5.4.0 | CC: | dclarizi, jhardy, mpovolny, obarenbo |
| Target Milestone: | GA | ||
| Target Release: | 5.4.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | 5.4.0.0.19 + 1 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2015-06-16 12:57:06 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: | |||
New commit detected on manageiq/master: https://github.com/ManageIQ/manageiq/commit/f811859f2f570628980f147b24d18c355c5c6661 commit f811859f2f570628980f147b24d18c355c5c6661 Author: Aparna Karve <akarve> AuthorDate: Wed Apr 8 17:39:41 2015 -0700 Commit: Aparna Karve <akarve> CommitDate: Fri Apr 10 12:07:33 2015 -0700 Ensured proper foreman prov. params are passed for edit/copy requests https://bugzilla.redhat.com/show_bug.cgi?id=1209641 https://bugzilla.redhat.com/show_bug.cgi?id=1209629 vmdb/app/controllers/miq_request_controller.rb | 32 ++++++++++++++++------ vmdb/app/models/miq_host_provision_request.rb | 4 +++ .../miq_provision_configured_system_request.rb | 4 +++ vmdb/app/models/miq_provision_request.rb | 4 +++ .../controllers/miq_request_controller_spec.rb | 22 +++++++++++++++ 5 files changed, 58 insertions(+), 8 deletions(-) Verified fixed in 5.4.0.0.22 - 5.4.0.0.22.20150420163946_26004d1. 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 |
Just quickly took a look with Jan: the dialog is there product/dialogs/miq_dialogs/miq_provision_configured_system_foreman_dialogs.yaml it's also loaded in the database but with a different type MiqProvisionConfiguredSystemWorkflow vs MiqHostProvisionWorkflow which is not a constant but rather it's calculated: d = MiqDialog.where("lower(name) = ? and dialog_type = ?", dp.downcase, self.class.base_model.name).first raise MiqException::Error, "Dialog cannot be found. Name:[#{@values[:miq_request_dialog_name]}] Type:[#{self.class.base_model.name}]" if d.nil? so some design assumption may have been wrong