Simplex Restore ansible failure on IPv6 address

Bug #1959135 reported by Luis Eduardo Angelini Marquitti
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StarlingX
Fix Released
Medium
Luis Eduardo Angelini Marquitti

Bug Description

Brief Description
-----------------
IPv6 Simplex restore failed on ansible run with error message: '[2620:10a:a001:a103::82 is an invalid address'.

Severity
--------
Major

Steps to Reproduce
------------------
Add a docker_no_proxy on the localhost.yml with IPv6 address in the end or in the start of the list;
Start a backup process;
The error occurs when running the restore playbook on task [bootstrap/validate-config : Fail if the supplied address is not a valid domain name or ip address].

Expected Behavior
------------------
Be able to restore the system.

Actual Behavior
----------------
Restore is failing.

Reproducibility
---------------
100%

System Configuration
--------------------
SX - IPv6

Branch/Pull Time/Commit
-----------------------
master

Last Pass
---------
N/A

Timestamp/Logs
--------------
N/A

Test Activity
-------------
Testing

Workaround
----------
Don't use IPv6 as first or last item on docker_no_proxy list

Changed in starlingx:
assignee: nobody → Luis Eduardo Angelini Marquitti (leduard1)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to config (master)

Fix proposed to branch: master
Review: https://review.opendev.org/c/starlingx/config/+/826522

Ghada Khalil (gkhalil)
tags: added: stx.7.0 stx.update
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to config (master)

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

commit abd0bb02726356d9cf58577772f6ce1b629b3e6e
Author: Luis Eduardo Angelini Marquitti <email address hidden>
Date: Wed Jan 26 17:10:52 2022 -0300

    Fix sanitize on IPv6 for docker_no_proxy list

    Replacing string.strip method to string.replace method, since it strip
    method only takes care of the start and end of the string. Replace
    takes into account the entire string.

    Test Plan:

    PASS: Made the backup and restore successfully.

    Closes-Bug: 1959135

    Signed-off-by: Luis Eduardo Angelini Marquitti <email address hidden>
    Change-Id: I7deec9cfdeb64c95bcc6bdd0f3a8c2e051329eaf

Changed in starlingx:
status: In Progress → Fix Released
Ghada Khalil (gkhalil)
Changed in starlingx:
importance: Undecided → Medium
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.