-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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 health checks to upgrade playbook #4372
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
- name: Verify Host Requirements | ||
hosts: oo_all_hosts | ||
roles: | ||
- openshift_health_checker | ||
vars: | ||
- r_openshift_health_checker_playbook_context: upgrade | ||
post_tasks: | ||
- action: openshift_health_check | ||
args: | ||
checks: | ||
- disk_availability | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The memory requirements in an upgrade should match the requirements of the newer version... but for disk requirements, we probably have at least two scenarios: In-place upgrade The free space requirement should likely be different than for an install, after all there is already data in the cluster (e.g., Docker images and installed RPM packages). I couldn't find any specific guidance about free disk space in the docs. Blue-green I believe the free space requirement for the new hosts should be the same as for a fresh install. We may need a way to tell when an upgrade is in-place and when it is blue-green. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe we could propagate a There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If you're just configuring how the checks run per playbook, you can just add another variable (like There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @sosiouxme Thanks, although I don't suppose there is a straightforward way of determining the type of upgrade that's taking place? All I have found was https://docs.openshift.org/latest/install_config/upgrading/automated_upgrades.html#install-config-upgrading-automated-upgrades There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @mtnbikenc wondering if you have any thoughts on this as well? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @juanvallejo Does a different type of upgrade use a different playbook, or just different parameters? Either way you have something to key off of. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If I understand https://docs.openshift.org/latest/install_config/upgrading/blue_green_deployments.html#blue-green-deployments-preparing-for-upgrade correctly, it looks like in the case of a Therefore, I think that if the upgrade There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sounds right. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Will push updated |
||
- memory_availability |
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.
@sosiouxme shall we limit this also to run only on masters and nodes, or is it enough to filter it on the action plugin level?
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.
@rhcarvalho sorry i missed this. no, it looks like
oo_all_hosts
comes fromg_all_hosts
which is masters/nodes/etcd only so this should be fine. all our playbooks basically need to work the same asbyo/config.yml
with respect to groups.