-
Notifications
You must be signed in to change notification settings - Fork 103
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
Add support for multiple assisted-service pods #2148
Conversation
Hi @bkopilov. Thanks for your PR. I'm waiting for a openshift member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
src/assisted_test_infra/test_infra/controllers/assisted_installer_infra_controller.py
Outdated
Show resolved
Hide resolved
src/assisted_test_infra/test_infra/controllers/assisted_installer_infra_controller.py
Outdated
Show resolved
Hide resolved
src/assisted_test_infra/test_infra/controllers/assisted_installer_infra_controller.py
Outdated
Show resolved
Hide resolved
Added support for: - restart_deployment We can restart the deployment without stop , the restarted managed and creates another replicas and manages the pods creation/termination. will allow us to run tests during agent upgrades as active/active - delete_leftovers , due to the way restartAt works we have to clean all leftovers for the next run, before cleanup we remove replicaset with zero or not running pods - containers_ready_inside_pod Added support for deep inspection of a pod and verify that inside containers are really marked as ready. also we calculate the total pods plus verify that each one is in ready (from conainter status) At the end of the test we back to the last good state with a single pod, prefer to do it with oc scale replicas because there are no replicas leftover
8296ec8
to
1ee0658
Compare
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: bkopilov The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
running_pods = list(map(self.containers_ready_inside_pod, pods)) | ||
# make sure all pods are running , in restartAt we may have parallel creation/termination | ||
logging.info(f"Check if total pods are equal to running and ready {running_pods} vs {len(pods)}") | ||
return len(pods) == len(running_pods) and all(running_pods) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could be simpler to check if the full deployment has been rolled out successfully?
You can get inspiration from here:
https://github.com/fiaas/fiaas-deploy-daemon/pull/47/files#diff-2a85b9b3dfebaeb782d011387395182908f17ba26d491c029850f6ddcae02cecR66-R69
it does the same check as kubectl rollout status ...
/ok-to-test |
@bkopilov: The following tests failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
Issues go stale after 90d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle stale |
Stale issues rot after 30d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle rotten |
Rotten issues close after 30d of inactivity. Reopen the issue by commenting /close |
@openshift-bot: Closed this PR. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Added support for:
At the end of the test we back to the last good state with a single pod, prefer to do it with oc scale replicas because there are no replicas leftover