Skip to content

Conversation

@tpurschke
Copy link
Contributor

@tpurschke tpurschke commented Nov 18, 2025

makes fwo run on debian 13 again
closes #2864

breaking change: need to use scripts/install-ansible-from-venv.sh again for ansible-galaxy based install

@tpurschke tpurschke marked this pull request as ready for review November 18, 2025 18:13
@tpurschke
Copy link
Contributor Author

@rh-cactus-github could you please test this by doing a test installation (and upgrade) both on debian 13 and ubuntu 22.04?

Copy link
Contributor

@rh-cactus-github rh-cactus-github left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

@rh-cactus-github
Copy link
Contributor

20251126: Following first test on a Debian 12 was successful:
upgrade from a current FWO 8.x develop branch
( 8.9.3 - 05.11.2025 DEVELOP- hotfix missing permissions for app data import in certain constellations)
to this 9.x branch. With 8.x the import of our Check Point Test SMS did not work, but after the upgrade it is possible:
Next test step: Upgrade the OS to Debian 13 with this installed FWO branch

@rh-cactus-github
Copy link
Contributor

next test step: upgrade Debian 12 to Debian 13 with the extisting working fwo 9:
basically fwo 9 is working ob Debain13, UI running, authentication work, old data from the imports can be found in the report.

but import shows errors in the importer-api.log::
2025-11-27T13:19:08.559947+01:00 FWORCH-TestRH fworch-importer-api: ModuleNotFoundError: No module named 'urllib3'
2025-11-27T13:19:18.843729+01:00 FWORCH-TestRH fworch-importer-api: Traceback (most recent call last):
2025-11-27T13:19:18.846192+01:00 FWORCH-TestRH fworch-importer-api: File "/usr/local/fworch/importer/import-main-loop.py", line 9, in
2025-11-27T13:19:18.846503+01:00 FWORCH-TestRH fworch-importer-api: import urllib3
2025-11-27T13:19:18.846655+01:00 FWORCH-TestRH fworch-importer-api: ModuleNotFoundError: No module named 'urllib3'

manual import also fails:
(importer-venv) fworch@FWORCH-TestRH:~/importer$ ./import-mgm.py -m 9 -fs
Traceback (most recent call last):
File "/usr/local/fworch/importer/./import-mgm.py", line 7, in
import urllib3
ModuleNotFoundError: No module named 'urllib3'

but if no change of the environment ist done via: source importer-venv/bin/activate
manual import shows:

fworch@FWORCH-TestRH:~/importer$ ./import-mgm.py -m 9 -fs
Traceback (most recent call last):
File "/usr/local/fworch/importer/query_analyzer.py", line 3, in
from graphql import parse, print_ast, visit
ModuleNotFoundError: No module named 'graphql'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/fworch/importer/./import-mgm.py", line 8, in
from common import importer_base_dir, import_management
File "/usr/local/fworch/importer/common.py", line 11, in
from fwo_api import FwoApi
File "/usr/local/fworch/importer/fwo_api.py", line 14, in
from query_analyzer import QueryAnalyzer
File "/usr/local/fworch/importer/query_analyzer.py", line 8, in
from graphql import parse, print_ast, visit

@tpurschke tpurschke marked this pull request as draft November 27, 2025 16:38
@tpurschke
Copy link
Contributor Author

a fresh fwo install on a fresh deb13 system - no issues with the import

(importer-venv) fworch@deb13:~/importer$ ./import-mgm.py -m 5 -fs
2025-11-27T19:42:40+0100 [INFO ] [common.py                :_import_management       : 145] starting import of management test108 (5), import_id=42
2025-11-27T19:42:40+0100 [INFO ] [common.py                :get_config_from_api      : 244] has_config_changed: changes found or forced mode -> go ahead with getting config, Force = True
2025-11-27T19:43:45+0100 [INFO ] [fwcommon.py              :normalize_single_manager_: 165] completed normalizing network objects
2025-11-27T19:43:45+0100 [INFO ] [fwcommon.py              :normalize_single_manager_: 167] completed normalizing service objects
2025-11-27T19:43:45+0100 [INFO ] [fwcommon.py              :normalize_single_manager_: 172] completed normalizing rulebases
2025-11-27T19:43:45+0100 [INFO ] [fwcommon.py              :get_config               :  78] completed getting config
2025-11-27T19:43:45+0100 [INFO ] [fwo_api.py               :_call_chunked            : 217] Processing chunked API call (upsertObjects)...
2025-11-27T19:43:48+0100 [INFO ] [fwo_api.py               :_call_chunked            : 217] Processing chunked API call (updateSvcgrpGroups)...
2025-11-27T19:43:49+0100 [INFO ] [fwo_api.py               :_call_chunked            : 217] Processing chunked API call (updateObjChangelogs)...
2025-11-27T19:43:51+0100 [INFO ] [fwo_api_call.py          :complete_import          : 329] import_management: import no. 42 for management test108 (id=5) successful, total change count: 9217, rule change count: 318, duration: 72s
(importer-venv) fworch@deb13:~/importer$ 

@sonarqubecloud
Copy link

sonarqubecloud bot commented Dec 1, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants