Bug 1897910 - [Assisted-4.6 ]Disabled Hosts event does not display host_id or name
Summary: [Assisted-4.6 ]Disabled Hosts event does not display host_id or name
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: assisted-installer
Version: 4.6
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: 4.6.z
Assignee: Michael Filanov
QA Contact: Yuri Obshansky
URL:
Whiteboard: AI-Team-Core
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-11-15 14:57 UTC by nshidlin
Modified: 2021-08-25 13:49 UTC (History)
1 user (show)

Fixed In Version: OCP-Metal-v1.0.12.1
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-08-25 13:49:22 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2021:3197 0 None None None 2021-08-25 13:49:35 UTC

Description nshidlin 2020-11-15 14:57:27 UTC
Description of problem:
When disabling a host two events are generated e.g:
11/15/2020, 3:41:39 PM	Host disabled by user
11/15/2020, 3:41:39 PM	Updated status of cluster seal55-cluster-0 to ready
11/15/2020, 3:41:39 PM	Host worker-0-0: updated status from "known" to "disabled" (Host was manually disabled)

It is unclear from the logs which host the event corresponds to 

Version-Release number of selected component (if applicable):
Facet-lib version:  1.4.1-2

How reproducible:
Every time

Steps to Reproduce:
1. Boot nodes into discovery ISO
2. Wait for nodes to be discovered
3. Disable a host from the UI

Actual results:
Event "Host disabled by user" does not display host_id or name

Expected results:
Event "Host disabled by user" to indicate display host_id or name


Additional info:

Comment 1 Ido Rosenzwig 2020-11-16 12:59:29 UTC
The message is coming from the backend. 
Moving to assisted-service.

Comment 2 Michael Filanov 2020-11-18 09:10:57 UTC
https://github.com/openshift/assisted-service/pull/695

Comment 3 Michael Filanov 2020-11-18 09:11:14 UTC
https://github.com/openshift/assisted-service/pull/695

Comment 4 nshidlin 2020-12-03 10:41:38 UTC
Verified on staging:
{
    "release_tag": "v1.0.12_1",
    "versions": {
        "assisted-ignition-generator": "",
        "assisted-installer": "registry-proxy.engineering.redhat.com/rh-osbs/openshift4-assisted-installer-rhel8:v4.6.0-49",
        "assisted-installer-controller": "registry-proxy.engineering.redhat.com/rh-osbs/openshift4-assisted-installer-reporter-rhel8:v4.6.0-46",
        "assisted-installer-service": "quay.io/app-sre/assisted-service:92e3dad",
        "discovery-agent": "registry-proxy.engineering.redhat.com/rh-osbs/openshift4-assisted-installer-agent-rhel8:v4.6.0-47",
        "image-builder": "quay.io/app-sre/assisted-iso-create:92e3dad"
    }
}

API payload from GET to /clusters/{clsuter_id}/events
{
        "cluster_id": "39f2b931-8b17-47ee-b9e5-3b2e4c28f507",
        "event_time": "2020-12-03T10:38:26.578Z",
        "host_id": "c421f397-0a2a-43d3-851f-a23a6ff070dc",
        "message": "Host master-0-0 disabled by user",
        "severity": "info"
}

Message Displayed in UI:
12/3/2020, 12:38:26 PM	Host master-0-0 disabled by user

Comment 8 errata-xmlrpc 2021-08-25 13:49:22 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (OpenShift Container Platform 4.6.43 bug fix update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2021:3197


Note You need to log in before you can comment on or make changes to this bug.