Bareso 22 VMWare plugin incompatible with pyvmomi >= 8.0.1, must return to 7.0.3

57 views
Skip to first unread message

TDL

unread,
Jan 9, 2023, 5:54:52 PM1/9/23
to bareos-users
Hi
Since I upgraded to Bareos 22 on Ubuntu 22.04.1, I was unable to backup VMs. The backup failed with the following error:
Fatal error: bareosfd: Traceback (most recent call last):
File "/usr/lib/bareos/plugins/bareos-fd-vmware.py", line 57, in
import BareosFdPluginVMware
File "/usr/lib/bareos/plugins/BareosFdPluginVMware.py", line 51, in
from pyVim.connect import SmartConnect, SmartConnectNoSSL, Disconnect
ImportError: cannot import name 'SmartConnectNoSSL' from 'pyVim.connect' (/usr/local/lib/python3.10/dist-packages/pyVim/connect.py)

It appears as of pyvmomi 8.0.0.1, the SmartConnectNoSSL has been removed (see https://github.com/vmware/pyvmomi/blob/v8.0.0.1/pyVim/connect.py)
I uninstalled v8.0.0.1.1 that was installed on my system (using 'pip3 uninstall pyVmomi' - which found pyvmomi 8.0.0.1.1) and intalled pyvmomi 7.0.3 (using 'pip3 install pyVmomi==7.0.3')

Looks like we need to use V7 of python script against VDDK 8 for the time being..

Best regards
Thierry

Stephan Duehr

unread,
Jan 10, 2023, 1:47:56 PM1/10/23
to bareos...@googlegroups.com
Thanks for reporting this. It will be fixed with
https://github.com/bareos/bareos/pull/1352

Regards,

Stephan

On 1/9/23 23:54, TDL wrote:
> Hi
> Since I upgraded to Bareos 22 on Ubuntu 22.04.1, I was unable to backup VMs. The backup failed with the following error:
> Fatal error: bareosfd: Traceback (most recent call last):
> File "/usr/lib/bareos/plugins/bareos-fd-vmware.py", line 57, in
> import BareosFdPluginVMware
> File "/usr/lib/bareos/plugins/BareosFdPluginVMware.py", line 51, in
> from pyVim.connect import SmartConnect, SmartConnectNoSSL, Disconnect
> ImportError: cannot import name '*SmartConnectNoSSL*' from 'pyVim.connect' (/usr/local/lib/python3.10/dist-packages/pyVim/connect.py)
>
> It appears as of pyvmomi 8.0.0.1, the SmartConnectNoSSL has been removed (see https://github.com/vmware/pyvmomi/blob/v8.0.0.1/pyVim/connect.py)
> I uninstalled v8.0.0.1.1 that was installed on my system (using 'pip3 uninstall pyVmomi' - which found pyvmomi 8.0.0.1.1) and intalled pyvmomi 7.0.3 (using 'pip3 install pyVmomi==7.0.3')
>
> Looks like we need to use V7 of python script against VDDK 8 for the time being..
>
> Best regards
> Thierry
>
> --
> You received this message because you are subscribed to the Google Groups "bareos-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to bareos-users...@googlegroups.com <mailto:bareos-users...@googlegroups.com>.
> To view this discussion on the web visit https://groups.google.com/d/msgid/bareos-users/6ad450c0-32a6-4724-8100-2afb96118badn%40googlegroups.com <https://groups.google.com/d/msgid/bareos-users/6ad450c0-32a6-4724-8100-2afb96118badn%40googlegroups.com?utm_medium=email&utm_source=footer>.

--
Stephan Dühr stepha...@bareos.com
Bareos GmbH & Co. KG Phone: +49 221-630693-90
http://www.bareos.com

Sitz der Gesellschaft: Köln | Amtsgericht Köln: HRA 29646
Komplementär: Bareos Verwaltungs-GmbH
Geschäftsführer: S. Dühr, M. Außendorf, J. Steffens, Philipp Storz

TDL

unread,
Jan 11, 2023, 12:08:18 PM1/11/23
to bareos-users
Hi Stephan, 
Thanks for the quick fix! I applied it, upgraded to pyVmomi to 8.0.0.1.1 and I confirm it solves the problem.
Regards

Thierry

Reply all
Reply to author
Forward
0 new messages