Duplicate dns host-record should not be allowed using bootstrap config
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
Low
|
Joseph Vazhappilly |
Bug Description
Brief Description
-----------------
Ansible bootstrap allows to create multiple host records with same dns name and ip address successfully without error. Invalid DNS hostnames are getting created in /etc/hosts
Severity
--------
Minor
Steps to Reproduce
------------------
1. Configure user_dns_
user_dns_
host1: host,127.0.0.1
host2: host,127.0.0.1
2. Run ansible bootstrap playbook as below
ansible-playbook /usr/share/
3. Check /etc/hosts file for duplicates
Expected Behavior
------------------
DNS host record with same name and ip should not be allowed.
Invalid host entries should not be allowed.
Actual Behavior
----------------
Creation of duplicate host records
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: | |
assignee: | nobody → Joseph Vazhappilly (jvazhapp) |
Changed in starlingx: | |
importance: | Undecided → Low |
tags: | added: stx.9.0 stx.config |
Fix proposed to branch: master /review. opendev. org/c/starlingx /ansible- playbooks/ +/907071
Review: https:/