Puppet hieradata does not properly interpret an IPv4-mapped IPv6 address
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
Medium
|
Tara Nath Subedi |
Bug Description
Brief Description
-----------------
IPv6 IPv4-mapped prefix of ::ffff is being interpreted by puppet as a Hiera parameter reference, causing a Hiera parameter lookup error.
To support interoperating with IPv4 systems on IPv6 deployments it is necessary to configure IPv4-mapped IPv6 addresses. Specifically, this is required for DNS entries that cannot use host entries as an alternative.
Severity
--------
Major: System/Feature is usable but degraded
Steps to Reproduce
------------------
To simply reproduce the Puppet error, a DNS configuration using the following can be configured.
system dns-modify nameservers=
Expected Behavior
------------------
The hiera data must be formatted with an expanded value that is not interpreted as a hiera data parameter reference.
Example:
import netaddr
a = netaddr.
a.format(
'0:0:0:
Actual Behavior
----------------
Puppet error is generated.
Reproducibility
---------------
Reproducible - 100%
System Configuration
-------
Any IPv6-based system.
Branch/Pull Time/Commit
-------
STX master 2023-12-11_10:44:56
Last Pass
---------
Never - new test scenario.
Timestamp/Logs
--------------
Example Log Error
2023-12-
Value for key 'platform:
expects Puppet:
Test Activity
-------------
Validating dual-stack deployment configuration
Workaround
----------
Manually update database with expanded notation that eliminates leading colons.
sudo -u postgres psql -d sysinv -c "update i_dns set nameservers=
Changed in starlingx: | |
assignee: | nobody → Tara Nath Subedi (tsubedi) |
status: | New → In Progress |
Changed in starlingx: | |
importance: | Undecided → Medium |
tags: | added: stx.9.0 stx.networking |
Fix proposed to branch: master /review. opendev. org/c/starlingx /config/ +/906302
Review: https:/