summaryrefslogtreecommitdiff
path: root/playbooks/common
AgeCommit message (Collapse)Author
2018-01-23Merge pull request #6812 from sdodson/bz1396350OpenShift Merge Robot
Automatic merge from submit-queue. Ensure that node names are lowerecased before matching The name field is always lowercase whereas the nodename may not have been in the past. Ensure that we lowercase it before looking for matching nodes. Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1396350
2018-01-22Install base_packages earlierMichael Gugino
Currently, openshift_facts requires pyyaml to be installed. This package is installed via init/base_packages.yml, which is currently called after init/facts.yml. This results in a situation where installs will fail due to missing python dependency. This commit splits init/facts.yml into two, and allows base_packages.yml to be run before the openshift_facts.py plugin is executed.
2018-01-22Ensure that node names are lowerecased before matchingScott Dodson
The name field is always lowercase whereas the nodename may not have been in the past. Ensure that we lowercase it before looking for matching nodes. Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1396350
2018-01-18Fix node scaleup playsMichael Gugino
Currently, users have no way to run preqrequisites.yml on just newly added nodes during scaleup. This commit ensures only the new nodes are changed during scaleup as well as ensure prerequisites are run.
2018-01-17Add call to 3.8 playbook in 3.9 upgradeScott Dodson
2018-01-17Remove 3.8 and 3.9 specific steps right nowScott Dodson
2018-01-17Exclude 3.9 packages during 3.8 upgradeScott Dodson
There are some obsoletes in 3.9 packages which lead yum to upgrade directly from 3.7 to 3.9 when you ask for 3.8 packages while 3.9 repos are enabled. Since we'd like to allow people to run one playbook to upgrade from 3.7 to 3.8 to 3.9 we need to exclude those packages when upgrading to 3.8
2018-01-17fix typosScott Dodson
2018-01-15fix bug 1534271MENG Weihua
2018-01-11Install web console on upgradeSamuel Padgett
2018-01-10Merge pull request #5080 from sdodson/drain-timeoutsOpenShift Merge Robot
Automatic merge from submit-queue. Add the ability to specify a timeout for node drain operations A timeout to wait for nodes to drain pods can be specified to ensure that the upgrade continues even if nodes fail to drain pods in the allowed time. The default value of 0 will wait indefinitely allowing the admin to investigate the root cause and ensuring that disruption budgets are respected. In practice the `oc adm drain` command will eventually error out, at least that's what we've seen in our large online clusters, when that happens a second attempt will be made to drain the nodes, if it fails again it will abort the upgrade for that node or for the entire cluster based on your defined `openshift_upgrade_nodes_max_fail_percentage`. `openshift_upgrade_nodes_drain_timeout=0` is the default and will wait until all pods have been drained successfully `openshift_upgrade_nodes_drain_timeout=600` would wait for 600s before moving on to the tasks which would forcefully stop pods such as stopping docker, node, and openvswitch.
2018-01-10Merge pull request #6666 from sdodson/fix_client_binaryScott Dodson
Ensure that openshift_facts role is imported whenever we rely on
2018-01-10Merge pull request #6647 from ↵Scott Dodson
vrutkovs/3.9-upgrades-remove-openshift.common.service_type 3.9 upgrade: remove openshift.common.service_type
2018-01-10Add the ability to specify a timeout for node drain operationsScott Dodson
2018-01-10Merge pull request #6674 from mgugino-upstream-stage/remove-becomes2Scott Dodson
Remove become statements
2018-01-09Chmod temp dirs created on localhostMichael Gugino
After remove become:no statements on local_action tasks, we need to ensure that the proper file permssions are applied to local temp directories. This reason for this is that the 'fetch' module does not use 'become' for the localhost, just the remote host. Additionally, users may not wish for the localhost to become during a fetch. local_action will execute with whatever permissions are specified in inventory or via cli.
2018-01-09Remove become statementsMichael Gugino
This commit removes become:no statements that break the installer in various ways.
2018-01-09Limit host group scope on control-plane upgradesMichael Gugino
This commit limits common init code to exclude oo_nodes_to_config during upgrade_control_plane runs.
2018-01-09Ensure that openshift_facts role is imported whenever we rely onScott Dodson
openshift_client_binary
2018-01-08Merge pull request #6549 from mgugino-upstream-stage/node-meta-depends2OpenShift Merge Robot
Automatic merge from submit-queue. Remove last of openshift_node role meta-depends Remove last non-taskless meta-depends from openshift_node role.
2018-01-083.9 upgrade: remove openshift.common.service_typeVadim Rutkovsky
See eb6b20fc9183cc2aae424c72efd1191b99110a93
2018-01-05Migrate to import_role for static role inclusionScott Dodson
In Ansible 2.2, the include_role directive came into existence as a Tech Preview. It is still a Tech Preview through Ansible 2.4 (and in current devel branch), but with a noteable change. The default behavior switched from static: true to static: false because that functionality moved to the newly introduced import_role directive (in order to stay consistent with include* being dynamic in nature and `import* being static in nature). The dynamic include is considerably more memory intensive as it will dynamically create a role import for every host in the inventory list to be used. (Also worth noting, there is at the time of this writing an object allocation inefficiency in the dynamic include that can in certain situations amplify this effect considerably) This change is meant to mitigate the pressure on memory for the Ansible control host. We need to evaluate where it makes sense to dynamically include roles and revert back to dynamic inclusion if and where it makes sense to do so.
2018-01-02Remove last of openshift_node role meta-dependsMichael Gugino
Remove last non-taskless meta-depends from openshift_node role. Remove variable 'openshift_node_upgrade_in_progress' as it is no longer used.
2017-12-21Remove references to deployment_typeMichael Gugino
Move openshift_deployment_type check into sanity_check action plugin. Remove compatibility for deployment_type. deployment_type has been deprecated for some time now.
2017-12-20Move validate_hosts to prerequisites.ymlMichael Gugino
Move more checks outside of init/main.yml for speeding up upgrades and other operational plays that need to run.
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-18Relocate filter plugins to lib_utilsMichael Gugino
This commit relocates filter_plugings to lib_utils, changes the namespacing to prevent unintended use of older versions that may be present in filter_plugins/ directory on existing installs. Add lib_utils to meta depends for roles Also consolidate some plugins into lib_utils from various other areas. Update rpm spec, obsolete plugin rpms.
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-12Refactor upgrade codepaths step 1Michael Gugino
This commit refactors some upgrade code paths. Touched areas are: 1) Reduces usage of 'oo_all_hosts' in various places, especially when running upgrade_control_plane. 2) Reuses common code across the various upgrade* playbooks. 3) Moves docker upgrade checks into container_runtime_role. 4) Combines smaller playbooks and plays to reduce file sprawl.
2017-12-12Merge pull request #6335 from kwoodson/node_groups_refactorScott Dodson
Node group management update.
2017-12-11Merge pull request #6414 from mgugino-upstream-stage/remove-embedded-etcdOpenShift Merge Robot
Automatic merge from submit-queue. Remove unneeded embedded etcd logic Removing some remaining embedded etcd facts except for the migration plays.
2017-12-11Changing the node group format to a list.Kenny Woodson
2017-12-09Add openshift_facts to upgrade plays for service_typeMichael Gugino
Bring openshift_facts into scope for plays that utilize openshift_service_type as it is defined there.
2017-12-08Remove unneeded embedded etcd logicMichael Gugino
Removing some remaining embedded etcd facts except for the migration plays.
2017-12-08Merge pull request #6278 from mgugino-upstream-stage/service_typeMichael Gugino
Remove openshift.common.service_type
2017-12-07Merge pull request #6371 from mtnbikenc/include-to-import_playbookOpenShift Merge Robot
Automatic merge from submit-queue. Include Deprecation: Convert to import_playbook * Converts playbooks/ to use `import_playbook`. * Updates remaining `include:` tasks to `include_tasks:` Trello: https://trello.com/c/ZTyZu3UM/484-3-ansible-24-include-deprecation
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-12-07Merge pull request #6380 from sdodson/oc-admScott Dodson
Remove all uses of openshift.common.admin_binary
2017-12-07Include Deprecation: Convert to import_playbookRussell Teague
2017-12-07Merge pull request #6365 from mtnbikenc/consolidate-etcd-upgradeRussell Teague
Playbook Consolidation - etcd Upgrade
2017-12-07Remove all uses of openshift.common.admin_binaryScott Dodson
Replace with `oc adm`
2017-12-06Playbook Consolidation - byo/config.ymlRussell Teague
2017-12-05Playbook Consolidation - etcd UpgradeRussell Teague
2017-12-05Merge pull request #6154 from mtnbikenc/consolidate-openshift-loggingScott Dodson
Playbook Consolidation - openshift-logging
2017-12-04Merge pull request #6297 from mgugino-upstream-stage/crt_roleScott Dodson
Implement container runtime role
2017-12-04Merge pull request #6324 from mtnbikenc/consolidate-redeploy-certificatesOpenShift Merge Robot
Automatic merge from submit-queue. Playbook Consolidation - Redeploy Certificates This PR moves the certificate redeploy playbooks out of {byo,common}/openshift-cluster and into their respective component areas. - playbooks/openshift-etcd (redeploy-certificates.yml, redeploy-ca.yml) - playbooks/openshift-master (redeploy-certificates.yml, redeploy-openshift-ca.yml) - playbooks/openshift-node (redeploy-certificates.yml) - playbooks/openshift-hosted (redeploy-registry-certificates.yml, redeploy-router-certificates.yml) playbooks/byo/openshift-cluster/redeploy-certificates.yml was moved to playbooks/redeploy-certificates.yml Trello: https://trello.com/c/zCz6RIHM/578-2-playbook-consolidation-openshift-cluster-redeploy-certificates
2017-12-02Merge pull request #6321 from sdodson/v3_9Scott Dodson
Add v3.9 support
2017-12-01Merge pull request #6069 from kwoodson/upgrade_scale_groupsScott Dodson
Initial upgrade for scale groups.
2017-12-01Implement container runtime roleMichael Gugino