Description of problem: Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
Created attachment 1012424 [details] Error Steps to reproduce : Add a heat template and create a service dialog In catalog item , choose Orchestration and provider all details and order service.Request fails with error
Build : master.20150408150925_642cf20
can you attach evm.log?
Added needinfo for getting evm.log and would also like automation.log. Bill - This could be related to the relaxed requirement that the catalog item currently does not require a provider to be supplied. However if one is not supplied it needs to be set in automate which I assume is not happening here. Talking to jhardy if that is the case we should enforce the selection of the provider in the catalog item.
Created attachment 1012739 [details] automation log
The following is the replay of what happened during the course. 1. Defined catalog item heat_stack_item. Chose the provider with id = 1 2. Ordered service from heat_stack_item. The stack provisioning passed the reported error and failed with some other reason. The corresponding log had been achieved. 3. Provider with id = 1 was removed. 4. Edited catalog item heat_stack_item and selected another provider (qeblade38) with id = 2. But association for id = 1 was not removed from the definition. 4. Ordered more services from heat_stack_item. Since provider id = 1 no longer exists, you got error "undefined method `base_class' for NilClass:Class " This is not a blocker bug. It happens only when the saved catalog item pointing to a deleted provider. You can continue the test by creating a new catalog item.
Bill - Is item #4 where the provider is updated but the old invalid reference is not removed an issue on the back-end or UI? Seems like that is the issue that should be addressed.
I am looking into the back-end code. This is something we can address in back-end
New commit detected on manageiq/master: https://github.com/ManageIQ/manageiq/commit/e23a0af6fdc21a685e42581ad23d4c11db2a141d commit e23a0af6fdc21a685e42581ad23d4c11db2a141d Author: Bill Wei <bilwei> AuthorDate: Mon Apr 13 12:21:25 2015 -0400 Commit: Bill Wei <bilwei> CommitDate: Fri Apr 17 09:27:30 2015 -0400 Do not copy service resource if the resource is nil Clean up invalid resources before saving the service template https://bugzilla.redhat.com/show_bug.cgi?id=1207865 vmdb/app/models/service_template.rb | 2 +- vmdb/app/models/service_template_orchestration.rb | 7 +++++++ .../spec/models/service_template_orchestration_spec.rb | 18 ++++++++++++++++++ 3 files changed, 26 insertions(+), 1 deletion(-)
Fixed in 5.4.0.0.25.20150429111523_0455f87
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