ssbarnea / netapp

netapp select on openstack
0 stars 0 forks source link

RequiredPackageNotInstalled: Missing packages: ['qemu-kvm', 'qemu-kvm-rhev']. #4

Open ssbarnea opened 6 years ago

ssbarnea commented 6 years ago

ontap select 9.3 deploy host configure ... fails on CentOS Linux release 7.4.1708 (Core) while wrongly reporting two packages as missing, even if they are installed:

HostInfoErr: Error in retrieving information for host "leno". 
Reason: HostSupportInformationErr : Unable to retrieve host information for host "leno", Error: [36] 
RequiredPackageNotInstalled: Missing packages: ['qemu-kvm', 'qemu-kvm-rhev'].

I did yum install qemu-kvm qemu-kvm-rhev on that host and I am 100% sure the packages are installed.

Initially another package was reported as missing lshw but after installing it, it was recognized.

I think that yum install output may explain why ONTAPDeploy gets confused, but I am not sure how to fix it:

yum install qemu-kvm-rhev qemu-kvm
Loaded plugins: etckeeper, fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.sov.uk.goscomb.net
 * epel: www.mirrorservice.org
 * extras: mirror.sov.uk.goscomb.net
 * updates: mirror.sov.uk.goscomb.net
Package 10:qemu-kvm-ev-2.9.0-16.el7_4.14.1.x86_64 already installed and latest version
Package 10:qemu-kvm-1.5.3-141.el7_4.6.x86_64 is obsoleted by 10:qemu-kvm-ev-2.9.0-16.el7_4.14.1.x86_64 which is already installed
Nothing to do
ssbarnea commented 6 years ago

I have the confirmation that this caused by bug in installer. An ugly way to avoid it was to build and force install a fake rpm:

cat qemu-kvm.spec<<EOF
Summary: fake qemu kvm
Name: qemu-kvm
Version: 0
Release: 0
License: Public
Group: Applications/System
%description
Package description here
%files
EOF
rpmbuild -bb qemu-kvm.spec
rpm -i --nodeps /root/rpmbuild/RPMS/x86_64/qemu-kvm-0-0.x86_64.rpm