-
Notifications
You must be signed in to change notification settings - Fork 7
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
GM Version checking doesn't work #1049
Comments
Sanity check needs to be added on django side (middleware). There are 3 cases:
|
Just to clarify: this check should be performed by the router that kicks in before you even get to the cluster. But currently that can only be enabled if we have exactly two clusters. Otherwise routing is disabled and there are no checks. On staging we have only a single version right now. I've added an issue to make it work the same way no matter whether we have one or two versions available: golemfactory/concent-deployment#289. When the requested version is not available, the router will now respond with HTTP 404. The change proposed by @kbeker above is an additional sanity check in the Concent app - if you, for whatever reason, manage to get through to a Concent cluster with an incompatible version of GM in your @kbeker The header is called Also, this should be obvious, but just in case: note that (as stated in the #857 blueprint) versions do not need to be exactly the same. It's enough if they're compatible:
Note that the way we do it in the router matches semver only for release versions but it does not really matter because this mechanism is meant only for production. We just look at first two numbers and ignore the rest: golemfactory/concent-deployment#258 (comment). It's best if the Python code checks it exactly the same way. |
@cameel You're right, my bad, edited. |
Update: on the standup today we agreed that instead of |
Fixed in concent and should work properly. It was fixed in #1057, didn't close automatically |
To reproduce, run
pytest -vs --maxfail=1 --lf scripts/concent_acceptance_tests/force_payment/test_payment.py
Result:
Analysis:
Local GM version is
2.21.1
, remote version is2.17.0
. Concent service acts as if those versions are compatible, hence it doesn't understand new message nesting protocol.The text was updated successfully, but these errors were encountered: