Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

awx.conf.settings The current value "'GroupOfUniqueNamesType'" for setting "AUTH_LDAP_GROUP_TYPE" is invalid #15795

Open
5 of 11 tasks
kevrrnet opened this issue Jan 29, 2025 · 0 comments

Comments

@kevrrnet
Copy link

Please confirm the following

  • I agree to follow this project's code of conduct.
  • I have checked the current issues for duplicates.
  • I understand that AWX is open source software provided for free and that I might not receive a timely response.
  • I am NOT reporting a (potential) security vulnerability. (These should be emailed to [email protected] instead.)

Bug Summary

I am using awx operator, I am using the latest version, 2.19.1, https://github.com/ansible/awx-operator/releases/tag/2.19.1.
I am using the extra settings to configure my ldap, https://github.com/ansible/awx-operator/blob/devel/docs/user-guide/advanced-configuration/extra-settings.md#extra-settings

I follow this settings : https://github.com/ansible/awx-operator/blob/devel/docs/user-guide/advanced-configuration/enabling-ldap-integration-at-awx-bootstrap.md

The Ldap feature is working as expected, however, I have this error log generated, continuously in my awx web pod, it flood the disk space.

Can someone look at this issue?

AWX version

awx operator v2.19.1

Select the relevant components

  • UI
  • UI (tech preview)
  • API
  • Docs
  • Collection
  • CLI
  • Other

Installation method

kubernetes

Modifications

no

Ansible version

2.19.1

Operating system

kubernetes

Web browser

Chrome

Steps to reproduce

follow this settings in my awx configuration manifest, https://github.com/ansible/awx-operator/blob/devel/docs/user-guide/advanced-configuration/enabling-ldap-integration-at-awx-bootstrap.md

it gave me this error log in the web pod, however, ldap works as expected.

Expected results

no error message should be generated in awx pod.

Actual results

2025-01-29 20:41:49,696 WARNING  [dbb9620b7e334a86815755d844c08c83] awx.conf.settings The current value "{'name_attr': 'cn'}" for setting "AUTH_LDAP_GROUP_TYPE_PARAMS" is invalid.
Traceback (most recent call last):
  File "/var/lib/awx/venv/awx/lib64/python3.11/site-packages/awx/conf/settings.py", line 402, in _get_local
    internal_value = field.to_internal_value(value)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/lib/awx/venv/awx/lib64/python3.11/site-packages/awx/sso/fields.py", line 480, in to_internal_value
    group_type_cls = find_class_in_modules(group_type_str)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/lib/awx/venv/awx/lib64/python3.11/site-packages/awx/sso/fields.py", line 52, in find_class_in_modules
    cls = getattr(m, class_name, None)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: attribute name must be string, not 'type'
2025-01-29 20:41:49,697 WARNING  [dbb9620b7e334a86815755d844c08c83] awx.conf.settings The current value "'GroupOfUniqueNamesType'" for setting "AUTH_LDAP_GROUP_TYPE" is invalid.
Traceback (most recent call last):
  File "/var/lib/awx/venv/awx/lib64/python3.11/site-packages/awx/conf/settings.py", line 402, in _get_local
    internal_value = field.to_internal_value(value)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/lib/awx/venv/awx/lib64/python3.11/site-packages/awx/sso/fields.py", line 458, in to_internal_value
    self.fail('invalid_parameters', parameters_type=type(params))
  File "/var/lib/awx/venv/awx/lib64/python3.11/site-packages/rest_framework/fields.py", line 603, in fail
    raise ValidationError(message_string, code=key)
rest_framework.exceptions.ValidationError: [ErrorDetail(string="Invalid group_type parameters. Expected instance of dict but got <class 'type'> instead.", code='invalid_parameters')]
2025-01-29 20:41:49,698 WARNING  [dbb9620b7e334a86815755d844c08c83] awx.conf.settings The current value "{'name_attr': 'cn'}" for setting "AUTH_LDAP_GROUP_TYPE_PARAMS" is invalid.
Traceback (most recent call last):
  File "/var/lib/awx/venv/awx/lib64/python3.11/site-packages/awx/conf/settings.py", line 402, in _get_local
    internal_value = field.to_internal_value(value)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/lib/awx/venv/awx/lib64/python3.11/site-packages/awx/sso/fields.py", line 480, in to_internal_value
    group_type_cls = find_class_in_modules(group_type_str)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/lib/awx/venv/awx/lib64/python3.11/site-packages/awx/sso/fields.py", line 52, in find_class_in_modules
    cls = getattr(m, class_name, None)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: attribute name must be string, not 'type'

Additional information

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant