summaryrefslogtreecommitdiffstats
path: root/playbooks/common
Commit message (Collapse)AuthorAgeFilesLines
...
* | | Merge pull request #6812 from sdodson/bz1396350OpenShift Merge Robot2018-01-231-1/+1
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * | Ensure that node names are lowerecased before matchingScott Dodson2018-01-221-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Install base_packages earlierMichael Gugino2018-01-221-1/+2
| |/ |/| | | | | | | | | | | | | | | | | | | | | 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.
* | Fix node scaleup playsMichael Gugino2018-01-184-4/+4
|/ | | | | | | | 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.
* Add call to 3.8 playbook in 3.9 upgradeScott Dodson2018-01-175-6/+53
|
* Remove 3.8 and 3.9 specific steps right nowScott Dodson2018-01-175-27/+0
|
* Exclude 3.9 packages during 3.8 upgradeScott Dodson2018-01-172-2/+2
| | | | | | | | 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
* fix typosScott Dodson2018-01-172-2/+2
|
* fix bug 1534271MENG Weihua2018-01-151-4/+4
|
* Install web console on upgradeSamuel Padgett2018-01-111-3/+9
|
* Merge pull request #5080 from sdodson/drain-timeoutsOpenShift Merge Robot2018-01-104-11/+29
|\ | | | | | | | | | | | | | | | | | | 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.
| * Add the ability to specify a timeout for node drain operationsScott Dodson2018-01-104-11/+29
| |
* | Merge pull request #6666 from sdodson/fix_client_binaryScott Dodson2018-01-103-3/+8
|\ \ | | | | | | Ensure that openshift_facts role is imported whenever we rely on
| * | Ensure that openshift_facts role is imported whenever we rely onScott Dodson2018-01-093-3/+8
| | | | | | | | | | | | openshift_client_binary
* | | Merge pull request #6647 from ↵Scott Dodson2018-01-101-4/+4
|\ \ \ | | | | | | | | | | | | | | | | vrutkovs/3.9-upgrades-remove-openshift.common.service_type 3.9 upgrade: remove openshift.common.service_type
| * | | 3.9 upgrade: remove openshift.common.service_typeVadim Rutkovsky2018-01-081-4/+4
| | |/ | |/| | | | | | | See eb6b20fc9183cc2aae424c72efd1191b99110a93
* | | Merge pull request #6674 from mgugino-upstream-stage/remove-becomes2Scott Dodson2018-01-102-4/+5
|\ \ \ | | | | | | | | Remove become statements
| * | | Chmod temp dirs created on localhostMichael Gugino2018-01-091-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | | Remove become statementsMichael Gugino2018-01-092-4/+0
| | |/ | |/| | | | | | | | | | This commit removes become:no statements that break the installer in various ways.
* / | Limit host group scope on control-plane upgradesMichael Gugino2018-01-095-0/+24
|/ / | | | | | | | | This commit limits common init code to exclude oo_nodes_to_config during upgrade_control_plane runs.
* | Merge pull request #6549 from mgugino-upstream-stage/node-meta-depends2OpenShift Merge Robot2018-01-082-6/+0
|\ \ | |/ |/| | | | | | | | | | | Automatic merge from submit-queue. Remove last of openshift_node role meta-depends Remove last non-taskless meta-depends from openshift_node role.
| * Remove last of openshift_node role meta-dependsMichael Gugino2018-01-022-6/+0
| | | | | | | | | | | | | | | | Remove last non-taskless meta-depends from openshift_node role. Remove variable 'openshift_node_upgrade_in_progress' as it is no longer used.
* | Migrate to import_role for static role inclusionScott Dodson2018-01-056-11/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Remove references to deployment_typeMichael Gugino2017-12-215-9/+4
| | | | | | | | | | | | | | Move openshift_deployment_type check into sanity_check action plugin. Remove compatibility for deployment_type. deployment_type has been deprecated for some time now.
* | Move validate_hosts to prerequisites.ymlMichael Gugino2017-12-201-3/+0
|/ | | | | | Move more checks outside of init/main.yml for speeding up upgrades and other operational plays that need to run.
* Remove openshift.common.{is_atomic|is_containerized}Michael Gugino2017-12-2010-20/+20
| | | | | We set these variables using facts in init, no need to duplicate the logic all around the codebase.
* Relocate filter plugins to lib_utilsMichael Gugino2017-12-1812-17/+8
| | | | | | | | | | | | | | 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.
* Deprecate using Ansible tests as filtersRussell Teague2017-12-1410-30/+36
|
* Refactor node upgrade to include less serial tasksMichael Gugino2017-12-121-11/+22
| | | | | | | | | | | | | 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.
* Refactor upgrade codepaths step 1Michael Gugino2017-12-1227-1342/+339
| | | | | | | | | | | | | | | | 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.
* Merge pull request #6335 from kwoodson/node_groups_refactorScott Dodson2017-12-121-14/+21
|\ | | | | Node group management update.
| * Changing the node group format to a list.Kenny Woodson2017-12-111-14/+21
| |
* | Merge pull request #6414 from mgugino-upstream-stage/remove-embedded-etcdOpenShift Merge Robot2017-12-111-14/+0
|\ \ | |/ |/| | | | | | | | | | | Automatic merge from submit-queue. Remove unneeded embedded etcd logic Removing some remaining embedded etcd facts except for the migration plays.
| * Remove unneeded embedded etcd logicMichael Gugino2017-12-081-14/+0
| | | | | | | | | | Removing some remaining embedded etcd facts except for the migration plays.
* | Add openshift_facts to upgrade plays for service_typeMichael Gugino2017-12-097-0/+13
|/ | | | | Bring openshift_facts into scope for plays that utilize openshift_service_type as it is defined there.
* Merge pull request #6278 from mgugino-upstream-stage/service_typeMichael Gugino2017-12-0812-33/+29
|\ | | | | Remove openshift.common.service_type
| * Remove openshift.common.service_typeMichael Gugino2017-12-0712-33/+29
| | | | | | | | | | | | | | | | 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.
* | Merge pull request #6371 from mtnbikenc/include-to-import_playbookOpenShift Merge Robot2017-12-0718-199/+199
|\ \ | |/ |/| | | | | | | | | | | | | | | 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
| * Include Deprecation: Convert to import_playbookRussell Teague2017-12-0718-199/+199
| |
* | Merge pull request #6380 from sdodson/oc-admScott Dodson2017-12-074-4/+4
|\ \ | |/ |/| Remove all uses of openshift.common.admin_binary
| * Remove all uses of openshift.common.admin_binaryScott Dodson2017-12-074-4/+4
| | | | | | | | Replace with `oc adm`
* | Merge pull request #6365 from mtnbikenc/consolidate-etcd-upgradeRussell Teague2017-12-079-161/+2
|\ \ | | | | | | Playbook Consolidation - etcd Upgrade
| * | Playbook Consolidation - etcd UpgradeRussell Teague2017-12-059-161/+2
| |/
* / Playbook Consolidation - byo/config.ymlRussell Teague2017-12-061-44/+0
|/
* Merge pull request #6154 from mtnbikenc/consolidate-openshift-loggingScott Dodson2017-12-052-38/+1
|\ | | | | Playbook Consolidation - openshift-logging
| * Playbook Consolidation - openshift-loggingRussell Teague2017-11-302-38/+1
| |
* | Merge pull request #6297 from mgugino-upstream-stage/crt_roleScott Dodson2017-12-0412-63/+1
|\ \ | | | | | | Implement container runtime role
| * | Implement container runtime roleMichael Gugino2017-12-0112-63/+1
| | |
* | | Merge pull request #6324 from mtnbikenc/consolidate-redeploy-certificatesOpenShift Merge Robot2017-12-0412-739/+0
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * | | Playbook Consolidation - Redeploy CertificatesRussell Teague2017-12-0112-739/+0
| | | |