Bug 1393547 - [RFE] Unknown operating system for AWS instances
Summary: [RFE] Unknown operating system for AWS instances
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Providers
Version: 5.7.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: GA
: 5.8.0
Assignee: Ladislav Smola
QA Contact: Matouš Mojžíš
URL:
Whiteboard: ec2:vm
: 1396264 (view as bug list)
Depends On:
Blocks: 1397151 1404752
TreeView+ depends on / blocked
 
Reported: 2016-11-09 19:48 UTC by David La Motta
Modified: 2020-02-14 18:07 UTC (History)
12 users (show)

Fixed In Version: 5.8.0.0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1397151 1404752 (view as bug list)
Environment:
Last Closed: 2017-06-12 16:59:45 UTC
Category: ---
Cloudforms Team: AWS
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Comment 2 Ladislav Smola 2016-11-16 13:29:35 UTC
Fixed by:
https://github.com/ManageIQ/manageiq/pull/12677
https://github.com/ManageIQ/manageiq-providers-amazon/pull/84

Note: operating system is inferred from Image location, so Image needs to be refreshed and it needs to contain the OS name. Works well for AWS Public images

For more details about OS, we will need the SSA to work.

Comment 3 CFME Bot 2016-11-16 15:51:17 UTC
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/7bd7e324b4ea940962bd9037ef9e25c38797449f

commit 7bd7e324b4ea940962bd9037ef9e25c38797449f
Author:     Ladislav Smola <lsmola>
AuthorDate: Wed Nov 16 14:11:47 2016 +0100
Commit:     Ladislav Smola <lsmola>
CommitDate: Wed Nov 16 14:19:44 2016 +0100

    Show correct textual operation system name
    
    Even without operation_system relation, we can show the
    operation system, using os_image_name, which uses guest_os
    among others.
    
    os_image_name is also used for quadicon OS image, so this
    becomes more consistent
    
    Fixes BZ:
    https://bugzilla.redhat.com/show_bug.cgi?id=1393547

 app/helpers/textual_mixins/textual_os_info.rb | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

Comment 4 CFME Bot 2016-11-18 17:22:43 UTC
New commit detected on ManageIQ/manageiq-providers-amazon/master:
https://github.com/ManageIQ/manageiq-providers-amazon/commit/8424752f464cb2691775cb457457b2d39c608403

commit 8424752f464cb2691775cb457457b2d39c608403
Author:     Ladislav Smola <lsmola>
AuthorDate: Wed Nov 16 11:57:42 2016 +0100
Commit:     Ladislav Smola <lsmola>
CommitDate: Wed Nov 16 11:59:19 2016 +0100

    Fill guest_os correctly
    
    Fill guest_os correctly, inferring it from Image location
    
    Fixes BZ:
    https://bugzilla.redhat.com/show_bug.cgi?id=1393547

 .../manageiq/providers/amazon/cloud_manager/refresh_parser.rb       | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

Comment 7 Satoe Imaishi 2016-12-14 14:52:02 UTC
*** Bug 1396264 has been marked as a duplicate of this bug. ***

Comment 11 Matouš Mojžíš 2017-03-14 22:31:25 UTC
I just deployed official RHEL 7.3 distro in AWS console and OS in CFME is displayed as unknown.
It should work even for this official distro, right?

Comment 12 Ladislav Smola 2017-03-15 08:25:17 UTC
Matous, you need to make sure that the image is being fetched. If this is a public image, you need to have in the settings: :get_public_images: true, under :ec2.

At best, you should then use :public_images_filters, to fetch only images that are of the interest, otherwise it will collect a big amount of them (80k)

Comment 13 Matouš Mojžíš 2017-04-14 15:50:32 UTC
Verified in 5.8.0.10. I could see OS for instance after fetching public images.


Note You need to log in before you can comment on or make changes to this bug.