ManageIQ / manageiq-providers-vmware

ManageIQ plugin for the VMware vSphere and vCloud providers.
Apache License 2.0
22 stars 70 forks source link

Najdorf not running SmartState analysis #852

Closed mwlfxag closed 1 year ago

mwlfxag commented 1 year ago

Possible repeat of #569

Loading production environment (Rails 6.0.5.1)
irb(main):001:0> MiqServer.my_server.is_vix_disk?
=> false
irb(main):002:0> require 'VMwareWebService/VixDiskLib/VixDiskLib'
=> true
irb(main):003:0> MiqServer.my_server.has_active_role?(:SmartProxy)
PostgreSQLAdapter#log_after_checkout, connection_pool: size: 5, connections: 1, in use: 1, waiting_in_queue: 0
=> true
irb(main):004:0> MiqServer.my_server.has_vix_disk_lib?
=> false
irb(main):005:0>
[root@host vmdb]# ls -l /usr/lib/libvix*
lrwxrwxrwx. 1 root root 50 Jan 27 01:29 /usr/lib/libvixDiskLib.so -> /usr/lib/vmware-vix-disklib/lib64/libvixDiskLib.so
lrwxrwxrwx. 1 root root 52 Jan 27 01:29 /usr/lib/libvixDiskLib.so.8 -> /usr/lib/vmware-vix-disklib/lib64/libvixDiskLib.so.8
lrwxrwxrwx. 1 root root 56 Jan 27 01:29 /usr/lib/libvixDiskLib.so.8.0.0 -> /usr/lib/vmware-vix-disklib/lib64/libvixDiskLib.so.8.0.0
[root@host vmdb]# cat VERSION
najdorf-1.3[root@host vmdb]#
[root@host vmdb]# date
Sun Jan 29 16:49:15 EST 2023
[root@host vmdb]# ldconfig -p | grep vix
        libvixDiskLib.so.8.0.0 (libc6,x86-64) => /lib/libvixDiskLib.so.8.0.0
        libvixDiskLib.so (libc6,x86-64) => /lib/libvixDiskLib.so
mwlfxag commented 1 year ago

I installed some earlier versions of VDDK and now it seems happy:

# ls -l /usr/lib/libvix*
lrwxrwxrwx. 1 root root 50 Jan 27 01:29 /usr/lib/libvixDiskLib.so -> /usr/lib/vmware-vix-disklib/lib64/libvixDiskLib.so
lrwxrwxrwx. 1 root root 53 Feb  1 08:04 /usr/lib/libvixDiskLib.so.6 -> /usr/lib/vmware-vix-disklib6/lib64/libvixDiskLib.so.6
lrwxrwxrwx. 1 root root 57 Feb  1 08:04 /usr/lib/libvixDiskLib.so.6.7.0 -> /usr/lib/vmware-vix-disklib6/lib64/libvixDiskLib.so.6.7.0
lrwxrwxrwx. 1 root root 53 Feb  1 08:03 /usr/lib/libvixDiskLib.so.7 -> /usr/lib/vmware-vix-disklib7/lib64/libvixDiskLib.so.7
lrwxrwxrwx. 1 root root 57 Feb  1 08:03 /usr/lib/libvixDiskLib.so.7.0.3 -> /usr/lib/vmware-vix-disklib7/lib64/libvixDiskLib.so.7.0.3
lrwxrwxrwx. 1 root root 52 Jan 27 01:29 /usr/lib/libvixDiskLib.so.8 -> /usr/lib/vmware-vix-disklib/lib64/libvixDiskLib.so.8
lrwxrwxrwx. 1 root root 56 Jan 27 01:29 /usr/lib/libvixDiskLib.so.8.0.0 -> /usr/lib/vmware-vix-disklib/lib64/libvixDiskLib.so.8.0.0
irb(main):001:0> MiqServer.my_server.has_vix_disk_lib?
=> true

Going by the code in this repo it seemed to support 8.0.0...

agrare commented 1 year ago

Hey @mwlfxag ! Najdorf uses version 1.2.0 of ffi-vix_disk_lib https://github.com/ManageIQ/manageiq/blob/najdorf/Gemfile.lock.release#L588 which does not support version 8 of the vddk. This support was added in ffi-vix_disk_lib v1.3.0 https://github.com/ManageIQ/ffi-vix_disk_lib/releases/tag/v1.3.0 vSphere 8 will be supported in the upcoming petrosian release which pulls in ffix-vix_disk_lib 1.3 and rbvmomi2 3.5 (https://github.com/ManageIQ/rbvmomi2/releases/tag/v3.5.0)

agrare commented 1 year ago

Based on 1.2.0 it looks like the newest vddk version supported is v7.0.1. I do think we should have a better warning if we discover unsupported vddk versions installed I'll open an enhancement issue for that work