Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1897910

Summary: [Assisted-4.6 ]Disabled Hosts event does not display host_id or name
Product: OpenShift Container Platform Reporter: nshidlin <nshidlin>
Component: assisted-installerAssignee: Michael Filanov <mfilanov>
assisted-installer sub component: assisted-service QA Contact: Yuri Obshansky <yobshans>
Status: CLOSED ERRATA Docs Contact:
Severity: unspecified    
Priority: unspecified CC: aos-bugs
Version: 4.6Keywords: Triaged
Target Milestone: ---   
Target Release: 4.6.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: AI-Team-Core
Fixed In Version: OCP-Metal-v1.0.12.1 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-08-25 13:49:22 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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