Description of problem: In Control -> Conditions, there aren't a "VM and Instance: Tenant" field available. Version-Release number of selected component (if applicable): CF3.2 How reproducible: Try to create a condition like "vms belonging to X tenant" Steps to Reproduce: 1. Control -> Conditions 2. Add a new condition 3. Search in "Fields" for something like "Tenant" Actual results: No tenant shown Expected results: "VM and Instance: Tenant" field available Additional info:
Available field selections are based on class VmOrTemplate through reflection. Any fields that are available only to a subclass of VmOrTemplate will not be visible here. In this particular example, cloud_tenant is a field visible to VmOpenstack. This problem applies to both scope and condition definitions, where MiqExpression is used. One possible solution is in the UI makes a list of all subclasses of VmOrTemplate and allows a user to select one.
https://github.com/ManageIQ/manageiq/pull/4416
https://github.com/ManageIQ/manageiq/pull/5506
New commit detected on ManageIQ/manageiq/master: https://github.com/ManageIQ/manageiq/commit/a7597b65273b9c6089ee19a887cd85c72d1f8f08 commit a7597b65273b9c6089ee19a887cd85c72d1f8f08 Author: Gregg Tanzillo <gtanzill> AuthorDate: Wed Nov 18 16:35:33 2015 -0500 Commit: Gregg Tanzillo <gtanzill> CommitDate: Fri Nov 20 07:00:27 2015 -0500 Include reflections of descendant classes when building model details for reporting and expression editors - Enabled only for Vm and Host models - Enables inclusion of cloud tenants under an openstack VM in reports and expressions - Enables inclusion of cloud networks under an openstack Host https://bugzilla.redhat.com/show_bug.cgi?id=1236001 app/models/host.rb | 4 ++++ app/models/miq_expression.rb | 9 +++++++-- app/models/vm.rb | 4 ++++ config/locales/en.yml | 5 +++++ spec/models/miq_expression/miq_expression_spec.rb | 17 +++++++++++++++++ 5 files changed, 37 insertions(+), 2 deletions(-)
New commit detected on cfme/5.5.z: https://code.engineering.redhat.com/gerrit/gitweb?p=cfme.git;a=commitdiff;h=0d2a48ae68fdf469d5a6ff7dda3e572d209a9585 commit 0d2a48ae68fdf469d5a6ff7dda3e572d209a9585 Author: Gregg Tanzillo <gtanzill> AuthorDate: Wed Nov 18 16:35:33 2015 -0500 Commit: Gregg Tanzillo <gtanzill> CommitDate: Mon Dec 21 17:01:32 2015 -0500 Include reflections of descendant classes when building model details for reporting and expression editors - Enabled only for Vm and Host models - Enables inclusion of cloud tenants under an openstack VM in reports and expressions - Enables inclusion of cloud networks under an openstack Host https://bugzilla.redhat.com/show_bug.cgi?id=1236001 app/models/host.rb | 4 ++++ app/models/miq_expression.rb | 9 +++++++-- app/models/vm.rb | 4 ++++ config/locales/en.yml | 3 +++ spec/models/miq_expression/miq_expression_spec.rb | 17 +++++++++++++++++ 5 files changed, 35 insertions(+), 2 deletions(-)
@Gregg Tanzillo @Eduardo Minguez I'm verifying this bug in "5.6.0.4-beta2.3.20160421172650_719e256" and I don't see the "VM and Instance: Tenant" in fields for new condition. Please let me know if I'm missing anything from the below steps. 1. navigate to "control->explorer->conditions->All VM and Instance Conditions" click on "Add a New VM Condition" 2. choose->field, 3. observe that, from the drop down no option for "VM and Instance: Tenant".
This BZ has been closed since it was opened on a version of CloudForms that has reached the end of its lifecycle. If you find that this bug is still relevant, please open a new BZ against the relevant supported version of CloudForms.