Static routes aren't deleted after rehoming a subcloud.

Bug #2039593 reported by Gustavo Lyra Pereira
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StarlingX
Fix Released
Low
Gustavo Lyra Pereira

Bug Description

Brief Description
-----------------
Rehoming a subcloud adds the new controller route but
leaves the previous controller route.

Severity
--------
Provide the severity of the defect.

<Minor: System/Feature is usable with minor issue>

Steps to Reproduce
------------------
Create a dc system, remove the controller.
Shutdown the controller.
Create a new controller with different mgmt network configs.
Rehome the subcloud to the new controller.

Expected Behavior
------------------
Previous controller route is removed.

Actual Behavior
----------------
The static routes still existed after the rehome completed successfully.

Reproducibility
---------------
No attempt made to reproduce, but it looks like the ansible scripts don't account for deleting the old static route so I would assume this occurs every time the subcloud is rehomed.

System Configuration
--------------------
DC

Branch/Pull Time/Commit
-----------------------
Branch and the time when code was pulled or git commit or cengn load info

Last Pass
---------
Unknown

Timestamp/Logs
--------------
NA

Test Activity
-------------
NA

Workaround
----------
Remove the route manually.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to ansible-playbooks (master)
Changed in starlingx:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to ansible-playbooks (master)

Reviewed: https://review.opendev.org/c/starlingx/ansible-playbooks/+/898675
Committed: https://opendev.org/starlingx/ansible-playbooks/commit/f7dda70a7c3c5a10583e17b060dccce6c4ee0d4d
Submitter: "Zuul (22348)"
Branch: master

commit f7dda70a7c3c5a10583e17b060dccce6c4ee0d4d
Author: Gustavo Pereira <email address hidden>
Date: Tue Oct 17 13:55:57 2023 -0300

    Static routes aren't deleted after rehoming a subcloud

    This commit fixes the issue of not deleting the previous
    routes created on a subcloud after its being rehomed.

    Test Plan:

    PASS: Deploy a dc system with one controller and one
    subcloud. Check the route to the system controller by
    running "system host-route-list controller-0" in the
    created subcloud.
    Shutdown the previously created system controller and
    create a new system controller with different mgmt
    network configuration.
    Rehome the subcloud to the new controller and check
    that the route has changed to the new controller
    route.

    Closes-bug: 2039593

    Signed-off-by: Gustavo Pereira <email address hidden>
    Change-Id: Ibee0af9463092348578565bc489aa2025b00b0d5

Changed in starlingx:
status: In Progress → Fix Released
Ghada Khalil (gkhalil)
Changed in starlingx:
importance: Undecided → Low
tags: added: stx.9.0 stx.distcloud
Changed in starlingx:
assignee: nobody → Gustavo Lyra Pereira (gustavolyrap)
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.