Unknown Operating System on Openstack Provider


#1

This is a Windows instance but it is not detecting the Operating System.


#2

vlad…which Windows OS?


#3

Have you performed smart state analysis on the instance, or is this just after refresh?


#4

2008 R2 Standard and Enterprise


#5

Just refresh, i’ll try smart state analysis


#6

Same problem here.
Smart state analysis won’t resolve the issue.
There is some way to define manually the OS?


#7

I think this is a known issue with Openstack as a provider.


#8

Hi @vlad, Do you know if there is issue created against this known issue ?


#9

Hello, I am facing the same issue. My Openstack cluster (based on ubuntu) is not showing the guest operating system for all my virtual machines (ubuntu, rhel and centos); however, today one centos guest is showing the operating system. I am using gaprindashvili-2.20180305191449_5bba686.

image


#10

@Eddy_Castillon @tjyang

HI guys. CFME have OperatingSystem model from which the os_image_name and platform attributes is set [1]. Currently there is no any source for operating system to set for OpenStack instances [2], so from this model os_image_name attribute is generated based on VM name [3]. But reports are generated by operating_system association which is not populated for OpenStack instances.

issue is depend from BZ [4] and will be resolved after update to 5.8.4. The BZ is fixed by implementing os_distro/os_version attributes fetching during inventory refresh [5] So I am very much awaiting the next ERRATA for 5.8

[1] https://github.com/ManageIQ/manageiq/blob/fine-4/app/models/operating_system.rb

[2] https://bugzilla.redhat.com/show_bug.cgi?id=1569230

[3] https://github.com/ManageIQ/manageiq/blob/fine-4/app/models/operating_system.rb#L119

[4] https://bugzilla.redhat.com/show_bug.cgi?id=1569230

[5] https://github.com/ManageIQ/manageiq/commit/0632388f40afbbf175a605d731311e0a74f2ed12


#11

Hi @igortiunov, thank you so much for your clarification. I made a quick test calling a vm “ubuntu”. I will be wating for the next to release.

I think we can set this metadata (os_distro/os_version) in the glance image.

image


#12

@Eddy_Castillon
gaprindashvili-3 have already this implemented:


#13

Hi @igortiunov , That is a great news to begin the day. I do not have clear the procedure to upgrade from v2 to v3. Could you provide me some tricks to do that, please?.

Thank you so much.


#14

@Eddy_Castillon

I know that this procedure is not simple. There some guides for this (thank to @tjyang ):

I am using CFME be RedHat and have repos with RPMs for updates CFME.


#15

@Eddy_Castillon,

Here is MIQ gapri-2 to gapri-3 upgrade note using google doc.

This procedure work on my test instance. It is a standalone, all-in-one MIQ instance.


#16

@tjyang, @igortiunov

Thank you so much. I will review and upgrade my appliance on Monday. I hope this new feature allow populate the operating system field. That would be great.


#17

I will grateful to you if will talk about the results.

Current workflow leads to that all Vms with “xp” substring inside name marked as windows_generic (like Windows XP :smile:) No matter what image is used.


#18

Hi Guys,

My apologies for write after long time. Finally, I have upgraded my appliance. I am testing with the following metadata for an dummy instance.

  • os_distro = linux
  • os_version = ubuntu

However, I am no able to discovert the operating system. ¿Am I using the correct values for os_diistro and os_version?.


#19

@Eddy_Castillon

Hi

Shortly - “os_distro” is ubuntu and “os_version” is version of ubuntu release (18.04 ?)

These attributes is based on libosinfo https://libosinfo.org/. You can install cli for this: yum install osinfo-db and query the osinfo to understand the values of this attributes:

> osinfo-query os
 Short ID             | Name                                               | Version  | ID                                      
----------------------+----------------------------------------------------+----------+-----------------------------------------
<...>
 ubuntu10.04          | Ubuntu 10.04 LTS                                   | 10.04    | http://ubuntu.com/ubuntu/10.04          
 ubuntu10.10          | Ubuntu 10.10                                       | 10.10    | http://ubuntu.com/ubuntu/10.10          
 ubuntu11.04          | Ubuntu 11.04                                       | 11.04    | http://ubuntu.com/ubuntu/11.04          
 ubuntu11.10          | Ubuntu 11.10                                       | 11.10    | http://ubuntu.com/ubuntu/11.10          
<...>

Also the following doc is available for OpenStack:

https://docs.openstack.org/glance/pike/user/common-image-properties.html
https://docs.openstack.org/glance/latest/admin/useful-image-properties.html

os_version The operating system version as specified by the distributor. Valid version number (for example, 11.10).
os_distro The common name of the operating system distribution in lowercase (uses the same data vocabulary as the libosinfo project). Specify only a recognized value for this field.

arch - Arch Linux. Do not use archlinux or org.archlinux.
centos - Community Enterprise Operating System. Do not use org.centos or CentOS.