summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-01-10Write guide on setting up PVs with CinderTomas Sedovic
2018-01-10Allow using server names in openstack dynamic invTomas Sedovic
When deploying on OpenStack with internal DNS configured, this will set `openshift_hostname` to the Nova server name instead of its IP address. Without those two matching, the OpenStack cloud provider configuration will fail and the OpenShift nodes will not start.
2018-01-10Specify the Cinder version in the inventoryTomas Sedovic
As described in[1], OpenShift currently only works with Block Storage API v2 and the version autodetection is failing to figure that out. [1]: https://github.com/openshift/openshift-docs/issues/5730
2018-01-10Add documentation exampleJoel Pearson
2018-01-10Add blockstorage version for openstackJoel Pearson
2018-01-09Merge pull request #5853 from imcsk8/flannel-iptablesOpenShift Merge Robot
Automatic merge from submit-queue. Add iptables rules for flannel [WIP] When using flannel there are iptables rules that need to be added as stated here: https://access.redhat.com/documentation/en-us/reference_architectures/2017/html-single/deploying_red_hat_openshift_container_platform_3.4_on_red_hat_openstack_platform_10/#run_ansible_installer Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1493955
2018-01-09Merge pull request #6658 from mgugino-upstream-stage/containerized_boolsOpenShift Merge Robot
Automatic merge from submit-queue. ensure containerized bools are cast
2018-01-09Merge pull request #6646 from giuseppe/fix-container-engine-authOpenShift Merge Robot
Automatic merge from submit-queue. container-engine: move registry_auth.yml before pull so that the atomic pull takes into account the credentials if required. Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2018-01-09Merge pull request #6618 from ture-karlsson/masterScott Dodson
Provide example on how to use osm_etcd_image
2018-01-09Merge pull request #6634 from vrutkovs/openshift_binary_for_upgradesScott Dodson
upgrades: set openshift_client_binary fact when running on oo_first_master host
2018-01-09Merge pull request #6650 from ↵OpenShift Merge Robot
vrutkovs/containerized_upgrade_set_openshift_use_openshift_sdn Automatic merge from submit-queue. upgrades: use openshift_node_use_openshift_sdn when trying to pre-pull the image This affects 3.8/3.9 upgrades for containerized hosts, if nodes are separate from master.
2018-01-09Merge pull request #6659 from joelddiaz/ami_and_docker_storage_setupKenny Woodson
docker storage setup for ami building
2018-01-09Use openshift_node_use_openshift_sdn when doing a containerized node upgradeVadim Rutkovsky
Signed-off-by: Vadim Rutkovsky <vrutkovs@redhat.com>
2018-01-08Add iptables save handlerIvan Chavero
2018-01-08Merge pull request #6660 from mgugino-upstream-stage/fix-logging-staticMichael Gugino
Fix: change import_role to include_role
2018-01-08Merge pull request #6651 from mgugino-upstream-stage/containerized-groupsMichael Gugino
Build containerized host group dynamically
2018-01-08Merge pull request #6653 from mgugino-upstream-stage/fix-crio-boolMichael Gugino
Properly cast crio boolean variables to bool
2018-01-08Fix: change import_role to include_roleMichael Gugino
It appears that when one role dynamically imports another, usage of import_role inside the dynamically included role is not possible. If something is included with include_role (dynamic), all tasks therein must also use include_role (dynamic).
2018-01-08docker storage setup for ami buildingJoel Diaz
add host to g_new_node_hosts so that plays run against the AMI instance update example vars so that overlay2 is used by default for docker storage
2018-01-08ensure containerized bools are castMichael Gugino
2018-01-08Merge pull request #6580 from tomassedovic/openstack-fixesOpenShift Merge Robot
Automatic merge from submit-queue. Openstack fixes This includes a few fixes for the OpenStack provider. It should fix #6555 and possibly also #6560.
2018-01-08Merge pull request #6649 from mgugino-upstream-stage/fix-pre-packagesMichael Gugino
install base_packages on oo_all_hosts
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-08Properly cast crio boolean variables to boolMichael Gugino
Variables that are specifically booleans should be cast to bool. This is because users may sometimes pass them as string values. This is particularly prevalent when using ini-style inventories. Affected-by: https://github.com/ansible/ansible/issues/34591 Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1531592
2018-01-08Merge pull request #6548 from kwoodson/configurable_ami_drive_sizeKenny Woodson
Adding ability to update ami drive size.
2018-01-08Build containerized host group dynamicallyMichael Gugino
Currently, we are using some inventory variables to determine what host groups should be considered containerized. This is problematic and has several edge cases. This commit removes the variable l_containerized_host_groups and builds a dynamic group of hosts named 'oo_hosts_containerized_managed_true' based on the value of 'containerized'
2018-01-08Merge pull request #6624 from vrutkovs/containerized-avoid-replacing-node-unitOpenShift Merge Robot
Automatic merge from submit-queue. Don't overwrite node's systemd units for containerized install Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1527849 Perphaps this block should be removed, unless I'm missing some other case for it, as systemd units are being updated in ../systemd_units.yml.
2018-01-08Merge pull request #6641 from sdodson/logging-loopsMichael Gugino
Switch back to dynamic include_role in logging loops
2018-01-08install base_packages on oo_all_hostsMichael Gugino
This commit ensures base packages are installed for oo_all_hosts, which is what we were doing previously. Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1530516
2018-01-08Merge pull request #6587 from vrutkovs/test-coverageOpenShift Merge Robot
Automatic merge from submit-queue. Add more testcases for oc_scale module * Fixed docstrings for tests * Added tests to verify scale up/down, 'present' state, non-existant state and Replication Controller kind
2018-01-08container-engine: move registry_auth.yml before pullGiuseppe Scrivano
so that the atomic pull takes into account the credentials if required. Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2018-01-07Merge pull request #6507 from nbartos/continerOpenShift Merge Robot
Automatic merge from submit-queue. Contiv multi-master and other fixes Contiv's etcd was not being deployed correctly when using more than one master. To make it easier to manage, it has been moved into a k8s container. The api proxy was hardcoded to an old version (1.1.1), and in some environments would run into a docker error. This has been moved into a k8s container for easier management. The firewall was too permissive on several ports. Many were open to the world when they should have only been accessible inside the cluster. Many of the contiv role variables were not prefixed with 'contiv', which may end up clobbering variables from another role. Now all the contiv specific role variables start with 'contiv_'. The api proxy's default self-signed certificate was bundled with the role. This means someone with read-only MITM access and this key could decrypt traffic. Granted a user defined certificate from a trusted CA should be used in a production environment, it is still better to generate one in each environment when one is not provided.
2018-01-07Merge pull request #6642 from mscherer/patch-1Scott Dodson
Fix error in variable in comment
2018-01-08Fix error in variable in commentMichael Scherer
2018-01-07Switch back to dynamic include_role in logging loopsScott Dodson
We'd switched to import_role to avoid increased memory consumption but we must use include_role whenever we loop.
2018-01-07Merge pull request #6637 from sdodson/missing-openshift-factsMichael Gugino
Add missing dependency on openshift_facts
2018-01-08Use Contiv version 1.2.0Nick Bartos
2018-01-08Contiv multi-master and other fixesNick Bartos
Contiv's etcd was not being deployed correctly when using more than one master. To make it easier to manage, it has been moved into a k8s container. The api proxy was hardcoded to an old version (1.1.1), and in some environments would run into a docker error. This has been moved into a k8s container for easier management. The firewall was too permissive on several ports. Many were open to the world when they should have only been accessible inside the cluster. Many of the contiv role variables were not prefixed with 'contiv', which may end up clobbering variables from another role. Now all the contiv specific role variables start with 'contiv_'. The api proxy's default self-signed certificate was bundled with the role. This means someone with read-only MITM access and this key could decrypt traffic. Granted a user defined certificate from a trusted CA should be used in a production environment, it is still better to generate one in each environment when one is not provided.
2018-01-06Merge pull request #6359 from spadgett/web-console-serverScott Dodson
Install web console server
2018-01-06Add missing dependency on openshift_factsScott Dodson
2018-01-05Merge pull request #6595 from mgugino-upstream-stage/fix-checks-varsOpenShift Merge Robot
Automatic merge from submit-queue. Fix docker_image_availability checks This commit ensures that oreg_url is properly templated by ansible before being consumed in the logic. This commit also adds a method to the base health check class to detect if self._templar is none, and return the appropriate templated/untemplated version of the variable. This is mostly for unit tests.
2018-01-05Merge pull request #6597 from mgugino-upstream-stage/etc-remove-become-noOpenShift Merge Robot
Automatic merge from submit-queue. Remove become=no from etcd cert tasks etcd runs some actions locally to copy certs from the CA cert host. We shouldn't hard-code become behavior as it can be unexpected for the end user.
2018-01-06upgrades: set openshift_client_binary fact when running on oo_first_master hostVadim Rutkovsky
This sets openshift_client_binary var for the first master, as some roles use this var along with first_master_client_binary. Not sure if its worth setting this var for the faulty roles instead though. Signed-off-by: Vadim Rutkovsky <vrutkovs@redhat.com>
2018-01-05Merge pull request #6511 from fabianvf/asb-origin-prefixScott Dodson
Add origin- prefix to ASB image
2018-01-05Merge pull request #6627 from sdodson/import_roleScott Dodson
Migrate to import_role for static role inclusion
2018-01-05Install web console serverSamuel Padgett
2018-01-05Remove become=no from various roles and tasksMichael Gugino
etcd runs some actions locally to copy certs from the CA cert host. This commit ensures that we respect the end user's intended behavior with become when using 'anisble_become' in the inventory. Other roles with similar tasks have been modified in the same manner. We shouldn't hard-code become behavior as it can be unexpected for the end user. This only currently works in the CI because the CI passes the '-b' argument on the command line, which will override the task behavior.
2018-01-05Don't overwrite node's systemd units for containerized installVadim Rutkovsky
Systemd units are being updated in ../systemd_units.yml Signed-off-by: Vadim Rutkovsky <vrutkovs@redhat.com>
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-05Merge pull request #6532 from jmencak/heat_stack-cnsOpenShift Merge Robot
Automatic merge from submit-queue. OpenStack provisioning -- support cns. Initial support for CNS nodes during OpenShift on OpenStack provisioning.