diff options
| author | Jason DeTiberus <jdetiber@redhat.com> | 2016-01-08 12:28:35 -0500 | 
|---|---|---|
| committer | Jason DeTiberus <jdetiber@redhat.com> | 2016-01-15 14:04:30 -0500 | 
| commit | 7d7de31659bb15e9690df082d4129c73c4c413cf (patch) | |
| tree | adb0e7c271448c04a066539c643e6086a6b5068b | |
| parent | 2a12b6a99db4e8f39da27770e397dfafe27c9547 (diff) | |
| download | openshift-7d7de31659bb15e9690df082d4129c73c4c413cf.tar.gz openshift-7d7de31659bb15e9690df082d4129c73c4c413cf.tar.bz2 openshift-7d7de31659bb15e9690df082d4129c73c4c413cf.tar.xz openshift-7d7de31659bb15e9690df082d4129c73c4c413cf.zip | |
Remove default disable of SDN for GCE
- Update openshift_facts to no longer default use_openshift_sdn for GCE
  installs
- Remove workarounds in the GCE playbooks that were forcing SDN configuration
| -rw-r--r-- | playbooks/gce/openshift-cluster/config.yml | 1 | ||||
| -rw-r--r-- | playbooks/gce/openshift-cluster/join_node.yml | 2 | ||||
| -rw-r--r-- | playbooks/gce/openshift-cluster/vars.yml | 3 | ||||
| -rwxr-xr-x | roles/openshift_facts/library/openshift_facts.py | 9 | 
4 files changed, 1 insertions, 14 deletions
| diff --git a/playbooks/gce/openshift-cluster/config.yml b/playbooks/gce/openshift-cluster/config.yml index 3231ecc8e..84a3f84d4 100644 --- a/playbooks/gce/openshift-cluster/config.yml +++ b/playbooks/gce/openshift-cluster/config.yml @@ -13,4 +13,3 @@      openshift_debug_level: "{{ debug_level }}"      openshift_deployment_type: "{{ deployment_type }}"      openshift_hostname: "{{ gce_private_ip }}" -    openshift_use_openshift_sdn: "{{ do_we_use_openshift_sdn }}" diff --git a/playbooks/gce/openshift-cluster/join_node.yml b/playbooks/gce/openshift-cluster/join_node.yml index acf5e5110..75343dffa 100644 --- a/playbooks/gce/openshift-cluster/join_node.yml +++ b/playbooks/gce/openshift-cluster/join_node.yml @@ -48,6 +48,4 @@      openshift_debug_level: 4      openshift_deployment_type: "{{ deployment_type }}"      openshift_hostname: "{{ ansible_default_ipv4.address }}" -    openshift_use_openshift_sdn: true      openshift_node_labels: "{{ lookup('oo_option', 'openshift_node_labels') }} " -    os_sdn_network_plugin_name: "redhat/openshift-ovs-subnet" diff --git a/playbooks/gce/openshift-cluster/vars.yml b/playbooks/gce/openshift-cluster/vars.yml index 7fb13c7a6..f004a9e6b 100644 --- a/playbooks/gce/openshift-cluster/vars.yml +++ b/playbooks/gce/openshift-cluster/vars.yml @@ -1,8 +1,5 @@  --- -do_we_use_openshift_sdn: true -sdn_network_plugin: redhat/openshift-ovs-subnet  debug_level: 2 -# os_sdn_network_plugin_name can be ovssubnet or multitenant, see https://docs.openshift.org/latest/architecture/additional_concepts/sdn.html#ovssubnet-plugin-operation  deployment_rhel7_ent_base:    image: rhel-7 diff --git a/roles/openshift_facts/library/openshift_facts.py b/roles/openshift_facts/library/openshift_facts.py index 2a3d4acbd..831d78b83 100755 --- a/roles/openshift_facts/library/openshift_facts.py +++ b/roles/openshift_facts/library/openshift_facts.py @@ -188,9 +188,6 @@ def normalize_gce_facts(metadata, facts):      _, _, zone = metadata['instance']['zone'].rpartition('/')      facts['zone'] = zone -    # Default to no sdn for GCE deployments -    facts['use_openshift_sdn'] = False -      # GCE currently only supports a single interface      facts['network']['ip'] = facts['network']['interfaces'][0]['ips'][0]      pub_ip = facts['network']['interfaces'][0]['public_ips'][0] @@ -884,10 +881,6 @@ def apply_provider_facts(facts, provider_facts):      if not provider_facts:          return facts -    use_openshift_sdn = provider_facts.get('use_openshift_sdn') -    if isinstance(use_openshift_sdn, bool): -        facts['common']['use_openshift_sdn'] = use_openshift_sdn -      common_vars = [('hostname', 'ip'), ('public_hostname', 'public_ip')]      for h_var, ip_var in common_vars:          ip_value = provider_facts['network'].get(ip_var) @@ -1078,7 +1071,7 @@ class OpenShiftFacts(object):          Raises:              OpenShiftFactsUnsupportedRoleError:      """ -    known_roles = ['common', 'master', 'node', 'master_sdn', 'node_sdn', 'etcd', 'nfs'] +    known_roles = ['common', 'master', 'node', 'etcd', 'nfs']      def __init__(self, role, filename, local_facts, additive_facts_to_overwrite=False):          self.changed = False | 
