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

[Bug]: Seed Job failing with AttributeError for 'ldap' module #22184

Closed
ahmedabu98 opened this issue Jul 7, 2022 · 2 comments · Fixed by #22223
Closed

[Bug]: Seed Job failing with AttributeError for 'ldap' module #22184

ahmedabu98 opened this issue Jul 7, 2022 · 2 comments · Fixed by #22223

Comments

@ahmedabu98
Copy link
Contributor

What happened?

e.g. https://ci-beam.apache.org/job/beam_SeedJob/9949/console

INFO:root:Generating Committers.groovy
Traceback (most recent call last):
  File "main.py", line 143, in <module>
    generate_groovy(args.output_dir, args.ldap_uris, args.cert_path)
  File "main.py", line 53, in generate_groovy
    github_usernames=get_committers_github_usernames(
  File "main.py", line 66, in get_committers_github_usernames
    ldap.set_option(ldap.OPT_X_TLS, ldap.OPT_X_TLS_DEMAND)
AttributeError: module 'ldap' has no attribute 'OPT_X_TLS'
+ echo 'ERROR: Failed to fetch committers'
ERROR: Failed to fetch committers

Also affects standalone seed job (https://ci-beam.apache.org/job/beam_SeedJob_Standalone/8489/console)

Issue Priority

Priority: 2

Issue Component

Component: testing

@Abacn
Copy link
Contributor

Abacn commented Jul 11, 2022

Sounds related to the recent change on pyhton-ldap package: https://pypi.org/project/python-ldap/#history

Release time coincidence with the time the job begins to fail.

@ahmedabu98
Copy link
Contributor Author

Sounds right, release notes mentions that OPT_X_TLS is deprecated: https://github.com/python-ldap/python-ldap/releases

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

Successfully merging a pull request may close this issue.

3 participants