Discussion:
[Freeipa-devel] [freeipa PR#679][synchronized] Make sure remote hosts have our keys
simo5
2017-03-31 16:28:41 UTC
Permalink
URL: https://github.com/freeipa/freeipa/pull/679
Author: simo5
Title: #679: Make sure remote hosts have our keys
Action: synchronized

To pull the PR as Git branch:
git remote add ghfreeipa https://github.com/freeipa/freeipa
git fetch ghfreeipa pull/679/head:pr679
git checkout pr679
simo5
2017-03-31 16:30:12 UTC
Permalink
URL: https://github.com/freeipa/freeipa/pull/679
Author: simo5
Title: #679: Make sure remote hosts have our keys
Action: synchronized

To pull the PR as Git branch:
git remote add ghfreeipa https://github.com/freeipa/freeipa
git fetch ghfreeipa pull/679/head:pr679
git checkout pr679
simo5
2017-03-31 16:30:58 UTC
Permalink
URL: https://github.com/freeipa/freeipa/pull/679
Title: #679: Make sure remote hosts have our keys

simo5 commented:
"""
I haven't tested this yet ... but what could possibily go wrong? :-)
"""

See the full comment at https://github.com/freeipa/freeipa/pull/679#issuecomment-290762100
simo5
2017-04-03 12:55:59 UTC
Permalink
URL: https://github.com/freeipa/freeipa/pull/679
Author: simo5
Title: #679: Make sure remote hosts have our keys
Action: synchronized

To pull the PR as Git branch:
git remote add ghfreeipa https://github.com/freeipa/freeipa
git fetch ghfreeipa pull/679/head:pr679
git checkout pr679
pvoborni
2017-04-04 16:19:51 UTC
Permalink
URL: https://github.com/freeipa/freeipa/pull/679
Title: #679: Make sure remote hosts have our keys

pvoborni commented:
"""
Shouldn't the ticket number be: https://pagure.io/freeipa/issue/6838 ?
"""

See the full comment at https://github.com/freeipa/freeipa/pull/679#issuecomment-291553067
simo5
2017-04-04 16:32:49 UTC
Permalink
URL: https://github.com/freeipa/freeipa/pull/679
Title: #679: Make sure remote hosts have our keys

simo5 commented:
"""
Seem like both errors are the same problem.
Should we mark 6688 a duplicate of 6838 ?
"""

See the full comment at https://github.com/freeipa/freeipa/pull/679#issuecomment-291556956
simo5
2017-04-04 16:34:01 UTC
Permalink
URL: https://github.com/freeipa/freeipa/pull/679
Title: #679: Make sure remote hosts have our keys

simo5 commented:
"""
Nevermind they are not duplicates.
I'll fix the commit message.

"""

See the full comment at https://github.com/freeipa/freeipa/pull/679#issuecomment-291557263
simo5
2017-04-04 16:36:32 UTC
Permalink
URL: https://github.com/freeipa/freeipa/pull/679
Author: simo5
Title: #679: Make sure remote hosts have our keys
Action: synchronized

To pull the PR as Git branch:
git remote add ghfreeipa https://github.com/freeipa/freeipa
git fetch ghfreeipa pull/679/head:pr679
git checkout pr679
stlaz
2017-04-12 14:18:37 UTC
Permalink
URL: https://github.com/freeipa/freeipa/pull/679
Title: #679: Make sure remote hosts have our keys

stlaz commented:
"""
Fails with
```2017-04-12T14:16:14Z DEBUG The ipa-replica-install command failed, exception: ValueError: Incorrect number of results (0) searching forpublic key for host/vm-***@DOM-096.ABC.IDM.LAB.ENG.BRQ.REDHAT.COM
```
on first replica, every try.
"""

See the full comment at https://github.com/freeipa/freeipa/pull/679#issuecomment-293591724
stlaz
2017-04-12 14:18:46 UTC
Permalink
URL: https://github.com/freeipa/freeipa/pull/679
Title: #679: Make sure remote hosts have our keys

stlaz commented:
"""
Fails with
```2017-04-12T14:16:14Z DEBUG The ipa-replica-install command failed, exception: ValueError: Incorrect number of results (0) searching forpublic key for host/vm-***@DOM-096.ABC.IDM.LAB.ENG.BRQ.REDHAT.COM
```
on first replica, every try.
"""

See the full comment at https://github.com/freeipa/freeipa/pull/679#issuecomment-293591724
tiran
2017-04-20 14:12:08 UTC
Permalink
URL: https://github.com/freeipa/freeipa/pull/679
Author: simo5
Title: #679: Make sure remote hosts have our keys
Action: edited

Changed field: body
Original value:
"""
In complex replication setups a replica may try to obtain CA keys from a
host that is not the master we initially create the keys against.
In this case race conditions may happen due to replication. So we need
to make sure the server we are contacting to get the CA keys has our
keys in LDAP. We do this by waiting to positively fetch our encryption
public key (the last one we create) from the target host LDAP server.

Fixes: https://pagure.io/freeipa/issue/6688

Signed-off-by: Simo Sorce <***@redhat.com>
"""
simo5
2017-04-25 13:30:58 UTC
Permalink
URL: https://github.com/freeipa/freeipa/pull/679
Author: simo5
Title: #679: Make sure remote hosts have our keys
Action: synchronized

To pull the PR as Git branch:
git remote add ghfreeipa https://github.com/freeipa/freeipa
git fetch ghfreeipa pull/679/head:pr679
git checkout pr679
pvoborni
2017-05-02 07:40:59 UTC
Permalink
URL: https://github.com/freeipa/freeipa/pull/679
Title: #679: Make sure remote hosts have our keys

pvoborni commented:
"""
What is this PR waiting for?
"""

See the full comment at https://github.com/freeipa/freeipa/pull/679#issuecomment-298530908
stlaz
2017-05-02 07:49:25 UTC
Permalink
URL: https://github.com/freeipa/freeipa/pull/679
Title: #679: Make sure remote hosts have our keys

stlaz commented:
"""
Post by stlaz
Fails with
on first replica, every try.
I did not see any change in code to fix this but I can try again.
"""

See the full comment at https://github.com/freeipa/freeipa/pull/679#issuecomment-298534740
stlaz
2017-05-02 16:08:38 UTC
Permalink
URL: https://github.com/freeipa/freeipa/pull/679
Title: #679: Make sure remote hosts have our keys

stlaz commented:
"""
Still fails.
"""

See the full comment at https://github.com/freeipa/freeipa/pull/679#issuecomment-298681896
simo5
2017-05-02 19:20:04 UTC
Permalink
URL: https://github.com/freeipa/freeipa/pull/679
Title: #679: Make sure remote hosts have our keys

simo5 commented:
"""
Can you please attach more of the logs before the failure ?
"""

See the full comment at https://github.com/freeipa/freeipa/pull/679#issuecomment-298734189
simo5
2017-05-02 20:19:01 UTC
Permalink
URL: https://github.com/freeipa/freeipa/pull/679
Title: #679: Make sure remote hosts have our keys

simo5 commented:
"""
@stlaz just FYI, I am sking this info because I cannot reproduce locally with a single replica.
"""

See the full comment at https://github.com/freeipa/freeipa/pull/679#issuecomment-298748943
simo5
2017-05-02 20:23:21 UTC
Permalink
URL: https://github.com/freeipa/freeipa/pull/679
Title: #679: Make sure remote hosts have our keys

simo5 commented:
"""
Nevermind I finally reproduced
"""

See the full comment at https://github.com/freeipa/freeipa/pull/679#issuecomment-298750030
simo5
2017-05-02 21:28:55 UTC
Permalink
URL: https://github.com/freeipa/freeipa/pull/679
Author: simo5
Title: #679: Make sure remote hosts have our keys
Action: synchronized

To pull the PR as Git branch:
git remote add ghfreeipa https://github.com/freeipa/freeipa
git fetch ghfreeipa pull/679/head:pr679
git checkout pr679
simo5
2017-05-02 21:30:50 UTC
Permalink
URL: https://github.com/freeipa/freeipa/pull/679
Title: #679: Make sure remote hosts have our keys

simo5 commented:
"""
Turned out my master had some more relaxed permissions I added when developing the feature.
I now have added a new function to just check for the host keys without asking for data that cannot be read with the identity we have available.
This has been tested and seems to work correctly.
Please check @stlaz
"""

See the full comment at https://github.com/freeipa/freeipa/pull/679#issuecomment-298767350
stlaz
2017-05-03 06:06:57 UTC
Permalink
URL: https://github.com/freeipa/freeipa/pull/679
Title: #679: Make sure remote hosts have our keys

stlaz commented:
"""
@simo5 will check, sorry for not replying yesterday, I was no more at my machine.
"""

See the full comment at https://github.com/freeipa/freeipa/pull/679#issuecomment-298829885
stlaz
2017-05-03 07:49:28 UTC
Permalink
URL: https://github.com/freeipa/freeipa/pull/679
Title: #679: Make sure remote hosts have our keys

stlaz commented:
"""
Seems to work fine against current master, but fails with
```
Configuring ipa-custodia
[1/4]: Generating ipa-custodia config file
[2/4]: Generating ipa-custodia keys
[3/4]: starting ipa-custodia
[4/4]: configuring ipa-custodia to start on boot
Done configuring ipa-custodia.
Your system may be partly configured.
Run /usr/sbin/ipa-server-install --uninstall to clean up.

ipa.ipapython.install.cli.install_tool(CompatServerReplicaInstall): ERROR 503 Server Error: Service Unavailable for url: https://vm-096.abc.idm.lab.eng.brq.redhat.com/ipa/keys/ca/caSigningCert%20cert-pki-ca?type=kem&value=eyJhbGciOiJSU0EtT0FFUCIsImVuYyI6IkEyNTZDQkMtSFM1MTIiLCJraWQiOm51bGx9.k6y2jmI8oxRIsieU93_RzG5mZU_u_DPW2XL2jjLukYPZ3oZOkLkufof0fBeH6LAR66aL9m5C9j26GmhlTqNsm2FUQT7Xql975rYR3veooDwLQlPx6k4X1J4CTEeSsf7RVj8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): ERROR The ipa-replica-install command failed. See /var/log/ipareplica-install.log for more information
```
against 4.4.4 master.
"""

See the full comment at https://github.com/freeipa/freeipa/pull/679#issuecomment-298844054
stlaz
2017-05-03 10:53:21 UTC
Permalink
URL: https://github.com/freeipa/freeipa/pull/679
Title: #679: Make sure remote hosts have our keys

stlaz commented:
"""
Seems to work fine against current master, but fails with
```
Configuring ipa-custodia
[1/4]: Generating ipa-custodia config file
[2/4]: Generating ipa-custodia keys
[3/4]: starting ipa-custodia
[4/4]: configuring ipa-custodia to start on boot
Done configuring ipa-custodia.
Your system may be partly configured.
Run /usr/sbin/ipa-server-install --uninstall to clean up.

ipa.ipapython.install.cli.install_tool(CompatServerReplicaInstall): ERROR 503 Server Error: Service Unavailable for url: https://vm-096.abc.idm.lab.eng.brq.redhat.com/ipa/keys/ca/caSigningCert%20cert-pki-ca?type=kem&value=eyJhbGciOiJSU0EtT0FFUCIsImVuYyI6IkEyNTZDQkMtSFM1MTIiLCJraWQiOm51bGx9.k6y2jmI8oxRIsieU93_RzG5mZU_u_DPW2XL2jjLukYPZ3oZOkLkufof0fBeH6LAR66aL9m5C9j26GmhlTqNsm2FUQT7Xql975rYR3veooDwLQlPx6k4X1J4CTEeSsf7RVj8KfLE5e4K-nW1hTyepsbm7RDAA_-tbLvWzEqCQ0I3bfpPEDmlML08FA9T_yuPb1FkT0-lSCLV5PHya4tOB3R2q5CHC2b6BpwZQtbVW8eohshEmJMTO2NMAyPlfJscgSHYmhi6oliToV_Dh90Ej1UH_S0UOkHLsvIV5IoW4EGeaGdeHwHo4GsSGHGN3exVxWk9GShhJ_WJ-dlXSGQ_9CA.SfWWO_VrqzKKX3EYSh3E1Q.n4GtjcFZOQSZmAG9MShIQVtfRv_N3jEQMS46rLGUU6xIS-BYBL0Xq1UWP6VFrZW-g96Iqe2PIBhv4m1FsuAzP_gzac1lCr2ghcVuj3rAUg81G5s8vPuYNl_Ur5UVlQ2LtWzGLc26s1z_43MF7qCl8iayvXqnweK8_kj54F1RUJ-Awp0--Z4mnK_FFrPU4BBW2_EjZ1tOR8dV7NnxnN2Gd2tiDFl6Kkbj91rf6Bo2f8telN5RJsX52PsNW2z-l78TOIAKY4qfHhSVz31RO3xgUbyu3yQ79sGIxD66hzmVisB_LnbpNHbIjCP1wKEXXSo-IPrDtXk7ZWZrEITtItzynbzBKddVLjcNMjoqGz-lhLWVNg8R8rdHEdUzhlkdM-kFfW6Fz57wSyOZnt4KvQ-lZxY62TLQB1gqJ7vhzUPUs1g7C9rsy4gTQPjuRxXnLRvqXSb3arQPkrUl_hLqRuAm8FL-ClYY9G38KVns81QTygKvkDC8E5LQBJfyzkg93AyTXNBcrdCxP8AGgaxLBlGyEX-ya0g3mVX5fz_Uj6gyKjtOS_x1AUHOMkAMRmVEzvixrz-krCMWYOQDmJi19OlNeNjb7-NUVDxPRryr7e6Po2OqSbSjP6kUSw_QbMZf8BCrqV4TUFOwndTmZ68n1TOrCqie-UO71TJnherD_3m60_t3-Li1uy6_WWX66BBEMCCtsZBJWP7OYj7c9CzWGuzUEI7g75i4TZwoM1z0SjuyoPE.ZbRawj1B943OeF6AD_W0Z3pfk13fs14rbj_Ab8n-ZXI
ipa.ipapython.install.cli.install_tool(CompatServerReplicaInstall): ERROR The ipa-replica-install command failed. See /var/log/ipareplica-install.log for more information
```
against 4.4.4 master.
"""

See the full comment at https://github.com/freeipa/freeipa/pull/679#issuecomment-298844054
simo5
2017-05-03 11:34:45 UTC
Permalink
URL: https://github.com/freeipa/freeipa/pull/679
Title: #679: Make sure remote hosts have our keys

simo5 commented:
"""
I've seen this once but thought it was a fluke due to my "unclean" master, as the following times it did not happen.
Can you reproduce the error against 4.4.4 consistently ?

"""

See the full comment at https://github.com/freeipa/freeipa/pull/679#issuecomment-298886632
stlaz
2017-05-03 11:45:53 UTC
Permalink
URL: https://github.com/freeipa/freeipa/pull/679
Title: #679: Make sure remote hosts have our keys

stlaz commented:
"""
I was able to do it two times in a row with the same master, I can try to reinstall both the master and replica if you want. What do you mean "unclean"? It's a clean 4.4.4 master, no code changes, `/etc/httpd/alias` and `/etc/pki/pki-tomcat/alias` NSS databases seem fine, too.
"""

See the full comment at https://github.com/freeipa/freeipa/pull/679#issuecomment-298888556
stlaz
2017-05-03 11:50:06 UTC
Permalink
URL: https://github.com/freeipa/freeipa/pull/679
Title: #679: Make sure remote hosts have our keys

stlaz commented:
"""
I was able to do it two times in a row with the same master, I can try to reinstall both the master and replica if you want. What do you mean "unclean"? It's a clean 4.4.4 master, no code changes, `/etc/httpd/alias` and `/etc/pki/pki-tomcat/alias` NSS databases seem fine, too.
"""

See the full comment at https://github.com/freeipa/freeipa/pull/679#issuecomment-298888556
simo5
2017-05-03 11:54:02 UTC
Permalink
URL: https://github.com/freeipa/freeipa/pull/679
Title: #679: Make sure remote hosts have our keys

simo5 commented:
"""
I meant my setup was unclean.
I will try to reproduce here.
Does master w/o this patch work properly against 4.4.4 ?
"""

See the full comment at https://github.com/freeipa/freeipa/pull/679#issuecomment-298889962
stlaz
2017-05-03 11:58:42 UTC
Permalink
URL: https://github.com/freeipa/freeipa/pull/679
Title: #679: Make sure remote hosts have our keys

stlaz commented:
"""
Not sure, I will try that.
"""

See the full comment at https://github.com/freeipa/freeipa/pull/679#issuecomment-298890816
stlaz
2017-05-03 12:09:56 UTC
Permalink
URL: https://github.com/freeipa/freeipa/pull/679
Title: #679: Make sure remote hosts have our keys

stlaz commented:
"""
It seems that replica install fails even without this patch so it's OK to go with it?
"""

See the full comment at https://github.com/freeipa/freeipa/pull/679#issuecomment-298892918
simo5
2017-05-03 12:36:23 UTC
Permalink
URL: https://github.com/freeipa/freeipa/pull/679
Title: #679: Make sure remote hosts have our keys

simo5 commented:
"""
We need to find why it breaks though, but yeah I think we can go forward with this patch of others agree.
Can you open a separate bug for the failure you got ?
"""

See the full comment at https://github.com/freeipa/freeipa/pull/679#issuecomment-298898148
stlaz
2017-05-03 13:40:30 UTC
Permalink
URL: https://github.com/freeipa/freeipa/pull/679
Title: #679: Make sure remote hosts have our keys

stlaz commented:
"""
Will do, ACKing this in the meantime.
"""

See the full comment at https://github.com/freeipa/freeipa/pull/679#issuecomment-298913680
stlaz
2017-05-03 13:40:37 UTC
Permalink
URL: https://github.com/freeipa/freeipa/pull/679
Title: #679: Make sure remote hosts have our keys

Label: +ack
stlaz
2017-05-03 13:49:18 UTC
Permalink
URL: https://github.com/freeipa/freeipa/pull/679
Title: #679: Make sure remote hosts have our keys

Label: -ack
stlaz
2017-05-03 13:49:37 UTC
Permalink
URL: https://github.com/freeipa/freeipa/pull/679
Title: #679: Make sure remote hosts have our keys

stlaz commented:
"""
Removing the ACK to retest on 4.4.4 with Fedora custodia version.
"""

See the full comment at https://github.com/freeipa/freeipa/pull/679#issuecomment-298916263
stlaz
2017-05-03 14:28:29 UTC
Permalink
URL: https://github.com/freeipa/freeipa/pull/679
Title: #679: Make sure remote hosts have our keys

Label: +ack
tomaskrizek
2017-05-03 14:37:52 UTC
Permalink
URL: https://github.com/freeipa/freeipa/pull/679
Title: #679: Make sure remote hosts have our keys

Label: +pushed
tomaskrizek
2017-05-03 14:38:04 UTC
Permalink
URL: https://github.com/freeipa/freeipa/pull/679
Author: simo5
Title: #679: Make sure remote hosts have our keys
Action: closed

To pull the PR as Git branch:
git remote add ghfreeipa https://github.com/freeipa/freeipa
git fetch ghfreeipa pull/679/head:pr679
git checkout pr679
tomaskrizek
2017-05-03 14:38:05 UTC
Permalink
URL: https://github.com/freeipa/freeipa/pull/679
Title: #679: Make sure remote hosts have our keys

tomaskrizek commented:
"""
ipa-4-5:

* 5f8d1119fe38807e86930af50d3680e28efe68eb Make sure remote hosts have our keys


master:

* 1f9f84a66d6cf9391b91ee4a13ac0f1119212578 Make sure remote hosts have our keys


"""

See the full comment at https://github.com/freeipa/freeipa/pull/679#issuecomment-298930285
Loading...