summaryrefslogtreecommitdiffstats
path: root/roles/openshift_node/handlers
Commit message (Collapse)AuthorAgeFilesLines
* Sync all openshift.common.use_openshift_sdn uses in yaml filesJan Chaloupka2017-07-261-1/+1
| | | | | | | | | | | 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
* Wrap additional service changes in retriesScott Dodson2017-07-181-0/+5
|
* Add retries to node restart handlersScott Dodson2017-07-181-1/+7
|
* Add daemon-reload handler to openshift_node and notify when /etc/systemd ↵Andrew Butcher2017-06-091-2/+9
| | | | files have been updated.
* Workaround sysctl module issue with py3 by converting task to lineinfile.Andrew Butcher2017-05-191-0/+3
|
* Cleanup ovs file and restart docker on every upgrade.Devan Goodwin2016-11-301-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Refactored to use Ansible systemd moduleRussell Teague2016-11-281-2/+2
| | | | | | * 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
* Check for use_openshift_sdn when restarting openvswitch.Andrew Butcher2016-09-121-2/+1
|
* Pause after restarting openvswitch in containerized upgrade.Devan Goodwin2016-09-121-0/+6
| | | | | | | | 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.
* Fixed openvswitch not upgrading.Devan Goodwin2016-05-121-3/+4
| | | | | | | | | | 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.
* improve ordering of systemd unitsJason DeTiberus2016-03-141-3/+1
|
* Correctly set the image tag for containerized installs (and upgrades)Brenton Leanhardt2016-03-031-0/+3
|
* Fix restart handlers.Andrew Butcher2015-12-261-1/+1
|
* cleanup naming for skipping master and node restart handlersJason DeTiberus2015-10-231-1/+1
|
* Avoid hardcoded 30s pausesJason DeTiberus2015-10-221-0/+1
| | | | - refactor node and master restart handlers to avoid 30s pauses
* Atomic Enterprise related changes.Avesh Agarwal2015-08-261-2/+2
|
* Add options to configure docker registriesLénaïc Huard2015-08-261-0/+3
|
* Templatize configs and 0.5.2 changesJason DeTiberus2015-06-101-1/+0
| | | | | | | | | | | | | | | | | | | | | | - 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
* openshift_facts role/module refactor default settingsJason DeTiberus2015-04-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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
* create openshift_common roleJason DeTiberus2015-02-241-1/+1
| | | | | | | | | | | - 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
* - Rename minion to nodeJhon Honce2015-02-161-0/+4
- Update playbooks to support latest code