This repository has been archived by the owner on Feb 25, 2023. It is now read-only.
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
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
Take control of uvicorn directly from our own (possibly daemon) class. This allows us to restart the uvicorn service as needed to enable us to change to https etc. Note: This change breaks unit tests to be fixed in later commit. Signed-off-by: Joshua Hesketh <jhesketh@suse.com>
Signed-off-by: Joshua Hesketh <jhesketh@suse.com>
Use the local cache to notify anything locally if possible. This allows us to use a watch early in the process. Signed-off-by: Joshua Hesketh <jhesketh@suse.com> (cherry picked from commit a138cd6)
Also add gstate property to request uvicorn restart. Signed-off-by: Joshua Hesketh <jhesketh@suse.com> (cherry picked from commit fbe895e)
Signed-off-by: Joshua Hesketh <jhesketh@suse.com> (cherry picked from commit 4eda45d)
cephadm appears to leave open a thread lock, use os._exit to quit when we're ready. Signed-off-by: Joshua Hesketh <jhesketh@suse.com>
This has been reworked with the latest large refactor(s). You can set an SSL cert by POST'ing to /api/local/ssl a json blob such as
Obviously future improvements will be to auto-generate self-signed or allow lets-encrypt etc. |
Uvicorn is very close to implementing typing at which point we can upgrade and remove the ignore. encode/uvicorn#998 Signed-off-by: Joshua Hesketh <jhesketh@suse.com>
votdev
suggested changes
Jan 18, 2022
Found a bug when the node is not deployed and shutdown is forced.
Can be fixed by:
|
If we shut down gstate before the node is bootstrapped there may be nothing ready to tick; so check this first. Signed-off-by: Joshua Hesketh <jhesketh@suse.com>
Signed-off-by: Joshua Hesketh <jhesketh@suse.com>
@votdev good catches, thanks for that 👍 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
This won't work due to the large patchset that just merged. I'll rebase this shortly but looking for first feedback.