summaryrefslogtreecommitdiff
path: root/roles/openshift_node/handlers
AgeCommit message (Collapse)Author
2017-12-20Remove openshift.common.{is_atomic|is_containerized}Michael Gugino
We set these variables using facts in init, no need to duplicate the logic all around the codebase.
2017-12-14Deprecate using Ansible tests as filtersRussell Teague
2017-12-12Refactor node upgrade to include less serial tasksMichael Gugino
This commit moves the pulling of images, packages, and updating config files into a non-serialized play. The serialized play is now in charge of marking unschedulable, draining, stopping and restarting services, and marking schedulable. If rpm install / container download takes 60s per host, this will save 3 hours and 10 minutes at 200 hosts per cluster and forks of 20 hosts.
2017-12-07Remove openshift.common.service_typeMichael Gugino
This commit removes openshift.common.service_type in favor of openshift_service_type. This commit also removes r_openshift_excluder_service_type from plays in favor of using the role's defaults.
2017-11-27Combine openshift_node and openshift_node_dnsmasqMichael Gugino
This commit combines these two roles. This will prevent openshift_node_facts from running twice.
2017-10-17Do not remove files for bootstrap if resolv or dns.Kenny Woodson
2017-09-16Merge pull request #5334 from juanluisvaladas/move-sysctlOpenShift Merge Robot
Automatic merge from submit-queue Move sysctl.conf customizations to a separate file Move them from /etc/sysctl.conf to /etc/sysctl.d/99-openshift.conf This is a good idea becuase: 1- /etc/sysctl.conf is evaluated later, so it can easily be overwritten by previous customizations 2- It's likely that there is an agent like puppet monitoring this file 3- It's easier to know what's being changed by OpenShift
2017-09-08Move sysctl.conf customizations to a separate fileJuan Luis de Sousa-Valadas Castaño
Move them from /etc/sysctl.conf to /etc/sysctl.d/99-openshift.conf
2017-09-06Remove openshift-commonMichael Gugino
Most of this role's purpose was to set facts. The vast majority of these facts were simply redefining user-supplied variables. This commit also removes various artifacts leftover from previous versions, as well as variables that seem to be entirely unused.
2017-08-29Merging openshift_node with openshift bootstrap.Kenny Woodson
2017-07-26Sync all openshift.common.use_openshift_sdn uses in yaml filesJan Chaloupka
Most occurrences are in a form: ```yaml openshift.common.use_openshift_sdn | default(true) | bool ``` Let's make all occurences this way given the use_openshift_sdn is set to true anyway. See https://github.com/openshift/openshift-ansible/blob/0c350dcc7d06d62be5ba3a8e468dff85cdd96dd7/roles/openshift_facts/library/openshift_facts.py#L2035
2017-07-18Wrap additional service changes in retriesScott Dodson
2017-07-18Add retries to node restart handlersScott Dodson
2017-06-09Add daemon-reload handler to openshift_node and notify when /etc/systemd ↵Andrew Butcher
files have been updated.
2017-05-19Workaround sysctl module issue with py3 by converting task to lineinfile.Andrew Butcher
2016-11-30Cleanup ovs file and restart docker on every upgrade.Devan Goodwin
In 3.3 one of our services lays down a systemd drop-in for configuring Docker networking to use lbr0. In 3.4, this has been changed but the file must be cleaned up manually by us. However, after removing the file docker requires a restart. This had big implications particularly in containerized environments where upgrade is a very fragile series of upgrading and service restarts. To avoid double docker restarts, and thus double service restarts in containerized environments, this change does the following: - Skip restart during docker upgrade, if it is required. We will restart on our own later. - Skip containerized service restarts when we upgrade the services themselves. - Clean shutdown of all containerized services. - Restart Docker. (always, previously this only happened if it needed an upgrade) - Ensure all containerized services are restarted. - Restart rpm node services. (always) - Mark node schedulable again. At the end of this process, docker0 should be back on the system.
2016-11-28Refactored to use Ansible systemd moduleRussell Teague
* Ansible systemd module used in place of service module * Refactored command tasks which are no longer necessary * Applying rules from openshift-ansible Best Practices Guide
2016-09-12Check for use_openshift_sdn when restarting openvswitch.Andrew Butcher
2016-09-12Pause after restarting openvswitch in containerized upgrade.Devan Goodwin
The openvswitch restart appears to hang the node container running briefly, if you try to restart node too quickly it will fail complaining that the node container name is still in use. Pausing after openvswitch restart allows the existing node container to catch up and then shutdown cleanly.
2016-05-12Fixed openvswitch not upgrading.Devan Goodwin
Problem was a missing restart as systemd file did not change, so no notification was triggered. Added a notification on a file that contains the image version which does change. This exposed a bug where openvswitch shuts down the node and you return to no functioning nodes. Fixed by reordering the handlers so openvswitch restarts first.
2016-03-14improve ordering of systemd unitsJason DeTiberus
2016-03-03Correctly set the image tag for containerized installs (and upgrades)Brenton Leanhardt
2015-12-26Fix restart handlers.Andrew Butcher
2015-10-23cleanup naming for skipping master and node restart handlersJason DeTiberus
2015-10-22Avoid hardcoded 30s pausesJason DeTiberus
- refactor node and master restart handlers to avoid 30s pauses
2015-08-26Atomic Enterprise related changes.Avesh Agarwal
2015-08-26Add options to configure docker registriesLénaïc Huard
2015-06-10Templatize configs and 0.5.2 changesJason DeTiberus
- Templatize node config - Templatize master config - Integrated sdn changes - Updates for openshift_facts - Added support for node, master and sdn related changes - registry_url - added identity provider facts - Removed openshift_sdn_* roles - Install httpd-tools if configuring htpasswd auth - Remove references to external_id - Setting external_id interferes with nodes associating with the generated node object when pre-registering nodes. - osc/oc and osadm/oadm binary detection in openshift_facts Misc Changes: - make non-errata puddle default for byo example - comment out master in list of nodes in inventory/byo/hosts - remove non-error errors from fluentd_* roles - Use admin kubeconfig instead of openshift-client
2015-04-03openshift_facts role/module refactor default settingsJason DeTiberus
- Add openshift_facts role and module - Created new role openshift_facts that contains an openshift_facts module - Refactor openshift_* roles to use openshift_facts instead of relying on defaults - Refactor playbooks to use openshift_facts - Cleanup inventory group_vars - Update defaults - update openshift_master role firewall defaults - remove etcd peer port, since we will not be supporting clustered embedded etcd - remove 8444 since console now runs on the api port by default - add 8444 and 7001 to disabled services to ensure removal if updating - Add new role os_env_extras_node that is a subset of the docker role - previously, we were starting/enabling docker which was causing issues with some installations - Does not install or start docker, since the openshift-node role will handle that for us - Only adds root to the dockerroot group - Update playbooks to use ops_env_extras_node role instead of docker role - os_firewall bug fixes - ignore ip6tables for now, since we are not configuring any ipv6 rules - if installing package do a daemon-reload before starting/enabling service - Add aws support to bin/cluster - Add list action to bin/cluster - Add update action to bin/cluster - cleanup some stray debug statements - some variable renaming for clarity
2015-02-24create openshift_common roleJason DeTiberus
- move common openshift logic into openshift_common - set openshift_common as a dependency for openshift_node and openshift_master - rename role variables to openshift_* to be more descriptive - start recording local_facts on the openshift hosts - clean up firewalld config to be a bit more dry - Update firewall ports for https, make sure http rules are removed - Replace references to ansible_eth0.ipv4.address with ansible_default_ipv4.address
2015-02-16- Rename minion to nodeJhon Honce
- Update playbooks to support latest code