summaryrefslogtreecommitdiff
path: root/playbooks/common/openshift-etcd
AgeCommit message (Collapse)Author
2017-11-16Playbook Consolidation - openshift-etcdRussell Teague
2017-10-31Add execution times to checkpoint statusRussell Teague
2017-10-23Set the proper external etcd ip address when migrating embeded etcdJan Chaloupka
2017-10-16Merge pull request #5733 from ↵OpenShift Merge Robot
ingvagabund/data-migrate-of-embedded-etcd-not-allowed Automatic merge from submit-queue. data migration of embedded etcd not allowed The v2->v3 migration of an embedded etcd is depricated. Instead, one needs to run: 1. `playbooks/byo/openshift-etcd/embedded2external.yml` to migrate the embedded etcd to an external one (see https://github.com/openshift/openshift-ansible/pull/5672) 2. then `playbooks/byo/openshift-etcd/migrate.yml` to migrate the v2 data to v3 data
2017-10-15Merge pull request #5747 from ↵OpenShift Merge Robot
ingvagabund/set-initial-etcd-cluster-properly-system-container-scale-up Automatic merge from submit-queue. Set initial etcd cluster properly during system container scale up When a cluster is scaled up, the ETCD_INITIAL_CLUSTER must not contain etcd members that are not about to start or are not part of the etcd cluster. Consolidating `initial_etcd_cluster` and `etcd_initial_cluster` as they do exactly the same. Bug: 1500667
2017-10-13set initial etcd cluster properly during system container scale upJan Chaloupka
2017-10-12default groups.oo_new_etcd_to_config to an empty listJan Chaloupka
2017-10-12data migration of embedded etcd not allowedJan Chaloupka
2017-10-11Merge pull request #5672 from ingvagabund/migrate-embedded-etcdOpenShift Merge Robot
Automatic merge from submit-queue. Migrate embedded etcd to external etcd Trello card: https://trello.com/c/9fnBfkT5/528-migrate-embedded-etcd-hosts-to-external-process?menu=filter&filter=label:committed-3.7 Tested on: - [x] embedded etcd -> external rpm etcd - [x] embedded etcd -> external docker etcd One needs to set the `openshift_image_tag` before running the migration to containerized docker etcd.
2017-10-10Merge pull request #5659 from mtnbikenc/fix-checkpointingOpenShift Merge Robot
Automatic merge from submit-queue. Allow checkpoint status to work across all groups Conditionals placed in inventories were not being applied to localhost causing the checkpoint status to not be updated properly. Moving to the `oo_all_hosts` group will correctly pick up the conditional and apply regardless of which group (or host) may have that conditional set.
2017-10-10Remove etcd health checkScott Dodson
2017-10-06migrate embedded etcd to external etcdJan Chaloupka
2017-10-04Merge pull request #5643 from mtnbikenc/refactor-certificatesOpenShift Merge Robot
Automatic merge from submit-queue. Refactor certificate playbooks for checkpointing The recent breakout of the certificate playbooks resulted in the certificate portion of the install to be outside of the component checkpoint. This PR moves the certificate playbooks inside their respective config.yml playbook. Removes an unused tasks file from the openshift_named_certificates role.
2017-10-04Allow checkpoint status to work across all groupsRussell Teague
2017-10-03Move etcd cert playbooks into etcd config pathRussell Teague
2017-10-03Merge pull request #5630 from abutcher/etcd-scaleup-targetOpenShift Merge Robot
Automatic merge from submit-queue. Use etcd_ip when communicating with the cluster as a peer in etcd scaleup. We can't communicate with the hostname here since etcd will be [configured to listen to its IP address](https://github.com/openshift/openshift-ansible/blob/ead22bb1c3b6d6366502b14b97b7aae5605f8a58/roles/etcd/defaults/main.yaml#L69). Fixes https://github.com/openshift/openshift-ansible/issues/5620
2017-10-02Use etcd_ip when communicating with the cluster as a peer in etcd scaleup.Andrew Butcher
2017-10-02Separate certificate playbooks.Andrew Butcher
2017-09-27OpenShift-Ansible Installer CheckpointingRussell Teague
- Added installer_checkpoint role and callback plugin - Added checkpoint 'Start' and 'End' plays to each installation phase Additional items related to enabling proper checkpointing: - Removed openshift_set_hostname and related task (related to 3.0) - Added openshift-hosted entry point playbook - Moved openshift metrics and logging out of openshift_hosted playbook - Moved API Aggregation play to master install
2017-09-26Merge pull request #5470 from ingvagabund/consolidate-etcd-common-roleOpenShift Merge Robot
Automatic merge from submit-queue Consolidate etcd common role The last PR toward a single etcd role
2017-09-26make difference filter output a list for Python3Jan Chaloupka
2017-09-25consolidate etcd_common roleJan Chaloupka
2017-09-24Merge pull request #5495 from abutcher/ca-redeploy-expired-etcdOpenShift Merge Robot
Automatic merge from submit-queue Improve CA redeploy restart logic Expired etcd certificates require special casing around restarts in the certificate redeploy playbooks. When etcd certificates are expired we can't restart masters or nodes. We also can't simply restart etcd because peers also had expired certificates so we must start/stop etcd when we detect expired etcd certificates. `openshift-ca.yml`: * No longer restart master services when etcd certificates were previously expired. * No longer restart node services when master or etcd certificates were previously expired. `etcd-ca.yml`: * No longer restart master services when etcd certificates were previously expired. Tested using [gen_expired_tls.sh](https://gist.github.com/abutcher/bdd20b9d582675d89fb22658689c49e4) on one of my master/etcd hosts to ensure that restart logic changes caused us to skip the right restarts and do a full start/stop of etcd in the `redeploy-certificates.yml` and `redeploy-etcd-certificates.yml` playbooks. Note: When this happens with a cluster and you want to replace all certificates, you can run: `redeploy-etcd-ca.yml`, `redeploy-openshift-ca.yml` (which will both skip restarts) and then run `redeploy-certificates.yml` which will now be able to full/stop start etcd.
2017-09-23Merge pull request #5507 from abutcher/etcd-scaleup-urlsOpenShift Merge Robot
Automatic merge from submit-queue Set master facts prior to adding new etcd client urls to master config. `openshift_master` role dependencies were moved out of the role in https://github.com/openshift/openshift-ansible/pull/5392 so we need to call `openshift_master_facts` prior to patching the master config in etcd scaleup. https://bugzilla.redhat.com/show_bug.cgi?id=1490304
2017-09-22Set master facts prior to adding new etcd client urls to master config.Andrew Butcher
2017-09-22consolidate etcd_migrate roleJan Chaloupka
2017-09-21Do a full stop/start when etcd certificates had expired.Andrew Butcher
2017-09-14Merge pull request #5396 from abutcher/etcd-migrate-openshift-ipScott Dodson
Use openshift.common.ip rather than ansible_default_ipv4 in etcd migration playbook.
2017-09-13Use openshift.common.ip rather than ansible_default_ipv4 in etcd migration ↵Andrew Butcher
playbook.
2017-09-12Update master config with new client urls during etcd scaleup.Andrew Butcher
2017-09-01Standardize etcd entry point playbooksRussell Teague
2017-08-30Merge pull request #5257 from mtnbikenc/fix-scaleupScott Dodson
Move firewall install and fix scaleup playbooks
2017-08-30Merge pull request #5229 from sdodson/fix-containerized-etcdv3-migrationScott Dodson
Fix scaleup on containerized installations
2017-08-29Move firewall install and fix scaleup playbooksRussell Teague
2017-08-25Fix scaleup on containerized installationsScott Dodson
The output from member add had quotes added that caused etcd to fail. Also there were some places that needed to have retries added because containerized start/stop/restart are slower than rpm based installs.
2017-08-25Remove unsupported playbooks and utilitiesRussell Teague
2017-08-22Switch to migrating one host and forming a new clusterScott Dodson
With large datasets where there are many keys with TTLs the expiry was creating a data inconsistency problem. The hope is that by performing the migration once and then forming a new cluster this is avoided. Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1475351
2017-08-11Update etcd scaleup entrypoint includes and use etcd_{hostname,ip} facts for ↵Andrew Butcher
new member registration.
2017-08-02Merge pull request #3043 from jkhelil/scaleup_etcdScott Dodson
Add etcd scaleup playbook
2017-07-27Shut down masters before taking an etcd backupScott Dodson
2017-06-28attach leases via the first master only and only onceJan Chaloupka
- move openshift-etcd/migrate.yml from byo to common and keep just the entry point - replace std_include with essential plays (e.g. no need to detect openshift version) - delegate the ttl re-attaching to the first master
2017-06-20detect etcd service name based on etcd runtime when restartingJan Chaloupka
2017-06-15add etcd scaleup playbookjawed
2017-05-18move etcd upgrade related code into etcd_upgrade roleJan Chaloupka
2017-02-02Restructure certificate redeploy playbooksAndrew Butcher
2017-01-25Standardize add_host: with name and changed_whenRussell Teague
The add_host: task does not change any data on the host and as practice has been configured to changed_when: False. This commit standardizes that usage in the byo and common playbooks. Additionally, taks names are added to each task to improve troubleshooting.
2016-12-12YAML LintingRussell Teague
* Added checks to make ci for yaml linting * Modified y(a)ml files to pass lint checks
2016-10-14Template with_items for upstream ansible-2.2 compat.Andrew Butcher
2016-08-02Refactor etcd certificates roles.Andrew Butcher
2016-06-28Set any_errors_fatal for etcd facts play.Andrew Butcher