View Issue Details

IDProjectCategoryView StatusLast Update
0001134bareos-corevmware pluginpublic2022-03-14 15:42
Reporterratacorbo Assigned Tostephand  
PrioritynormalSeverityfeatureReproducibilityalways
Status resolvedResolutionfixed 
PlatformLinuxOSCentOSOS Version7
Product Version18.2.5 
Fixed in Version21.0.0 
Summary0001134: Installing bareos-vmware-plugin-18.2.5-124.1.el7.x86_64 python-pyvmomi error
Descriptionwhen tries to install bareos-vmware-plugin-18.2.5-124.1.el7.x86_64 in Centos 7 gives an error that python-pyvmomi
 doesn't exists
Steps To Reproduceyum install bareos-vmware-plugin
Additional InformationError: Package: bareos-vmware-plugin-18.2.5-124.1.el7.x86_64 (bareos_bareos-18.2)
           Requires: python-pyvmomi
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
TagsNo tags attached.

Activities

stephand

stephand

2020-02-26 00:23

developer   ~0003856

The python-pyvmomi package for CentOS 7/RHEL 7 is available in EPEL.
On CentOS 7 EPEL repo can by added by runing

yum install epel-release

For RHEL 7 see https://fedoraproject.org/wiki/EPEL

Does it work when the EPEL repo was added to your system?
Rotnam

Rotnam

2020-06-02 18:05

reporter   ~0003997

I installed a fresh Redhat 8.1 to test bareos vmware pluging. I ran in the same issue running
yum install bareos-vmware-plugin
Error:
 Problem: cannot install the best candidate for the job
  - nothing provides python-pyvmomi needed by bareos-vmware-plugin-19.2.7-2.el8.x86_64
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

So far I tried to install
python-pyvmomi with pip3.6 install pyvmomi -> Installed successful, no luck
Downloaded the github package and did a python3.6 setup.py install, this install the version 7.0, no luck
Addding epel -> yum install python3-pyvmomi, this install version 6.7.3-3, no luck with the yum

Downloading the rpm (19.2.7-2) and trying manually, it did the requirement:
yum install python2
yum install bareos-filedaemon-python-plugin
yum install bareos-vadp-dumper
Did a pip2 install pyvmomi, still no luck
python2 setup.py install, installed a bunch of files under python2.7, still no luck for the rpm

At this point, I will just do a --nodeps and see if it work, hope this help resolving the package issue
stephand

stephand

2020-09-16 13:10

developer   ~0004039

You are right, we have a problem here for RHEL/CentOS 8 because EPEL 8 does not provide a python2-pyvmomi package.
It's also not easily possible to buid a python2-pyvmomi package for el8 due to its missing python2 package dependencies.

Currently indeed the only way is to ignore dependencies for the package installation and use pip2 install pyvmomi.
Does that work for you?

I think we should remove the dependency on python-pyvmomi and add a hint in the documentation to use pip2 install pyvmomi.

For the upcoming Bareos version 20, we are already working on Python3 plugins, this will also fix the dependency problem.
Rotnam

Rotnam

2020-09-16 15:22

reporter   ~0004040

For the test I did, it worked fine, so I assume you can do it that way with no--nodeps. I ended up putting this on hold, backing up just the disks and not the VM was a bit strange. Restore on locally worked, not directly on vcenter (can't remember which one I tried). Will revisit this solution later.
stephand

stephand

2022-03-14 15:42

developer   ~0004536

Since Bareos Version >= 21.0.0 the package bareos-vmware-plugin no longer includes a dependency on a pyVmomi package, because some Linux distributions don’t provide current versions. Consequently, pyVmomi must be either installed by using pip install pyvmomi or by manually installing a distribution provided pyVmomi package.
See https://docs.bareos.org/TasksAndConcepts/Plugins.html#vmware-plugin

Issue History

Date Modified Username Field Change
2019-11-06 15:32 ratacorbo New Issue
2020-02-26 00:23 stephand Assigned To => stephand
2020-02-26 00:23 stephand Status new => feedback
2020-02-26 00:23 stephand Note Added: 0003856
2020-06-02 18:05 Rotnam Note Added: 0003997
2020-09-16 13:10 stephand Note Added: 0004039
2020-09-16 13:11 stephand Status feedback => acknowledged
2020-09-16 15:22 Rotnam Note Added: 0004040
2022-03-14 15:39 stephand File Deleted: info.php
2022-03-14 15:42 stephand Status acknowledged => resolved
2022-03-14 15:42 stephand Resolution open => fixed
2022-03-14 15:42 stephand Fixed in Version => 21.0.0
2022-03-14 15:42 stephand Note Added: 0004536