Description of problem: The vendor property of a VM should be unique per provider and needs to be set in the database as a lower-cased value. Version-Release number of selected component (if applicable): 5.5.0 How reproducible: Always Steps to Reproduce: 1. Configure an Azure provider and refresh so VMs and Templates are collected 2. From the rails console load an Azure VM v = ManageIQ::Providers::Azure::CloudManager::Vm.first 3. Evaluate the setting for vendor (which can be directly from the db column or through a method on the model): 1) DB column access: v.attributes["vendor"] => "Microsoft" 2) Model method: v.vendor => nil Actual results: DB column returns "Microsoft" Model method returns nil Expected results: DB column returns "azure" Model method returns "Azure" Additional info:
https://github.com/ManageIQ/manageiq/pull/5717
Opened based on PR discussion https://github.com/ManageIQ/manageiq/pull/5717#discussion-diff-47688376
Reproduction steps are incorrect. The vendor column is properly set to a lower-case value but the value should be set to "azure" and not "microsoft".
New commit detected on ManageIQ/manageiq/master: https://github.com/ManageIQ/manageiq/commit/ea9d594a7a931e68fb21f5ce636f27a408a12d99 commit ea9d594a7a931e68fb21f5ce636f27a408a12d99 Author: Bill Wei <bilwei> AuthorDate: Tue Dec 15 17:02:12 2015 -0500 Commit: Bill Wei <bilwei> CommitDate: Tue Dec 15 18:14:29 2015 -0500 Change vendor names to azure https://bugzilla.redhat.com/show_bug.cgi?id=1291922 app/models/manageiq/providers/azure/cloud_manager/refresh_parser.rb | 4 ++-- .../models/manageiq/providers/azure/cloud_manager/refresher_spec.rb | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-)
New commit detected on cfme/5.5.z: https://code.engineering.redhat.com/gerrit/gitweb?p=cfme.git;a=commitdiff;h=f7b0ae2fb1e91bdf7047eb41fec07517d55d5f1f commit f7b0ae2fb1e91bdf7047eb41fec07517d55d5f1f Author: Bill Wei <bilwei> AuthorDate: Tue Dec 15 17:02:12 2015 -0500 Commit: Bill Wei <bilwei> CommitDate: Wed Dec 23 13:26:00 2015 -0500 Change vendor names to azure https://bugzilla.redhat.com/show_bug.cgi?id=1291922 app/models/manageiq/providers/azure/cloud_manager/refresh_parser.rb | 4 ++-- .../models/manageiq/providers/azure/cloud_manager/refresher_spec.rb | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-)
Container now reads azure. Moving to verified. Tested on 5.6 Beta 1 using https://10.16.6.154/vm_cloud/explorer
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:1348