[train][python-tripleoclient] stack name not supplied to get_tripleo_ansible_inventory in _creanup_ipa

Bug #1894904 reported by Grzegorz Grasza
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
New
Undecided
Unassigned

Bug Description

Description
===========

openstack overcloud delete" command does not trigger IPA entries cleanup for nodes when the stack name is something other than the default ("overcloud"), specifically, with multiple stacks.

]
Steps to reproduce
==================

Create a TLS everywhere deployment using the new tripleo-ipa ansible (without novajoin)

Create a new overcloud, but using a different name

Delete the overcloud using the "openstack overcloud delete" command

Expected result
===============
ipa host-find doesn't return any entries from the deleted deployment

Actual result
=============
ipa host-find returns hosts from the deleted deployment

ansible.log contains a warning about being unable to parse the inventory

Environment
===========
1. TLS-E on Train

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-tripleoclient (stable/train)

Fix proposed to branch: stable/train
Review: https://review.opendev.org/750494

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-tripleoclient (stable/train)

Reviewed: https://review.opendev.org/750494
Committed: https://git.openstack.org/cgit/openstack/python-tripleoclient/commit/?id=49fd5d47fe20744cff37bdcc33998177a66fd9eb
Submitter: Zuul
Branch: stable/train

commit 49fd5d47fe20744cff37bdcc33998177a66fd9eb
Author: Grzegorz Grasza <email address hidden>
Date: Tue Sep 8 23:12:04 2020 +0200

    Train only: supply the stack name when creating the inventory

    The function issues only a warning, that it couldn't generate
    the inventory for a non-existing deployment, later on, ansible
    also only issues a warning that it can't parse the inventory.
    This resulted in iterating over an empty list of hosts and
    not removing the host entries from IPA.

    Change-Id: I94599322eb8b77f00bd46e0100db4d7beedec536
    Resolves: rhbz#1869001
    Closes-Bug: #1894904

tags: added: in-stable-train
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-tripleoclient 12.4.0

This issue was fixed in the openstack/python-tripleoclient 12.4.0 release.

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.