Skip to content

Commit

Permalink
Update waiting for DNF transaction in configuration spoke for RHEL-10
Browse files Browse the repository at this point in the history
The installation would work even without it being updated, but there
will be an unnecessary delay.
  • Loading branch information
jikortus committed Nov 11, 2024
1 parent fbb6ec2 commit ada5553
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions anabot/runtime/installation/configuration/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,14 @@
def base_handler(element, app_node, local_node):
timeout = _DEFAULT_TIMEOUT
if get_variable('profile') in ("anaconda", "anaconda_installer") and not is_liveimg_install():
reporter.log_info("Waiting for yum transaction. Timeout is 10 minutes")
waitline = ".* INFO packaging: running transaction"
if is_distro_version_ge('rhel', 8) or is_distro_version_ge('fedora', 35):
if is_distro_version_ge('rhel', 10) or is_distro_version_ge('fedora', 40):
waitline = 'INFO:dnf:Running transaction'
elif is_distro_version_ge('rhel', 8) or is_distro_version_ge('fedora', 35):
waitline = '.* INF dnf: Running transaction'
else:
waitline = ".* INFO packaging: running transaction"
reporter.log_info("Waiting for yum transaction. Timeout is 10 minutes. Looking for '%s' in packaging.log" %
waitline)
wait_for_line(
'/tmp/packaging.log',
waitline,
Expand Down

0 comments on commit ada5553

Please sign in to comment.