overcloud node introspect --all-manageable no longer fail if no manageble nodes

Bug #1866911 reported by Harald Jensås
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
Medium
Steve Baker

Bug Description

Prior to moving to ansible the workflow to introspect all manageable ironic nodes used to fail if no nodes where in manageable state.

(undercloud) [cloud-user@undercloud ~]$ openstack overcloud node introspect --all-manageable
Waiting for introspection to finish...
Waiting for messages on queue 'tripleo' with no timeout.
No manageable nodes to introspect. Check node states and maintenance.
Exception introspecting nodes: No manageable nodes to introspect. Check node states and maintenance.
(undercloud) [cloud-user@undercloud ~]$ echo $?
1

The ansible playbook simply put's a notice on the console:
https://opendev.org/openstack/tripleo-ansible/src/branch/master/tripleo_ansible/playbooks/cli-baremetal-introspect.yaml#L74-L83

See end of log: https://logserver.rdoproject.org/36/711436/1/openstack-check/tripleo-ci-centos-7-ovb-3ctlr_1comp-featureset001/aeae9c5/logs/undercloud/home/zuul/overcloud_prep_images.log.txt.gz

Changed in tripleo:
status: New → Triaged
importance: Undecided → Medium
tags: added: low-hanging-fruit
Changed in tripleo:
milestone: none → ussuri-3
Changed in tripleo:
assignee: nobody → Steve Baker (steve-stevebaker)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-ansible (master)

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

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

Reviewed: https://review.opendev.org/712203
Committed: https://git.openstack.org/cgit/openstack/tripleo-ansible/commit/?id=e10d6f4fe66447fcbf960f460cdba0c9304f3e34
Submitter: Zuul
Branch: master

commit e10d6f4fe66447fcbf960f460cdba0c9304f3e34
Author: Steve Baker <email address hidden>
Date: Tue Mar 10 22:31:09 2020 +0000

    Fail when there are no nodes to introspect

    The mistral workflow would fail when no nodes were in a manageable
    state to introspect. This change replicates that behaviour.

    One of the causes of bug #1866204 is that there is a reliance on the
    time it takes to to the introspect for the node segment mappings to
    populate. When introspect finishes instantly, provide ends up timing
    out because the port create fails.

    Change-Id: I8a27a098b3cd006f73c33d95f2d93c65cf629203
    Closes-Bug: #1866911
    Related-Bug: #1866204

Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-ansible 1.3.0

This issue was fixed in the openstack/tripleo-ansible 1.3.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.