collect from remote hosts is not working

Bug #1820421 reported by Eric MacDonald
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StarlingX
Fix Released
Low
Eric MacDonald

Bug Description

Brief Description
-----------------
collect is failing to source the openrc file needed to execute system commands to get inventory.
The openrc file has been moved to /etc/platform but collect expects it to be in /etc/nova.

Severity
--------
Minor - not service impacting. Can collect hosts individually.

Steps to Reproduce
------------------
'collect all' from active controller

Expected Behavior
------------------
system logs are collected

Actual Behavior
----------------
Request is rejected

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

System Configuration
--------------------
All

Branch/Pull Time/Commit
-----------------------
https://review.openstack.org/#/c/641139/

Timestamp/Logs
--------------
With controller-1 active

controller-1:~$ collect all
Error: can only run collect for remote hosts on active controller (reason:35)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to stx-integ (master)

Reviewed: https://review.openstack.org/643933
Committed: https://git.openstack.org/cgit/openstack/stx-integ/commit/?id=81a1a248cb4774b6082e821ffd3f946a9af63fbe
Submitter: Zuul
Branch: master

commit 81a1a248cb4774b6082e821ffd3f946a9af63fbe
Author: Eric MacDonald <email address hidden>
Date: Sun Mar 17 15:36:15 2019 -0400

    Change collect to use /etc/platform/openrc

    The collect tool is failing to source the openrc file
    needed to execute system commands to get inventory.

    The openrc file has been moved to /etc/platform but
    collect expects it to be in /etc/nova.

    This update changes collect to source openrc from
    /etc/platform in collect_utils and avoids needless
    sourcing of that same file multiple times from the
    other collect scripts. All collect scripts source
    collect_utils.

    The update also removes reference to the also recently
    removed keyring which is also breaking collect in the
    very same way.

    Test Plan:
    Run collect on individual hosts
    Run collect all

    Change-Id: I75ff6d3cb8f25a9d0dca182837c7d1b4854896d9
    Closes-Bug: 1820421
    Signed-off-by: Eric MacDonald <email address hidden>

Changed in starlingx:
status: New → Fix Released
Revision history for this message
Ghada Khalil (gkhalil) wrote :

Marking as release gating; regression failure due to recent changes.

Changed in starlingx:
assignee: nobody → Eric MacDonald (rocksolidmtce)
importance: Undecided → Low
tags: added: stx.2019.05 stx.metal
Ken Young (kenyis)
tags: added: stx.2.0
removed: stx.2019.05
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.