Leapp Error - IOError: [Errno 2] No such file or directory: u'/etc/leapp/repos.d/system_upgrade/common/files/rhui/azure/content.crt'

Posted on

Dear Red Hat and all

Currently attempting to upgrade one of my SAP-APP sandboxes and after following the documentation in the official SAP in-place upgrade, turns out that the document is not fully ready to be live.

https://access.redhat.com/solutions/5154031

https://access.redhat.com/articles/4977891#upgrade-without-rhsm

I am attempting to upgrade in a PAYG Azure VM without access to subscription-manager and mind you I am stuck in a part of the Leapp script which is trying to read the wrong path. during the Processing phase TargetTransactionFactsCollection

==> Processing phase TargetTransactionFactsCollection
====> * target_userspace_creator
Initializes a directory to be populated as a minimal environment to run binaries from the target system.
Process Process-448:
Traceback (most recent call last):
File "/usr/lib64/python2.7/multiprocessing/process.py", line 258, in _bootstrap
self.run()
File "/usr/lib64/python2.7/multiprocessing/process.py", line 114, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python2.7/site-packages/leapp/repository/actor_definition.py", line 72, in _do_run
actor_instance.run(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/leapp/actors/__init__.py", line 290, in run
self.process(*args)
File "/usr/share/leapp-repository/repositories/system_upgrade/common/actors/targetuserspacecreator/actor.py", line 52, in process
userspacegen.perform()
File "/usr/lib/python2.7/site-packages/leapp/utils/deprecation.py", line 42, in process_wrapper
return target_item(*args, **kwargs)
File "/usr/share/leapp-repository/repositories/system_upgrade/common/actors/targetuserspacecreator/libraries/userspacegen.py", line 673, in perform
target_repoids = _gather_target_repositories(context, indata, prod_cert_path)
File "/usr/share/leapp-repository/repositories/system_upgrade/common/actors/targetuserspacecreator/libraries/userspacegen.py", line 616, in _gather_target_repositories
rhui.copy_rhui_data(context, indata.rhui_info.provider)
File "/usr/share/leapp-repository/repositories/system_upgrade/common/libraries/rhui.py", line 177, in copy_rhui_data
context.copy_to(os.path.join(data_dir, path_[0]), path_[1])
File "/usr/share/leapp-repository/repositories/system_upgrade/common/libraries/mounting.py", line 233, in copy_to
shutil.copy2(src, self.full_path(dst))
File "/usr/lib64/python2.7/shutil.py", line 130, in copy2
copyfile(src, dst)
File "/usr/lib64/python2.7/shutil.py", line 82, in copyfile
with open(src, 'rb') as fsrc:
IOError: [Errno 2] No such file or directory: u'/etc/leapp/repos.d/system_upgrade/common/files/rhui/azure/content.crt'

I have also seemed to find a bug related to one of the sap packages.

Risk Factor: high
Title: Packages from unknown repositories may not be installed
Summary: 1 packages may not be installed or upgraded due to repositories unknown to leapp:
- tuned-profiles-sap (repoid: rhel8-SAP-NetWeaver)
Remediation: [hint] Please file a bug in http://bugzilla.redhat.com/ for leapp-repository component of the Red Hat Enterprise Linux product.


Can anyone help on trying to fix this? As it seems related to the Leapp python script.. All the other issues have been fixed just fine.

Responses