Unable to create dns host-record with valid long characters

Bug #2046246 reported by Joseph Vazhappilly
6
This bug affects 1 person
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-parameter-add dns host-record longname=www.abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijk.com,1.1.1.1

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-parameter-add dns host-record longname=www.abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabc.com,1.1.1.1
3. Observed that dns name with 63 characters are created
4. Now create a host-record with more than 63 characters, system service-parameter-add dns host-record longname=www.abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijk.com,1.1.1.1
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)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to config (master)

Reviewed: https://review.opendev.org/c/starlingx/config/+/903489
Committed: https://opendev.org/starlingx/config/commit/907c461db0b90495553845c5c5be329b0504f5fd
Submitter: "Zuul (22348)"
Branch: master

commit 907c461db0b90495553845c5c5be329b0504f5fd
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:
    PASS: Verify build and install
    PASS: Verify service-parameter-add with valid & invalid hostname

    Change-Id: I6f13811764c0b793d15a5f94a1d6721fa5a1dc9b
    Signed-off-by: Joseph Vazhappilly <email address hidden>

Changed in starlingx:
status: In Progress → Fix Released
Ghada Khalil (gkhalil)
Changed in starlingx:
importance: Undecided → Low
tags: added: stx.9.0 stx.config stx.networking
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.