Update to the suggested query: MiqAeClass.where("inherits IS NOT NULL").update_all(:inherits => nil)
New commit detected on cfme/5.5.z: https://code.engineering.redhat.com/gerrit/gitweb?p=cfme.git;a=commitdiff;h=4e39db8bb6d37060ff7e6b7a7d9705e6fe77be50 commit 4e39db8bb6d37060ff7e6b7a7d9705e6fe77be50 Author: Bill Fitzgerald <wfitzger> AuthorDate: Tue Feb 23 12:10:03 2016 -0500 Commit: Bill Fitzgerald <wfitzger> CommitDate: Thu Mar 3 10:53:50 2016 -0500 Automate - fix inherits problem. Removed inheritance check in miq_ae_object.rb Removed inheritance test from miq_ae_engine_spec.rb https://bugzilla.redhat.com/show_bug.cgi?id=1303086 Original BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1301123 Original PR: https://github.com/ManageIQ/manageiq/pull/6896 lib/miq_automation_engine/engine/miq_ae_object.rb | 2 +- .../miq_automation_engine/miq_ae_engine_spec.rb | 28 ---------------------- .../miq_automation_engine/miq_ae_object_spec.rb | 10 ++++++++ 3 files changed, 11 insertions(+), 29 deletions(-)
New commit detected on cfme/5.5.z: https://code.engineering.redhat.com/gerrit/gitweb?p=cfme.git;a=commitdiff;h=0800dce99ffc5c113ef65fc8162c9a8d40a70f3d commit 0800dce99ffc5c113ef65fc8162c9a8d40a70f3d Merge: 7d92abd 4e39db8 Author: Greg McCullough <gmccullo> AuthorDate: Thu Mar 3 11:55:02 2016 -0500 Commit: Greg McCullough <gmccullo> CommitDate: Thu Mar 3 11:55:02 2016 -0500 Merge branch '5.5.z.fix_inherits_problem' into '5.5.z' Automate - fix inherits problem. Removed inheritance check in miq_ae_object.rb Removed inheritance test from miq_ae_engine_spec.rb Resolved conflicts in Cherry Pick. https://bugzilla.redhat.com/show_bug.cgi?id=1303086 Original BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1301123 Original PR: https://github.com/ManageIQ/manageiq/pull/6896 See merge request !833 lib/miq_automation_engine/engine/miq_ae_object.rb | 2 +- .../miq_automation_engine/miq_ae_engine_spec.rb | 28 ---------------------- .../miq_automation_engine/miq_ae_object_spec.rb | 10 ++++++++ 3 files changed, 11 insertions(+), 29 deletions(-)
Alex, If you look in the older versions of CFME they used to have a user selected field called Inherits, which doesn't exist in the newer versions. So if you have an older version of CFME you would select some classes and just set the inherits field to a class name from the drop down list. You can then export the Automate Model in the older version, which will be in XML. Convert the XML to YAML model rake evm:automate:convert DOMAIN=domain_name FILE=<old_xml_file_from_previous_version> EXPORT_DIR=./model_export|ZIP_FILE=filename|YAML_FILE=filename" Once you have a YAML export files which have the inherits set you can import it into Automate and start using those classes. If you don't have an older version you would have to set the inherits field manually. (1) start a rails console bin/rails c (2) Update the REQUEST class inherits field using MiqAeClass.find_by_fqname('/ManageIQ/System/Request').update_attributes(:inherits => '/ManageIQ/System/REQ') This is basically leaving a remanant from an old XML pointing to a class which we know doesn't exist. (3) Using the CFME UI go to Automation -> Simulation System/Process Request Message create Request InspectMe Simulation Parameters Execute Methods should be checked (4) Hit Submit Button Check the log/automation log you should see an error message ERROR -- : Class [/ManageIQ/System/REQ] not found in MiqAeDatastore If you run with the new changes you will see us ignoring the inherits field (remnanants from the older databases) and not issuing the error
5.5.3.4.20160407153134_b3e2a83
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://access.redhat.com/errata/RHBA-2016:0616
Provided information in earlier comment
Provided information in an earlier comment