ansible bootstrap replay broken due to network range changes

Bug #1849887 reported by Joseph Richard
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StarlingX
Fix Released
High
David Sullivan

Bug Description

Brief Description
-----------------
ansible bootstrap replay fails to remove controller-0 ip from loopback interface

https://bugs.launchpad.net/starlingx/+bug/1848376 fixed this in the initial install
This is also hit during ansible replay here
./playbookconfig/src/playbooks/roles/bootstrap/persist-config/tasks/shutdown_services.yml # Revert configuration to loopback interface

Incorrectly assumes that floating ip is the second ip, and then controller-0 ip is the third, causing an error when it tries removing controller-0 ip from loopback interface, as it doesn't exist

Severity
--------
Provide the severity of the defect.
<Major: System/Feature is usable but degraded>

Steps to Reproduce
------------------
attempt to replay ansible bootstrap

Expected Behavior
------------------
ansible bootstrap replay should pass

Actual Behavior
----------------
ansible bootstrap replay fails. will pass on subsequent apply

System Configuration
--------------------
reproduced on ipv6 multinode, but should be reproducible on any

Changed in starlingx:
assignee: nobody → David Sullivan (dsullivanwr)
Revision history for this message
Ghada Khalil (gkhalil) wrote :

stx.3.0 / high priority - this issue was introduced by recent code changes

Changed in starlingx:
importance: Undecided → High
status: New → Triaged
tags: added: stx.3.0 stx.config
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to ansible-playbooks (master)

Fix proposed to branch: master
Review: https://review.opendev.org/691775

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

Reviewed: https://review.opendev.org/691775
Committed: https://git.openstack.org/cgit/starlingx/ansible-playbooks/commit/?id=e30ca938d77b69717cc0db081bbf3fe5636fc144
Submitter: Zuul
Branch: master

commit e30ca938d77b69717cc0db081bbf3fe5636fc144
Author: David Sullivan <email address hidden>
Date: Mon Oct 28 19:02:02 2019 -0400

    ansible bootstrap replay fails during lo ip removal

    https://bugs.launchpad.net/starlingx/+bug/1848376 missed updating the
    prev_management_start_address calculation. Making that calculation
    consistent with the fix for 1848376 addresses this issue.

    Change-Id: Iedcbd12d31c337cdd2448fd235645a87175907ee
    Closes-Bug: 1849887
    Signed-off-by: David Sullivan <email address hidden>

Changed in starlingx:
status: In Progress → Fix Released
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.