Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
DescriptionChristophe Besson
2021-12-10 13:53:13 UTC
Description of problem:
/etc/passwd can have + or - minus symbol. The password file can contain entries beginning with a + (plus sign) or - (minus sign) to selectively incorporate entries from another naming service source, such as NIS, NIS+, or LDAP.
In our case, the customer uses the 3rd party QAS to interface with an Active Directory. It leads to a traceback.
Version-Release number of selected component (if applicable):
leapp-upgrade-el7toel8-deps-0.15.0-6.el7_9.noarch
python2-leapp-0.13.0-1.el7_9.noarch
leapp-upgrade-el7toel8-0.15.0-6.el7_9.noarch
leapp-0.13.0-1.el7_9.noarch
How reproducible:
Always
Steps to Reproduce:
1. echo +user1 >> /etc/passwd
2. leapp preupgrade
Actual results:
====> * system_facts
Provides data about many facts from system.
Process Process-213:
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 335, in run
self.process(*args)
File "/usr/share/leapp-repository/repositories/system_upgrade/common/actors/systemfacts/actor.py", line 38, in process
self.produce(systemfacts.get_system_users_status())
File "/usr/share/leapp-repository/repositories/system_upgrade/common/actors/systemfacts/libraries/systemfacts.py", line 55, in get_system_users_status
return UsersFacts(users=_get_system_users())
File "/usr/share/leapp-repository/repositories/system_upgrade/common/actors/systemfacts/libraries/systemfacts.py", line 22, in inner
return list(f(*args, **kwargs))
File "/usr/share/leapp-repository/repositories/system_upgrade/common/actors/systemfacts/libraries/systemfacts.py", line 49, in _get_system_users
home=p.pw_dir
File "/usr/lib/python2.7/site-packages/leapp/models/__init__.py", line 88, in __init__
getattr(defined_fields[field], init_method)(kwargs, field, self)
File "/usr/lib/python2.7/site-packages/leapp/models/fields/__init__.py", line 110, in from_initialization
self._validate_model_value(value=source_value, name=name)
File "/usr/lib/python2.7/site-packages/leapp/models/fields/__init__.py", line 179, in _validate_model_value
super(BuiltinField, self)._validate_model_value(value, name)
File "/usr/lib/python2.7/site-packages/leapp/models/fields/__init__.py", line 60, in _validate_model_value
raise ModelViolationError('The value of "{name}" field is None, but this is not allowed'.format(name=name))
ModelViolationError: The value of "home" field is None, but this is not allowed
Expected results:
Ignoring such entries
Additional info:
Commenting them out to move forward.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory (leapp and leapp-repository bug fix and enhancement update), and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://access.redhat.com/errata/RHBA-2023:3187
Description of problem: /etc/passwd can have + or - minus symbol. The password file can contain entries beginning with a + (plus sign) or - (minus sign) to selectively incorporate entries from another naming service source, such as NIS, NIS+, or LDAP. In our case, the customer uses the 3rd party QAS to interface with an Active Directory. It leads to a traceback. Version-Release number of selected component (if applicable): leapp-upgrade-el7toel8-deps-0.15.0-6.el7_9.noarch python2-leapp-0.13.0-1.el7_9.noarch leapp-upgrade-el7toel8-0.15.0-6.el7_9.noarch leapp-0.13.0-1.el7_9.noarch How reproducible: Always Steps to Reproduce: 1. echo +user1 >> /etc/passwd 2. leapp preupgrade Actual results: ====> * system_facts Provides data about many facts from system. Process Process-213: 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 335, in run self.process(*args) File "/usr/share/leapp-repository/repositories/system_upgrade/common/actors/systemfacts/actor.py", line 38, in process self.produce(systemfacts.get_system_users_status()) File "/usr/share/leapp-repository/repositories/system_upgrade/common/actors/systemfacts/libraries/systemfacts.py", line 55, in get_system_users_status return UsersFacts(users=_get_system_users()) File "/usr/share/leapp-repository/repositories/system_upgrade/common/actors/systemfacts/libraries/systemfacts.py", line 22, in inner return list(f(*args, **kwargs)) File "/usr/share/leapp-repository/repositories/system_upgrade/common/actors/systemfacts/libraries/systemfacts.py", line 49, in _get_system_users home=p.pw_dir File "/usr/lib/python2.7/site-packages/leapp/models/__init__.py", line 88, in __init__ getattr(defined_fields[field], init_method)(kwargs, field, self) File "/usr/lib/python2.7/site-packages/leapp/models/fields/__init__.py", line 110, in from_initialization self._validate_model_value(value=source_value, name=name) File "/usr/lib/python2.7/site-packages/leapp/models/fields/__init__.py", line 179, in _validate_model_value super(BuiltinField, self)._validate_model_value(value, name) File "/usr/lib/python2.7/site-packages/leapp/models/fields/__init__.py", line 60, in _validate_model_value raise ModelViolationError('The value of "{name}" field is None, but this is not allowed'.format(name=name)) ModelViolationError: The value of "home" field is None, but this is not allowed Expected results: Ignoring such entries Additional info: Commenting them out to move forward.