-
Notifications
You must be signed in to change notification settings - Fork 27
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
scylla_post_start.py and scylla_configure.py should not exit with 0 when HTTP Error occurs #505
Comments
I was wrong, curl() is actually re-raise exception when HTTP Error received. |
BTW, curl() also has problem. |
On scylladb#498, status of scylla-image-post-start.service is NOT "failed" even the script causing error, because scylla_post_start.py catches all exceptions and just logging it, so the script finishes without error. To getting notify users the script failed operation during running, we should sys.exit(1) when the exception catched. fixes scylladb#505
When curl catched HTTP error 4xx = client error such as "404 Not Found" or "403 Forbidden", it likely our script bug not server side issue, we should re-raise exception immediately instead of retrying. related scylladb#505
On scylladb#498, status of scylla-image-post-start.service is NOT "failed" even the script causing error, because scylla_post_start.py catches all exceptions and just logging it, so the script finishes without error. To getting notify users the script failed operation during running, we should sys.exit(1) when the exception catched. fixes scylladb#505
When curl catched HTTP error 4xx = client error such as "404 Not Found" or "403 Forbidden", it likely our script bug not server side issue, we should re-raise exception immediately instead of retrying. related scylladb#505
When curl catched HTTP error 4xx = client error such as "404 Not Found" or "403 Forbidden", it likely our script bug not server side issue, we should re-raise exception immediately instead of retrying. related scylladb#505
On scylladb#498, status of scylla-image-post-start.service is NOT "failed" even the script causing error, because scylla_post_start.py catches all exceptions and just logging it, so the script finishes without error. To getting notify users the script failed operation during running, we should sys.exit(1) when the exception catched. fixes scylladb#505 Signed-off-by: Takuya ASADA <[email protected]>
On #498, status of scylla-image-post-start.service is NOT "failed" even the script causing error, because scylla_post_start.py catches all exceptions and just logging it, so the script finishes without error. To getting notify users the script failed operation during running, we should sys.exit(1) when the exception catched. fixes #505
When curl catched HTTP error 4xx = client error such as "404 Not Found" or "403 Forbidden", it likely our script bug not server side issue, we should re-raise exception immediately instead of retrying. related #505
Related with #498
On current curl() implementation, all exceptions are catched to retrying access and never re-raised.
Because of this, we currently not able to get any HTTP Error related exception.
We should re-raise the exception after all retries are failed.
Or, maybe we don't need to retry for all HTTP Error, since the metadata server may returns specific error code when it's not available.
The text was updated successfully, but these errors were encountered: