summaryrefslogtreecommitdiffstats
path: root/playbooks/common/openshift-cluster/upgrades/upgrade_control_plane.yml
Commit message (Collapse)AuthorAgeFilesLines
* Migrate to import_role for static role inclusionScott Dodson2018-01-051-3/+3
| | | | | | | | | | | | | | | | | | | | | | | 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 openshift.common.{is_atomic|is_containerized}Michael Gugino2017-12-201-9/+9
| | | | | 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-181-4/+4
| | | | | | | | | | | | | | 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-141-9/+9
|
* Remove unneeded embedded etcd logicMichael Gugino2017-12-081-14/+0
| | | | | Removing some remaining embedded etcd facts except for the migration plays.
* Merge pull request #6371 from mtnbikenc/include-to-import_playbookOpenShift Merge Robot2017-12-071-8/+8
|\ | | | | | | | | | | | | | | | | | | 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-071-8/+8
| |
* | Merge pull request #6380 from sdodson/oc-admScott Dodson2017-12-071-1/+1
|\ \ | |/ |/| Remove all uses of openshift.common.admin_binary
| * Remove all uses of openshift.common.admin_binaryScott Dodson2017-12-071-1/+1
| | | | | | | | Replace with `oc adm`
* | Playbook Consolidation - etcd UpgradeRussell Teague2017-12-051-2/+2
|/
* Implement container runtime roleMichael Gugino2017-12-011-4/+0
|
* Correct usage of include_roleRussell Teague2017-11-271-1/+1
| | | | Switch to import_role for some required roles.
* Include Deprecation - openshift-masterRussell Teague2017-11-221-2/+2
|
* Playbook Consolidation - openshift-masterRussell Teague2017-11-221-2/+2
|
* Combine openshift_node and openshift_node_upgradeMichael Gugino2017-11-161-5/+5
| | | | | | | | | 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.
* Merge pull request #6084 from mgugino-upstream-stage/combine-master-upgradeOpenShift Merge Robot2017-11-151-56/+6
|\ | | | | | | | | | | | | | | | | | | | | | | Automatic merge from submit-queue. Combine master upgrade play with role Currently, there are plays importing tasks directly from openshift_master role. This has caused numerous bugs and code duplicaiton in the past. This commit combines the upgrade into openshift_master role utilizing include_role syntax.
| * Combine master upgrade play with roleMichael Gugino2017-11-091-56/+6
| | | | | | | | | | | | | | | | | | Currently, there are plays importing tasks directly from openshift_master role. This has caused numerous bugs and code duplicaiton in the past. This commit combines the upgrade into openshift_master role utilizing include_role syntax.
* | Merge pull request #5968 from mgugino-upstream-stage/version-scrubScott Dodson2017-11-151-1/+0
|\ \ | | | | | | Removed old version code
| * | Removed old version codeMichael Gugino2017-11-141-1/+0
| |/ | | | | | | | | | | 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.
* / Allow disabling authorization migration checkScott Dodson2017-11-141-17/+19
|/
* Merge pull request #5796 from mgugino-upstream-stage/journald-masters-upgradesOpenShift Merge Robot2017-10-241-0/+3
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Automatic merge from submit-queue. Ensure upgrades apply latest journald settings Currently, existing clusters might not have journald configurations applied. This may result in a rate- limiting of important log messages on openshift-masters. This commit ensures that journald settings are applied during the upgrade process openshif-masters. Fixes: https://github.com/openshift/openshift-ansible/issues/5642
| * Ensure upgrades apply latest journald settingsMichael Gugino2017-10-181-0/+3
| | | | | | | | | | | | | | | | | | | | | | Currently, existing clusters might not have journald configurations applied. This may result in a rate- limiting of important log messages on openshift-masters. This commit ensures that journald settings are applied during the upgrade process openshif-masters. Fixes: https://github.com/openshift/openshift-ansible/issues/5642
* | verstion_gte seems unreliable on containerized installsScott Dodson2017-10-201-5/+6
| |
* | Retry reconcile in case of error and give up eventuallySimo Sorce2017-10-201-0/+6
|/ | | | | | Handles spurious failures and does not get mad if it just cannot do it. Signed-off-by: Simo Sorce <simo@redhat.com>
* Fix broken debug_levelMichael Gugino2017-10-111-1/+0
| | | | | | | | | | | | | | | | | | | | 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
* Force reconciliation of role for 3.6Simo Sorce2017-10-101-0/+39
| | | | | | | | This is needed because in 3.6 we cannot reconcile non-cluster roles in the bootstrap reconciliation code. In 3.7 this is taken care of in code. Signed-off-by: Simo Sorce <simo@redhat.com>
* make difference filter output a list for Python3Jan Chaloupka2017-09-261-2/+2
|
* Do not reconcile in >= 3.7Simo Sorce2017-09-201-4/+3
| | | | | | | | Starting with 3.7 we use kube's RBAC which happens to do a forceful reconcile at server startup. Explicit reconciles are not needed anymore. Also drop obsolete version checks and simplify 'when' conditional Signed-off-by: Simo Sorce <simo@redhat.com>
* Don't assume storage_migration control variables are already booleanMark Chappell2017-09-131-9/+9
| | | | | | | | | | | | openshift_upgrade_pre_storage_migration_enabled openshift_upgrade_pre_storage_migration_fatal openshift_upgrade_post_storage_migration_enabled openshift_upgrade_post_storage_migration_enabled because the 4 variables are not already defaulted/evaluated there's no guarantee that they're actually the boolean type at this point. Example: if they're passed in on the command line
* Merge pull request #5247 from mgugino-upstream-stage/fix-master-upgradesOpenShift Bot2017-08-301-4/+1
|\ | | | | Merged by openshift-bot
| * Fix openshift_master upgradeMichael Gugino2017-08-291-4/+1
| | | | | | | | | | | | | | | | Currently, openshift_master upgrade play imports tasks directly from the openshift_master role. This method does not honor role defaults. This commit changes sets openshift_master_config_dir if undefined.
* | Test: Fail on entry point playbooks in commonRussell Teague2017-08-291-1/+1
|/
* Disable old openshift-master.service on upgradeClayton Coleman2017-08-081-0/+3
|
* Fix incorrect delegate_to in control plane upgradeScott Dodson2017-07-271-1/+1
|
* Allow storage migrations to be optional and/or non fatalScott Dodson2017-07-241-8/+25
| | | | | | | | Allow configuration of these options, these are their defaults openshift_upgrade_pre_storage_migration_enabled=true openshift_upgrade_post_storage_migration_enabled=true openshift_upgrade_pre_storage_migration_fatal=true openshift_upgrade_post_storage_migration_fatal=false
* Add drain retries after 60 second delayScott Dodson2017-07-181-0/+4
|
* Merge pull request #4750 from jkaurredhat/drain_upgrade1.6Scott Dodson2017-07-141-1/+1
|\ | | | | Upgrade fails when "Drain Node for Kubelet upgrade"
| * Upgrade fails when "Drain Node for Kubelet upgrade"jkaurredhat2017-07-131-1/+1
| | | | | | | | | | | | Fixes : https://bugzilla.redhat.com/show_bug.cgi?id=1468572 Signed-off-by: jkaurredhat <jkaur@redhat.com>
* | Error upgrading control_plane when user is not system:adminjkaurredhat2017-07-071-1/+1
|/ | | | Signed-off-byr jkaurredhat <jkaur@redhat.com>
* Merge pull request #4533 from sdodson/storage-migration-fixesOpenShift Bot2017-07-031-6/+12
|\ | | | | Merged by openshift-bot
| * Fixes to storage migrationScott Dodson2017-06-221-6/+12
| |
* | Run dns on the node and use that for dnsmasqScott Dodson2017-06-301-1/+1
|/
* Merge pull request #4292 from sdodson/push-via-dnsOpenShift Bot2017-06-201-0/+1
|\ | | | | Merged by openshift-bot
| * Add openshift_node_dnsmasq role to upgradeScott Dodson2017-06-181-0/+1
| |
* | Temporarilly only migrate jobs as we were beforeScott Dodson2017-06-191-2/+2
|/
* Run storage upgrade pre and post master upgradeRussell Teague2017-06-181-0/+18
|
* Merge pull request #4252 from sdodson/tolerate-node-upgrade-failureOpenShift Bot2017-06-061-2/+2
|\ | | | | Merged by openshift-bot
| * Add separate variables for control plane nodesScott Dodson2017-05-221-2/+2
| |
| * Tolerate failures in the node upgrade playbookScott Dodson2017-05-191-1/+1
| |
* | allow to configure oreg_url specifically for node or master. refs #4233Tobias Brunner2017-05-191-2/+2
|/ | | | | | | | | 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.