08-06-2018 06:46 AM
I am trying to set up the first set of changes I am making to do some rule enrichment.
Within my project, I am going to Export, API Output Manager, and clicking "[Step 1] Generate API Requests".
The status start changing, showing different phases, but after probably 35 seconds, I get kicked out of the web GUI and back to the login page. Is this a known bug? Is there a workaround, perhaps a config export to a file or something?
Also, what are the signifigance of the radio buttons for Mega, Atomic, Sub-atomic, and Clean?
08-07-2018 06:35 AM
Just in case, make sure you are not under version 1.0.100, as we handled some specific XML structures from the PANOS configs in the latest updates.
The current version is 1.0.101.
Also, check if there is a file /tmp/error that could bring us more information about what may have gone wrong.
08-07-2018 09:52 AM
root@Expedition:/tmp# more error
Traceback (most recent call last):
File "/var/www/html/libs/ansible/xml-to-ansible.py", line 40, in <module>
import pan.config
ModuleNotFoundError: No module named 'pan'
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 63, in apport_excepthook
from apport.fileutils import likely_packaged, get_recent_crashes
File "/usr/lib/python3/dist-packages/apport/__init__.py", line 5, in <module>
from apport.report import Report
File "/usr/lib/python3/dist-packages/apport/report.py", line 30, in <module>
import apport.fileutils
File "/usr/lib/python3/dist-packages/apport/fileutils.py", line 23, in <module>
from apport.packaging_impl import impl as packaging
File "/usr/lib/python3/dist-packages/apport/packaging_impl.py", line 23, in <module>
import apt
File "/usr/lib/python3/dist-packages/apt/__init__.py", line 23, in <module>
import apt_pkg
ModuleNotFoundError: No module named 'apt_pkg'
Original exception was:
Traceback (most recent call last):
File "/var/www/html/libs/ansible/xml-to-ansible.py", line 40, in <module>
import pan.config
ModuleNotFoundError: No module named 'pan'
08-07-2018 09:53 AM
Is there an Ansible back-end to Expedition? If so, I didn't know that.
08-08-2018 06:15 AM
we use some extensions who are in beta that try to convert the output xml as ansible playbook and sometimes it produces an error, and can be omited, then we use pan-python to from the output xml generate the set commands.
If you case seems the library has not being installed properly,
try to run this command from the cli
sudo -H pip3 install pandevice
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!