Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1151489

Summary: [rhev for ibm power] [vdsm] caps.py: _getKeyPackages() should have OSName.POWERKVM
Product: Red Hat Enterprise Virtualization Manager Reporter: Jiri Belka <jbelka>
Component: vdsmAssignee: Nobody <nobody>
Status: CLOSED DUPLICATE QA Contact: Pavel Stehlik <pstehlik>
Severity: low Docs Contact:
Priority: unspecified    
Version: 3.4.0CC: bazulay, ecohen, gklein, iheim, lpeer, lsurette, michal.skrivanek, yeylon
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: infra
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-10-21 08:19:28 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Infra RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
engine.log, vdsm.log none

Description Jiri Belka 2014-10-10 14:51:02 UTC
Created attachment 945664 [details]
engine.log, vdsm.log

Description of problem:

<< 3.4 vdsm part of the issue - not reporting correctly packages2 via vdsClient -s 0 getVdsCaps >>

RHEV for IBM POWER release 3.4 build 35 service (pkvm2_1) can't be added to engine,...

Host ibm-p8-rhevm-hv-01.lab.bos.redhat.com is installed with VDSM version (<UNKNOWN>) and cannot join cluster ppc64 which is compatible with VDSM versions [4.13, 4.14, 4.9, 4.11, 4.15, 4.12, 4.10].

...
2014-10-10 16:16:06,088 ERROR [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (DefaultQuartzScheduler_Worker-86) [5139c54f] Correlation ID: 5139c54f, Job ID: 7827e052-c40b-44e2-9d50-e7939b52d326, Call Stack: null, Custom Event ID: -1, Message: Host ibm-p8-rhevm-hv-01.lab.bos.redhat.com is installed with VDSM version (<UNKNOWN>) and cannot join cluster ppc64 which is compatible with VDSM versions [4.13, 4.14, 4.9, 4.11, 4.15, 4.12, 4.10].

seems to be related to getos()...

...
    if getos() in (OSName.RHEVH, OSName.OVIRT, OSName.FEDORA, OSName.RHEL):
        KEY_PACKAGES = {'qemu-kvm': ('qemu-kvm', 'qemu-kvm-rhev'),
                        'qemu-img': ('qemu-img', 'qemu-img-rhev'),
                        'vdsm': ('vdsm',),
                        'spice-server': ('spice-server',),
                        'libvirt': ('libvirt', 'libvirt-daemon-kvm'),
                        'mom': ('mom',),
                        }


...
        operatingSystem = {'name': 'PowerKVM', 'release': '3.4.2.35.0.pkvm2_1', 'version': '19_0'}
        packages2 = {'kernel': {'buildtime': 1412189087.0,
                                'release': '1709.pkvm2_1.12.ppc64',
                                'version': '3.10.23'}}


workaround:

--- /tmp/caps.py.orig   2014-10-10 10:27:47.976434065 -0400
+++ /usr/share/vdsm/caps.py     2014-10-10 10:26:32.235548944 -0400
@@ -443,7 +443,7 @@ def _getKeyPackages():
 
     pkgs = {'kernel': kernelDict()}
 
-    if getos() in (OSName.RHEVH, OSName.OVIRT, OSName.FEDORA, OSName.RHEL):
+    if getos() in (OSName.RHEVH, OSName.OVIRT, OSName.FEDORA, OSName.RHEL, OSName.POWERKVM):
         KEY_PACKAGES = {'qemu-kvm': ('qemu-kvm', 'qemu-kvm-rhev'),
                         'qemu-img': ('qemu-img', 'qemu-img-rhev'),
                         'vdsm': ('vdsm',),

with patch:

...
        packages2 = {'kernel': {'buildtime': 1412189087.0,
                                'release': '1709.pkvm2_1.12.ppc64',
                                'version': '3.10.23'},
                     'libvirt': {'buildtime': 1412717569,
                                 'release': '1.pkvm2_1.17.9',
                                 'version': '1.1.3'},
                     'mom': {'buildtime': 1405446678,
                             'release': '1.pkvm2_1.1',
                             'version': '0.4.1'},
                     'qemu-img': {'buildtime': 1412195719,
                                  'release': '2.pkvm2_1.17.9',
                                  'version': '1.6.0'},
                     'qemu-kvm': {'buildtime': 1412195719,
                                  'release': '2.pkvm2_1.17.9',
                                  'version': '1.6.0'},
                     'vdsm': {'buildtime': 1412188587,
                              'release': '1.pkvm2_1',
                              'version': '4.14.17'}}
        reservedMem = '321'
        rngSources = ['hwrng', 'random']
        software_revision = '1'
        software_version = '4.14'
        supportedENGINEs = ['3.0', '3.1', '3.2', '3.3', '3.4']
        supportedProtocols = ['2.2', '2.3']
        supportedRHEVMs = ['3.0']
        uuid = '2116A5A'
        version_name = 'Snow Man'
        vlans = {}
        vmTypes = ['kvm']


Version-Release number of selected component (if applicable):
vdsm-4.14.17-1.pkvm2_1.ppc64

How reproducible:
100%

Steps to Reproduce:
1. vdsClient -s 0 getVdsCaps for powerkvm host
2. 
3.

Actual results:
packages2 contains only kernel version

Expected results:
all packages should be reported

Additional info:
mskrivanek@ said it's two issues: vdsm reporting and engine checks

Comment 1 Michal Skrivanek 2014-10-21 08:19:28 UTC
it's already tracked

*** This bug has been marked as a duplicate of bug 1151488 ***