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

auth: tolerate missing mgr keys #11360

Closed
wants to merge 2 commits into from
Closed

auth: tolerate missing mgr keys #11360

wants to merge 2 commits into from

Conversation

liewegas
Copy link
Member

@liewegas liewegas commented Oct 6, 2016

During upgrade we won't (yet) have mgr keys. Tolerate this case
and let the client stumble along without them.

This is imperfect (the auth client sends an additional key request and gets EINVAL; not sure why) but the client behaves fine despite it, and it makes the upgrade tests pass.

During an upgrade, we may have a client requesting an
MGR service key but not have one in the database yet,
either because we *just* upgraded and haven't generated
one yet, or because the leader mon hasn't been upgraded
yet.

Fix this by silently tolerating a missing key as long as
one or more other service keys were present and we have
something to give to the client.

Signed-off-by: Sage Weil <sage@redhat.com>
If we request a bunch of service keys, we may not get
back a MGR key because of an in-progress upgrade.  If we
have everything we need except for just the MGR key, do
not bother re-requesting it.  Instead just continue and
we'll re-request it later when the secrets rotate.

Signed-off-by: Sage Weil <sage@redhat.com>
@liewegas
Copy link
Member Author

@tchaikov tchaikov self-assigned this Oct 10, 2016
@liewegas
Copy link
Member Author

Hmm, similar problem if the mons are jewel and osds are kraken, they request keys and jewel osds return EPERM. I think we need to avoid requesting mgr keys unless the monitor has the kraken server feature.

@liewegas
Copy link
Member Author

replaced by #11401

@liewegas liewegas closed this Oct 10, 2016
@liewegas liewegas deleted the wip-mgr-keys branch October 10, 2016 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants