FortiSOAR Knowledge Base
FortiSOAR: Security Orchestration and Response software provides innovative case management, automation, and orchestration. It pulls together all of an organization's tools, helps unify operations, and reduce alert fatigue, context switching, and the mean time to respond to incidents.
Article Id 313792
Description This article describes how to fix DNF package issues that occur during an upgrade to v7.3.0 of FortiSOAR.
Scope FortiSOAR v7.2.

While performing an In-place upgrade to 7.3.0, it may fail with the following error:


Message: Cannot obtain data about the DNF configuration
ERROR PID: 3 leapp: Upgrade workflow failed, check log for details
localhost upgrade[781]: Summary:
localhost upgrade[781]: Stderr: /usr/local/lib/python3.6/site-packages/ UserWarning: The DNF Python API is not currently available via PyPI.
localhost upgrade[781]: Please install it with your distro package manager (typically called
localhost upgrade[781]: 'python2-dnf' or 'python3-dnf'), and ensure that any virtual environments
localhost upgrade[781]: needing the API are configured to be able to see the system site packages
ModuleNotFoundError: No module named 'dnf.cli'; 'dnf' is not a package


The reason could be that the Python package is being upgraded on the CentOS machine. 


Resolution steps:


  1. Revert the VM with a snapshot.

  2. Check the DNF is installed in the system with this command:


rpm -qa dnf


  1. Execute the following command:


ls -l /usr/local/lib/python3.6/site-packages/dnf


The output will be similar to dnf-0.0.1.dist-info/


  1. Remove the following two files:


sudo rm /usr/local/lib/python3.6/site-packages/dnf-0.0.1.dist-info/
sudo rm /usr/local/lib/python3.6/site-packages/


  1. Now, perform the in-place upgrade.