-
Notifications
You must be signed in to change notification settings - Fork 23
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
Support IPA IPA Trust with additional IPA server #106
base: master
Are you sure you want to change the base?
Conversation
@@ -221,7 +221,7 @@ | |||
dnf: | |||
state: present | |||
name: sssd-kcm | |||
when: "'base_ipa' in group_names or 'ipa' in group_names" | |||
when: "'base_ipa' in group_names or 'base_ipa2' in group_names or 'ipa' in group_names" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason to use base_ipa2? Wouldn't it be tha same as base_ipa?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed to use base_ipa
only, this was an oversight on my part.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does not look fixed yet.
src/ansible/inventory.yml
Outdated
@@ -14,6 +14,9 @@ all: | |||
base_ipa: | |||
hosts: | |||
base-ipa | |||
base_ipa2: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why create base_ipa2?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed to use base_ipa only, this was an oversight on my part.
6301e05
to
46ac0c5
Compare
Hi @pbrezina Can you help me understand why
I ran However, these are not being copied into the
|
Makefile
Outdated
@@ -18,13 +18,18 @@ up-keycloak: | |||
docker-compose -f docker-compose.yml -f docker-compose.keycloak.yml up \ | |||
--no-recreate --detach ${LIMIT} | |||
|
|||
up-ipaipatrust: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is something we can test in PR CI, so I think we can start second IPA with just make up
. What do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, PR updated.
data/configs/dnsmasq.conf
Outdated
@@ -12,6 +12,7 @@ cache-size=0 | |||
|
|||
# These zones have their own DNS server | |||
server=/ipa.test/172.16.100.10 | |||
server=/ipa2.test/172.16.100.80 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It does not matter much but you can use .11
instead of .80
to keep IPA servers grouped together.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed, switched to 172.16.100.11
Ubuntu does not provide ipa package so base-ipa container is actually pulled from |
Actually it wouldn't work because we run each distro on different host. We would need to store it as artifact and then download it and install it. |
46ac0c5
to
fe0bad4
Compare
Can ssh keys from both IPA servers |
@@ -264,7 +264,7 @@ | |||
- ci-sssd-random | |||
- umockdev | |||
when: passkey_support | |||
when: "'base_client' in group_names or 'client' in group_names or 'base_ipa' in group_names or 'ipa' in group_names" | |||
when: "'base_client' in group_names or 'client' in group_names or 'base_ipa' in group_names or 'base_ipa2' in group_names or 'ipa' in group_names" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here is still base_ipa2.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The base_ipa2 is still present.
fe0bad4
to
192a817
Compare
Removed fully. |
@@ -16,7 +16,9 @@ | |||
roles: | |||
- samba | |||
|
|||
- hosts: master.ipa.test | |||
- hosts: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should target group ipa.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated as part of rebase.
No until this PR is merged. But you could do it manually, however it's probably not worth the effort. |
Justin, you can try removing the ssh host keys completely when you will rebase on top of Jakub's changes. I'm pretty sure I added them as a workaround for something, but I don't remember anymore. Maybe, it is not needed anymore. |
192a817
to
48104c2
Compare
I rebased and removed the host keys. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@justin-stephenson , before I go deeper into the PR. I think we should create a new network for ipa2 and make it more realistic.
WDYT? |
Forgive my ignorance but what is the benefit? |
Realism mostly, two domains sharing the same class C network, while it works, it's not suggested per our installation docs. I don't think it helps us to to test against an unsupported installation. I do recall there has seem some automation limitations in the past, definitely one, maybe two bugs we would've caught if it wasn't sharing the same subnet. |
I don't have a strong opinion either way, @pbrezina can you provide your thoughts? |
FWIW, I feel strongly about this. Testing against a supported/gss certified setup than a test. While it doesn't apply here, the downstream multi-domain AD stuff needs to be segmented this way otherwise dcpromo will fail. |
I think it just unnecessarily complicates the setup. I have no idea if adding a network in a docker-compose is sufficient or additional tinkering to make the networks accessible from each other will be required. But I don't have opinion whether it should or should not be done, I'm fine either way. |
A new docker net will be sufficient, I know it's extra complexity, but it's worth it. |
Is it more than a simple one-line change? If yes would you mind adding a commit to this PR with these changes and pushing to this PR? |
Just be aware that we can't copy this that easily in idmci (without hadcoding specific openstack networks). We also need to make sure that the same network will still work. |
Ack, I did run it in IDMCI and the provision passes, I'll go ahead and test it.
|
48104c2
to
f6d482a
Compare
I rebased this PR, and also added capabilities to the 'ipa2' section in docker-compose.yml similar to |
@justin-stephenson, I have the configuration provisioning but the networks are not routable to one another so I'm trying to figure that out. |
Hi, jfyi, I was still able to setup a test environment with this PR. bye, |
f6d482a
to
c8f6bdd
Compare
Add new server
master2.ipa2.test
which deploys an IPA domainipa2.test
to be used in IPA IPA trust.with this PR checked out
sudo make down
sudo make build
`sudo REGISTRY="localhost/sssd" make up
Linked PRs:
SSSD/sssd-test-framework#119
SSSD/sssd#7517