-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Fix the behavior of ipa modules in case IPA_HOST is empty #241
Merged
gundalow
merged 3 commits into
ansible-collections:master
from
xek:fix_empty_ipa_host_var
Jun 17, 2020
Merged
Fix the behavior of ipa modules in case IPA_HOST is empty #241
gundalow
merged 3 commits into
ansible-collections:master
from
xek:fix_empty_ipa_host_var
Jun 17, 2020
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The expected behavior, when the env is empty, is to fallback on DNS. Without this fix, if IPA_HOST is empty, there are different errors, depending on urllib version, which additionally confuses the user. Example errors: * host_find: Request failed: <urlopen error no host given> * Failed to connect to None at port 443: [Errno 111] Connection refused", "status": -1, "url": "https:///ipa/session/json
ansibullbot
added
affects_2.10
bug
This issue/PR relates to a bug
new_contributor
Help guide this first time contributor
labels
Apr 27, 2020
Please add a changelog fragment ( |
@felixfontein I added the changelog fragment, as per your suggestion. |
openstack-gerrit
pushed a commit
to openstack-archive/tripleo-heat-templates
that referenced
this pull request
May 6, 2020
When IPA_HOST is an empty string, the ansible module doesn't fallback on DNS. The environment variable must be not defined, if the value is an empty string. This might be fixed in a future: ansible-collections/community.general#241 This change also adds a note to the description, because in case the server is provided, the domain is required: https://pagure.io/freeipa/issue/3912 Change-Id: Idf38c234e50442aed082d9a0ebbd488344d50a90
openstack-gerrit
pushed a commit
to openstack/openstack
that referenced
this pull request
May 6, 2020
* Update tripleo-heat-templates from branch 'master' - Merge "Make sure IdMServer is optional" - Make sure IdMServer is optional When IPA_HOST is an empty string, the ansible module doesn't fallback on DNS. The environment variable must be not defined, if the value is an empty string. This might be fixed in a future: ansible-collections/community.general#241 This change also adds a note to the description, because in case the server is provided, the domain is required: https://pagure.io/freeipa/issue/3912 Change-Id: Idf38c234e50442aed082d9a0ebbd488344d50a90
openstack-mirroring
pushed a commit
to openstack-archive/tripleo-heat-templates
that referenced
this pull request
May 13, 2020
When IPA_HOST is an empty string, the ansible module doesn't fallback on DNS. The environment variable must be not defined, if the value is an empty string. This might be fixed in a future: ansible-collections/community.general#241 This change also adds a note to the description, because in case the server is provided, the domain is required: https://pagure.io/freeipa/issue/3912 Change-Id: Idf38c234e50442aed082d9a0ebbd488344d50a90 (cherry picked from commit 593d3c8)
ansibullbot
added
small_patch
stale_ci
CI is older than 7 days, rerun before merging
labels
May 13, 2020
gundalow
added
the
pr_day
Has been reviewed during a PR review Day. https://github.com/ansible/community/issues/407
label
Jun 17, 2020
samccann
reviewed
Jun 17, 2020
changelogs/fragments/241-fix-ipa-modules-when-ipa_host-empty.yml
Outdated
Show resolved
Hide resolved
Co-authored-by: Sandra McCann <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bug
This issue/PR relates to a bug
community_review
new_contributor
Help guide this first time contributor
pr_day
Has been reviewed during a PR review Day. https://github.com/ansible/community/issues/407
small_patch
Hopefully easy to review
stale_ci
CI is older than 7 days, rerun before merging
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
SUMMARY
Fix the behavior of ipa modules in case IPA_HOST is empty
The expected behavior, when the env is empty, is to
fallback on DNS.
ISSUE TYPE
COMPONENT NAME
ipa
ADDITIONAL INFORMATION
Without this fix, if IPA_HOST is empty,
there are different errors, depending on urllib version,
which additionally confuses the user. Example errors:
host_find: Request failed: <urlopen error no host given>
Failed to connect to None at port 443: [Errno 111] Connection refused", "status": -1, "url": "https:///ipa/session/json