Bug 2152377 - Leapp fails : Actor quagga_to_frr unexpectedly terminated with exit code: 1
Summary: Leapp fails : Actor quagga_to_frr unexpectedly terminated with exit code: 1
Keywords:
Status: ASSIGNED
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: leapp-repository
Version: 7.9
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: Leapp Notifications Bot
QA Contact: upgrades-and-conversions
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-12-11 10:50 UTC by paygupta
Modified: 2023-07-31 07:12 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker OAMG-8049 0 None None None 2022-12-11 11:14:01 UTC
Red Hat Issue Tracker RHELPLAN-141830 0 None None None 2022-12-11 11:13:57 UTC

Description paygupta 2022-12-11 10:50:26 UTC
Description of problem:

During final phase of leapp upgrade system goes to Emergency mode with below error :

=========================================================================================
Actor quagga_to_frr unexpectedly terminated with exit code: 1 - Please check the above details
=========================================================================================

Version-Release number of selected component (if applicable):

leapp-0.15.0-2.el7_9.noarch
leapp-deps-0.15.0-2.el7_9.noarch
leapp-upgrade-el7toel8-0.17.0-1.el7_9.noarch
leapp-upgrade-el7toel8-deps-0.17.0-1.el7_9.noarch

quagga-0.99.22.4-5.el7_4.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Install "quagga" package on RHEL 7.9 system
2. Install leapp packages
3. Run leapp preupgrade
4. RUn leapp upgrade
5. Reboot the system 
6. Boot from Upgrade initramfs

Actual results:

System goes to Emergency mode with below error :

 ====> * quagga_to_frr
         Edit frr configuration on the new system.
 Process Process-224:
 Traceback (most recent call last):
   File "/usr/lib64/python3.6/multiprocessing/process.py", line 258, in _bootstrap
     self.run()
   File "/usr/lib64/python3.6/multiprocessing/process.py", line 93, in run
     self._target(*self._args, **self._kwargs)
   File "/root/tmp_leapp_py3/leapp/repository/actor_definition.py", line 72, in _do_run
     actor_instance.run(*args, **kwargs)
   File "/root/tmp_leapp_py3/leapp/actors/__init__.py", line 289, in run
     self.process(*args)
   File "/etc/leapp/repos.d/system_upgrade/el7toel8/actors/quaggatofrr/actor.py", line 23, in process
     process_facts(quagga_facts)
   File "/etc/leapp/repos.d/system_upgrade/el7toel8/actors/quaggatofrr/libraries/quaggatofrr.py", line 99, in process_facts
     _copy_config_files(QUAGGA_CONF_FILES, FRR_CONF_FILES)
   File "/etc/leapp/repos.d/system_upgrade/el7toel8/actors/quaggatofrr/libraries/quaggatofrr.py", line 82, in _copy_config_files
     shutil.copy(full_path, dest_path)
   File "/usr/lib64/python3.6/shutil.py", line 245, in copy
     copyfile(src, dst, follow_symlinks=follow_symlinks)
   File "/usr/lib64/python3.6/shutil.py", line 121, in copyfile
     with open(dst, 'wb') as fdst:
 IsADirectoryError: [Errno 21] Is a directory: '/etc/frr/'
 ==============================================================================================
 Actor quagga_to_frr unexpectedly terminated with exit code: 1 - Please check the above details
 ==============================================================================================
 Debug output written to /var/log/leapp/leapp-upgrade.log
 ============================================================
                           REPORT
 ============================================================
 A report has been generated at /var/log/leapp/leapp-report.json
 A report has been generated at /var/log/leapp/leapp-report.txt
 ============================================================
                        END OF REPORT
 ============================================================

Expected results:

Upgrade should complete without any error.

Comment 4 Petr Stodulka 2023-01-27 13:32:16 UTC
The fix has been merged in upstream and will be part of the next release:
* https://github.com/oamg/leapp-repository/pull/1008

Comment 5 Petr Stodulka 2023-01-27 13:41:37 UTC
My apologize, I switched the bug. This issue dissapears with this release due to mentioned fix also, as the frr package will be installed during the upgrade, however we want to keep it opened to deliver additional fix that will work as a seatbelt in case it happens (for whatever reason) that frr packages will not be installed.


Note You need to log in before you can comment on or make changes to this bug.