Description of problem: 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]. From my case you can see that name of vm is 'srv7-xpub' which is normalized to 'srv7xpub' [4]. os_map have 'xp' string for "Windows XP" [5], so CFME set the os_image_name to 'windows_generic' [6]. This logic is not acceptable as the VM name can have any string and it is reason of random nature of this issue. The logic of selecting an operating system based on the machine name spoils our virtual machine deployment processes. It should be the last choice when there are no more left but currently this logic is first choice [7] [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://github.com/ManageIQ/manageiq/blob/fine-4/app/models/operating_system.rb#L73 [5] https://github.com/ManageIQ/manageiq/blob/fine-4/app/models/operating_system.rb#L14 [6] https://github.com/ManageIQ/manageiq/blob/fine-4/app/models/operating_system.rb#L76 [7] https://github.com/ManageIQ/manageiq/blob/eef19e08d460594cad629a022169c2ee1a3a9331/app/models/vm_or_template.rb#L508 Version-Release number of selected component (if applicable): CFME 5.8.3.5 How reproducible: always Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
https://github.com/ManageIQ/manageiq/pull/17405 was merged
Verified on 5.10.0.2