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

Ignore AttributeError when trying to import p paramiko #51243

Merged
merged 2 commits into from
Jan 29, 2019

Conversation

jborean93
Copy link
Contributor

SUMMARY

When the newer gssapi library is installed, paramiko will fail to import and will raise an AttributeError. It is expecting the older and deprecated gssapi library but there is a namespace collision here. There's a PR to support the newer library in paramiko paramiko/paramiko#1311 but this doesn't seem to be going anywhere fast.

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

connection/netconf
connection/paramiko_ssh

@ansibot
Copy link
Contributor

ansibot commented Jan 23, 2019

@ansibot ansibot added affects_2.8 This issue/PR affects Ansible v2.8 bug This issue/PR relates to a bug. core_review In order to be merged, this PR must follow the core review workflow. needs_triage Needs a first human triage before being processed. networking Network category small_patch support:core This issue/PR relates to code supported by the Ansible Engineering Team. support:network This issue/PR relates to code supported by the Ansible Network Team. labels Jan 23, 2019
@ansibot ansibot removed the needs_triage Needs a first human triage before being processed. label Jan 29, 2019
Copy link
Member

@nitzmahone nitzmahone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While this hides the warning for people who aren't using paramiko, it also makes it harder to see the real problem for someone who is using paramiko if python-gssapi is installed (or any other failure happens during import). Would be better to store + re-raise the error in connect or some other method where it's clear that someone's actually trying to use the connection.

@jborean93 jborean93 merged commit 6d13acf into ansible:devel Jan 29, 2019
@jborean93 jborean93 deleted the plugin-paramiko-gssapi branch January 29, 2019 23:40
@ansible ansible locked and limited conversation to collaborators Jul 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
affects_2.8 This issue/PR affects Ansible v2.8 bug This issue/PR relates to a bug. core_review In order to be merged, this PR must follow the core review workflow. networking Network category support:core This issue/PR relates to code supported by the Ansible Engineering Team. support:network This issue/PR relates to code supported by the Ansible Network Team.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants