diff options
author | Michael Gugino <mgugino@redhat.com> | 2017-08-15 21:00:48 -0400 |
---|---|---|
committer | Michael Gugino <mgugino@redhat.com> | 2017-08-16 10:08:49 -0400 |
commit | 825c187c07d592838aac20c41848b336835ef3b5 (patch) | |
tree | e26f72b45115095ec2e6d89a62d9fc5b5df0c628 /roles/openshift_common | |
parent | 2bc68321f54ed405819d168a4930c75d9ab8fadc (diff) | |
download | openshift-825c187c07d592838aac20c41848b336835ef3b5.tar.gz openshift-825c187c07d592838aac20c41848b336835ef3b5.tar.bz2 openshift-825c187c07d592838aac20c41848b336835ef3b5.tar.xz openshift-825c187c07d592838aac20c41848b336835ef3b5.zip |
Add hostname/nodename length check
OpenShift will not allow nodes to register if the nodename is > 63 chars.
This commit verifies that nodename is not set to a potential hostname
that is greater than 63 characters. This commit also updates logic
to check `openshift_hostname` to check for > 63 chars.
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1467790
Diffstat (limited to 'roles/openshift_common')
-rw-r--r-- | roles/openshift_common/tasks/main.yml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/roles/openshift_common/tasks/main.yml b/roles/openshift_common/tasks/main.yml index 51313a258..a0bd6c860 100644 --- a/roles/openshift_common/tasks/main.yml +++ b/roles/openshift_common/tasks/main.yml @@ -40,8 +40,8 @@ when: openshift_use_calico | default(false) | bool and openshift_use_contiv | default(false) | bool - fail: - msg: openshift_hostname must be 64 characters or less - when: openshift_hostname is defined and openshift_hostname | length > 64 + msg: openshift_hostname must be 63 characters or less + when: openshift_hostname is defined and openshift_hostname | length > 63 - name: Set common Cluster facts openshift_facts: |