Why does Leapp fails with "ModelViolationError: The value of "value" field must be one of "yes, prohibit-password, forced-commands-only, no" " Traceback ?

Solution Verified - Updated -

Issue

  • Leapp preupgrade command fails with below traceback errors :
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 289, in run
    self.process(*args)
  File "/usr/share/leapp-repository/repositories/system_upgrade/common/actors/opensshconfigscanner/actor.py", line 28, in process
    readopensshconfig.scan_sshd(self.produce)
  File "/usr/share/leapp-repository/repositories/system_upgrade/common/actors/opensshconfigscanner/libraries/readopensshconfig.py", line 102, in scan_sshd
    config = parse_config(output)
  File "/usr/share/leapp-repository/repositories/system_upgrade/common/actors/opensshconfigscanner/libraries/readopensshconfig.py", line 42, in parse_config
    v = OpenSshPermitRootLogin(value=value, in_match=in_match)
  File "/usr/lib/python2.7/site-packages/leapp/models/__init__.py", line 90, in __init__
    getattr(defined_fields[field], init_method)(kwargs, field, self)
  File "/usr/lib/python2.7/site-packages/leapp/models/fields/__init__.py", line 111, 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 332, in _validate_model_value
    self._validate_choices(value, name)
  File "/usr/lib/python2.7/site-packages/leapp/models/fields/__init__.py", line 342, in _validate_choices
    'The value of "{name}" field must be one of "{values}"'.format(name=name, values=values))
ModelViolationError: The value of "value" field must be one of "yes, prohibit-password, forced-commands-only, no"

Environment

  • Red Hat Enterprise Linux 7
  • Red Hat Enterprise Linux 8
  • Leapp

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content