You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by "p-jonghyun (via GitHub)" <gi...@apache.org> on 2023/05/22 06:32:59 UTC
[GitHub] [openwhisk] p-jonghyun opened a new issue, #5416: Question : Controllers standby test
p-jonghyun opened a new issue, #5416:
URL: https://github.com/apache/openwhisk/issues/5416
https://github.com/apache/openwhisk/blob/ba871e59f7b77f02689a13e4e24e438645d67a47/tests/src/test/scala/ha/ShootComponentsTests.scala#L142-L145
'use controller1 if controller0 goes down' test in ShootComponentsTests.scala does following procedures.
1. restart controller0 container
2. /ping controller0 until it’s down
3. /ping controller1 to check it’s still up
4. ( Invoke Action(POST) + Get Action(GET) ) * 96 to nginx
Isn't there a case when nginx will forward the first POST request to controller0, dispatching a request when the container is up, but the backend in the container not.
Such behaivor will result in connection reset by peer which is not in Swagger Spec, failing the test.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@openwhisk.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [openwhisk] style95 commented on issue #5416: Question : Controllers standby test
Posted by "style95 (via GitHub)" <gi...@apache.org>.
style95 commented on issue #5416:
URL: https://github.com/apache/openwhisk/issues/5416#issuecomment-1570232161
It seems the test passed after enabling the second controller.
https://github.com/apache/openwhisk/actions/runs/5132045151/jobs/9233975717#step:4:8941
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@openwhisk.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [openwhisk] style95 commented on issue #5416: Question : Controllers standby test
Posted by "style95 (via GitHub)" <gi...@apache.org>.
style95 commented on issue #5416:
URL: https://github.com/apache/openwhisk/issues/5416#issuecomment-1556642951
I believe the test case does not guarantee no request is sent to the failed controller.
It allows some level of unsuccessful requests.
https://github.com/apache/openwhisk/blob/ba871e59f7b77f02689a13e4e24e438645d67a47/tests/src/test/scala/ha/ShootComponentsTests.scala#L172
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@openwhisk.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [openwhisk] style95 commented on issue #5416: Question : Controllers standby test
Posted by "style95 (via GitHub)" <gi...@apache.org>.
style95 commented on issue #5416:
URL: https://github.com/apache/openwhisk/issues/5416#issuecomment-1557119301
Indeed.
We are setting up the environment with the `HA` mode.
https://github.com/apache/openwhisk/blob/ba871e59f7b77f02689a13e4e24e438645d67a47/tools/travis/setupPrereq.sh#L29
But it seems `controller1` is always disabled.
According to [the PR](https://github.com/apache/openwhisk/pull/3105), it looks this is not intended.
I think we need to enable `controller1` in the CI environment and fix the system test if required.
@p-jonghyun Thank you for reporting this.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@openwhisk.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [openwhisk] style95 commented on issue #5416: Question : Controllers standby test
Posted by "style95 (via GitHub)" <gi...@apache.org>.
style95 commented on issue #5416:
URL: https://github.com/apache/openwhisk/issues/5416#issuecomment-1556731452
Do you see any test failures?
In my recent build, it was successful.
https://github.com/apache/openwhisk/actions/runs/5029161559/jobs/9020540100#step:4:8830
I am curious about in which condition it failed.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@openwhisk.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [openwhisk] p-jonghyun commented on issue #5416: Question : Controllers standby test
Posted by "p-jonghyun (via GitHub)" <gi...@apache.org>.
p-jonghyun commented on issue #5416:
URL: https://github.com/apache/openwhisk/issues/5416#issuecomment-1556780591
It looks like OW system test does not use multiple controllers.
https://github.com/apache/openwhisk/blob/ba871e59f7b77f02689a13e4e24e438645d67a47/ansible/environments/local/hosts.j2.ini#L9-L13
Therefore, the test case should be ignored.
https://github.com/apache/openwhisk/blob/ba871e59f7b77f02689a13e4e24e438645d67a47/tests/src/test/scala/ha/ShootComponentsTests.scala#L143-L148
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@openwhisk.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [openwhisk] p-jonghyun commented on issue #5416: Question : Controllers standby test
Posted by "p-jonghyun (via GitHub)" <gi...@apache.org>.
p-jonghyun commented on issue #5416:
URL: https://github.com/apache/openwhisk/issues/5416#issuecomment-1556680734
@style95
Thanks for the response!
As far as I understood this test case allows unsuccessful invokes only if their response matched the swagger spec.
https://github.com/apache/openwhisk/blob/ba871e59f7b77f02689a13e4e24e438645d67a47/tests/src/test/scala/common/rest/WskRestOperations.scala#L1191-L1198
And Connection reset by peer is not one of them which will make the test fail.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@openwhisk.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org