Description of problem:
Missing Guest OS in dashboard reports in Openstack 8/10
Version-Release number of selected component (if applicable):
No data shown
Should show Guest OS
Marek: for dashboard to work correctly, I think we need what azure does: https://github.com/Ladas/manageiq-providers-azure/blob/0991914c6e08e60122ed49a8684b4b84772d229b/app/models/manageiq/providers/azure/cloud_manager/refresh_parser.rb#L241
I've done the same fix for the AWS provider, so follow that https://github.com/ManageIQ/manageiq-providers-amazon/pull/376
It looks like there are possibly two different things at work here. I'm not sure which is the primary one driving this BZ:
1) The Guest OS is showing up as "Unknown" on the dashboard, although the Operating System you see when going into the node show/details page is actually "linux". The dashboard view should be updated to show the same as the node details (it appears that while the OS is listed as "linux" in the node/host ActiveRecord object, the MiqReport that the dashboard widget pulls from does not list the operating system properly)
2) The Operating System field for OpenStack infra nodes is hard-coded to "linux" in the refresh parser rather than actually getting the information from OpenStack. In this case, we need to see if that information is available via the APIs we're using to refresh and, if so, incorporate it into the AR object updates.
I'm wondering if 1) and 2) are really separate bugs. 2) would depend on 1). It could be that 1) would have a higher PM score than 2), which would make the more important fix easier than the less important one -- if that's the case, we'd probably want two BZs here. It could be the reverse, in which case 1) isn't particularly useful on its own as a fix. In that case, we'd probably want a single BZ (this one) and incorporate both changes into the same fix.
In any case, I'm just seeing the comment from Ladislav now (I think I must have refreshed this page right before he submitted it earlier today). I'll start with that.
New commit detected on ManageIQ/manageiq-providers-openstack/master:
Author: Scott Seago <email@example.com>
AuthorDate: Tue Jan 9 09:03:49 2018 -0500
Commit: Scott Seago <firstname.lastname@example.org>
CommitDate: Fri Jan 12 10:34:57 2018 -0500
BZ 1520565: Track guest OS for openstack images and VMs
Use os_distro and os_version properties on glance images to track operating system
information on templates and VMs.
.../providers/openstack/cloud_manager/refresh_parser.rb | 13 +++++++++++++
.../openstack/inventory/parser/cloud_manager.rb | 16 ++++++++++++++++
.../openstack/inventory/persister/cloud_manager.rb | 1 +
.../openstack/inventory/persister/target_collection.rb | 4 ++--
.../inventory_collection_default/cloud_manager.rb | 14 ++++++++++++++
.../providers/openstack/refresh_parser_common/images.rb | 7 +++++++
.../openstack/cloud_manager/refresh_spec_common.rb | 10 +++++-----
.../openstack/infra_manager/refresher_rhos_juno_spec.rb | 2 +-
8 files changed, 59 insertions(+), 8 deletions(-)
(forgot to remove needinfo when setting it to POST)
Verified on 220.127.116.11