summaryrefslogtreecommitdiff
path: root/roles/openshift_node_upgrade
AgeCommit message (Collapse)Author
2017-11-16Combine openshift_node and openshift_node_upgradeMichael Gugino
Currently, having openshift_node and openshift_node_upgrade as two distinct roles has created a duplication across handlers, templates, and some tasks. This commit combines the roles to reduce duplication and bugs encountered by not putting code in both places.
2017-11-15Merge pull request #5968 from mgugino-upstream-stage/version-scrubScott Dodson
Removed old version code
2017-11-15Merge pull request #6094 from ↵OpenShift Merge Robot
mgugino-upstream-stage/syscontainers-docker-login-module Automatic merge from submit-queue. Alternative method to create docker registry auth creds Currently, the command 'docker login' is run when using oreg with authentication. On some hosts, such as hosts configured to use system containers, the docker service is not running. 'docker login' will fail without the docker service running. This commit adds a module to idempotently add credentials to the registry credentials file without the use of 'docker login' Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1511374
2017-11-14Removed old version codeMichael Gugino
This commit removes any references to versions < 1.5/3.5 We assume the version is always greater than or equal to 1.5/3.5.
2017-11-14Alternative method to create docker registry auth credsMichael Gugino
Currently, the command 'docker login' is run when using oreg with authentication. On some hosts, such as hosts configured to use system containers, the docker service is not running. 'docker login' will fail without the docker service running. This commit adds a module to idempotently add credentials to the registry credentials file without the use of 'docker login' Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1511374
2017-11-14Nuke /var/lib/dockershim/sandbox/* while nodes are drainedScott Dodson
2017-10-30Add retry logic to docker auth credentialsMichael Gugino
This commit enables retry on docker login commands. Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1506931
2017-10-11Fix broken debug_levelMichael Gugino
Currently, debug_level is documented as a way to change the debug output level for both masters and nodes. debug_level does not currently have any effect. This commit removes debug_level from openshift_facts and properly sets openshift_master_debug_level and openshift_node_debug_level to the value of debug_level specified in the inventory. This commit also reorganizes some set_fact tasks needed during master upgrades to put all work-around set-facts for undefined variables in one place, allowing for easier cleanup in the future. This includes an entry for openshift_master_debug_level. Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1500164
2017-10-05node: make node service PartOf=openvswitch.service when openshift-sdn is usedDan Williams
Commit 7f805f9a0c41477365dd88b0ac73f0d221bd654a causes the behavior seen in https://bugzilla.redhat.com/show_bug.cgi?id=1453113 because openshift-node is no longer restarted when openvswitch is, due to the change from Requires to Wants. Turns out that making the openshift node service PartOf the OVS service can achieve the same result and ensure openshift-node gets restarted whenever OVS does, which ensures that networking doesn't break underneath the node. Suggested by Giuseppe Scrivano
2017-09-29Fix registry auth variableMichael Gugino
There is currently a bug in registry auth credential creation logic for openshift_node and openshift_node_upgrade This commit fixes the logic.
2017-09-26Remove some reminants of Atomic EnterpriseScott Dodson
2017-09-25Merge pull request #5205 from mgugino-upstream-stage/docker-etc-containers-regsOpenShift Merge Robot
Automatic merge from submit-queue Move additional/block/insecure registires to /etc/containers/... Move additional/block/insecure registires to /etc/containers/registries.conf This commit moves additional/block/insecure registries to /etc/containers/registries.conf and comments existing lines in /etc/sysconfig/docker. Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1460930
2017-09-22Fix registry_auth logic for upgradesMichael Gugino
Currently, the logic for registry authentication is not implemented correctly to account for upgrades of containerized hosts. Additionally, the logic to account for multiple runs of openshift-ansible might cause registry authentication credentials to not be mounted inside of containerized hosts. This commit adds the necessary logic to ensure containerized hosts retain registry credentials. Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1494470
2017-09-21Move additional/block/insecure registires to /etc/containers/registries.confMichael Gugino
This commit moves additional/block/insecure registries to /etc/containers/registries.conf and comments existing lines in /etc/sysconfig/docker. Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1460930
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-08Remove remaining references to openshift-master.serviceClayton Coleman
Prevents playbooks from accidentally restarting the master service.
2017-07-28move common tasks to a single file included by both systemd_units.ymlJan Chaloupka
2017-07-27backport 'Add systemctl daemon-reload handler to openshift_node' #4403 to ↵Jan Chaloupka
openshift_node_upgrade
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-25Set TimeoutStartSec=300Scott Dodson
On nodes with thousands of services it may take a very long time to establish all of the network routing rules. The longest we've seen is about 180s
2017-07-25Revert "set KillMode to process in node service file"Scott Dodson
2017-07-18Add drain retries after 60 second delayScott Dodson
2017-07-18Wrap additional service changes in retriesScott Dodson
2017-07-18Wrap docker stop in retriesScott Dodson
2017-07-18Add retries to node restart handlersScott Dodson
2017-07-18Test docker restart with retries 3 delay 30Steve Milner
2017-07-13set KillMode to process in node service fileJan Chaloupka
2017-07-08Merge pull request #4624 from ↵Jan Chaloupka
ingvagabund/increase-timeout-when-waiting-for-master-and-nodes increase implicit 300s default timeout to explicit 600s
2017-07-03pre-pull images before stopping dockerJan Chaloupka
2017-06-30Fix upgradeScott Dodson
2017-06-30Use default ports for dnsmasq and node dnsScott Dodson
2017-06-30Run dns on the node and use that for dnsmasqScott Dodson
2017-06-28increase implicit 300s default timeout to explicit 600sJan Chaloupka
2017-06-27Merge pull request #4441 from sdodson/retry-docker-startupScott Dodson
Retry docker startup once
2017-06-18Add openshift_node_dnsmasq role to upgradeScott Dodson
2017-06-13Retry docker startup onceScott Dodson
Large environments frequently see docker fail to start up after an upgrade. Not sure why but we can retry once.
2017-06-06Add node unit file on upgradeSteve Milner
When rpm_upgrade is used for upgrading the node's unit file will be overridden. systemd is then reloaded if the files are templated successfully. Ref: https://bugzilla.redhat.com/show_bug.cgi?id=1455843
2017-05-31upgrade: Reload systemd before restartSteve Milner
The installer now lays down updated systemd unit files in /etc/systemd/system/ which override the units that come with the rpms. Because of this we need to reload systemd before restarting services. Ref: https://bugzilla.redhat.com/show_bug.cgi?id=1455843
2017-05-19allow to configure oreg_url specifically for node or master. refs #4233Tobias Brunner
This commit allows to specify imageConfig.format specifically for master or for nodes. One use case of this could be if you want to use customer builder images. In this case imageConfig.format only needs to be changed in the master-config.yml but not in the node-config.yml.
2017-05-19Merge pull request #4094 from ashcrow/status-doesnt-existJan Chaloupka
Ensure good return code for specific until loops
2017-05-18Merge pull request #4165 from sdodson/BZ1450167OpenShift Bot
Merged by openshift-bot
2017-05-17node, systemd: change Requires to Wants for openvswitchGiuseppe Scrivano
Sometimes the node container is not started on a container-engine restart. Use a weaker dependency on openvswitch that is causing this issue Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1451192 Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2017-05-11Reset selinux context on /var/lib/origin/openshift.common.volumesScott Dodson
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1450167
2017-05-09Update systemd units to use proper container service nameSteve Milner
- If using a system container: container-engine - If using a package install: docker Ref: https://bugzilla.redhat.com/show_bug.cgi?id=1448800
2017-05-04Ensure good return code for specific until loopsSteve Milner
2017-05-03System container dockerSteve Milner
This change allows for the use of either the traditional package install of docker OR a system container install of docker. Two new inventory options, openshift_docker_use_system_container and openshift_docker_systemcontainer_image_registry_override, have been added which are be used to install with a system container. By default this option is commented out. One new fact has been added: - docker.service_name: docker by default, container-engine-docker for system container
2017-04-26Add bool for proper conditional handlingRussell Teague
2017-04-21Update swap disable tasksRussell Teague
* Lines are commented out vice being removed * Comment is added indicating why the change happened * Variable openshift_disable_swap added to allow user control
2017-04-21Merge pull request #3943 from sdodson/fix-node-upgrade-masterJan Chaloupka
Stop all services prior to upgrading, start all services after
2017-04-18Stop all services prior to upgrading, start all services afterScott Dodson