Unable to create dns host-record with valid long characters
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
Low
|
Joseph Vazhappilly |
Bug Description
Brief Description
-----------------
The CLI call for creating service parameter dns host-record fails when using valid hostname as below,
system service-
Severity
--------
Minor
Steps to Reproduce
------------------
1. Login as sysadmin
2. Create a host record via CLI and have 63 characters in the domain name, system service-
3. Observed that dns name with 63 characters are created
4. Now create a host-record with more than 63 characters, system service-
5. Observed that the dns name with 71 characters is not getting created
Expected Behavior
------------------
DNS host-records with valid domain names should be allowed
Actual Behavior
----------------
DNS host-records with valid long domain names are not created
Reproducibility
---------------
100%
System Configuration
-------
One node system
Branch/Pull Time/Commit
-------
starlingx/master
Last Pass
---------
NA
Timestamp/Logs
--------------
NA
Test Activity
-------------
Feature Testing
Workaround
----------
NA
Changed in starlingx: | |
status: | New → In Progress |
Changed in starlingx: | |
assignee: | nobody → Joseph Vazhappilly (jvazhapp) |
Changed in starlingx: | |
importance: | Undecided → Low |
tags: | added: stx.9.0 stx.config stx.networking |
Reviewed: https:/ /review. opendev. org/c/starlingx /config/ +/903489 /opendev. org/starlingx/ config/ commit/ 907c461db0b9049 5553845c5c5be32 9b0504f5fd
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 907c461db0b9049 5553845c5c5be32 9b0504f5fd
Author: Joseph Vazhappilly <email address hidden>
Date: Tue Dec 12 05:53:42 2023 -0500
Update dns hostname validation for host-records
The validation of hostname in service parameter dns host-record
is updated to use a new utility function. This function checks
hostname to match the definitions as per RFCs (1035/3.1, 2181/11)
Closes-bug: 2046246
Test Plan: parameter- add with valid & invalid hostname
PASS: Verify build and install
PASS: Verify service-
Change-Id: I6f13811764c0b7 93d15a5f94a1d67 21fa5a1dc9b
Signed-off-by: Joseph Vazhappilly <email address hidden>