You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
There is hostname_domain_extension validation set to: ^[a-zA-Z0-9.-]{0,20}$
With our domain it let us space only for 5 chars for subdomain.
How to reproduce
Steps to reproduce the behavior:
execute epicli init ... (with params)
edit config file and set hostname_domain_extension to value longer than 20 chars
execute epicli apply ...
Expected behavior
Change validation to at last ^[a-zA-Z0-9.-]{0,25}$. If this limitation is caused by whole VM name, please change kubernetes in VM name to k8s (kubernetes-master is the longest name in whole cluster).
Config files
n/a
Environment
Cloud provider: Azure
epicli version: 1.0.2
Additional context
n/a
DoD checklist
Changelog
updated
not needed
COMPONENTS.md
updated
not needed
Schema
updated
not needed
Backport tasks
created
not needed
Documentation
added
updated
not needed
Feature has automated tests
Automated tests passed (QA pipelines)
apply
upgrade
backup/restore
Idempotency tested
All conversations in PR resolved
The text was updated successfully, but these errors were encountered:
@rafzei I guess it is more complex. Linux host name cannot exceed 64 characters in length.
ERROR cli.engine.terraform.TerraformCommand - Error: compute.VirtualMachinesClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: Code="InvalidParameter" Message="Linux host name cannot exceed 64 characters in length or contain the following characters: ` ~ ! @ # $ % ^ & * ( ) = + _ [ ] { } \\ | ; : ' \" , < > / ?." Target="computerName"
We allow prefix to be 2-8 characters and cluster name 3-20.
Consider the opendistro component: prefix - cluster name - component name - vm - x 12345678-12345678901234567890-opendistro-for-elasticsearch-vm-0
It is already 63 characters long without domain extension.
It strictly depends on the chosen cluster name, prefix and components used.
Maybe it would be better to turn off the validation and then Azure API will return an error if the limit is exceeded.
Please consider change kubernetes into k8s in kubernetes node/master VM names. It'll cut 7 chars from longest names in cluster (and you can then limit component name to 15 instead of 20, and then domain name can be 25 instead 20 (for example).
Describe the bug
There is
hostname_domain_extension
validation set to:^[a-zA-Z0-9.-]{0,20}$
With our domain it let us space only for 5 chars for subdomain.
How to reproduce
Steps to reproduce the behavior:
epicli init ... (with params)
hostname_domain_extension
to value longer than 20 charsepicli apply ...
Expected behavior
Change validation to at last
^[a-zA-Z0-9.-]{0,25}$
. If this limitation is caused by whole VM name, please changekubernetes
in VM name tok8s
(kubernetes-master
is the longest name in whole cluster).Config files
n/a
Environment
epicli version: 1.0.2
Additional context
n/a
DoD checklist
The text was updated successfully, but these errors were encountered: